commit 43ff2623ed2e08f00ce628bab04f56cfd9a3ec85
parent 666d9080daabf3f8a60c6f7da79c520b8e572e2d
Author: Michael Berkowitz <michael.berkowitz@gmail.com>
Date: Thu, 27 Mar 2008 15:41:42 +0000
-Makes Nature style more macro-oriented
Diffstat:
1 file changed, 31 insertions(+), 5 deletions(-)
diff --git a/csl/nature.csl b/csl/nature.csl
@@ -14,6 +14,16 @@
<category term="numeric"/>
<updated></updated>
</info>
+ <macro name="title">
+ <choose>
+ <if type="book">
+ <text variable="title" font-style="italic"/>
+ </if>
+ <else>
+ <text variable="title"/>
+ </else>
+ </choose>
+ </macro>
<macro name="author">
<names variable="author">
<name sort-separator=", " delimiter=", " and="symbol" initialize-with="." delimiter-precedes-last="never" name-as-sort-order="all"/>
@@ -31,6 +41,24 @@
</else-if>
</choose>
</macro>
+ <macro name="issuance">
+ <choose>
+ <if type="book">
+ <group prefix="(" suffix=").">
+ <text variable="publisher" suffix=": " />
+ <text variable="publisher-place" suffix=", " />
+ <date variable="issued">
+ <date-part name="year"/>
+ </date>
+ </group>
+ </if>
+ <else>
+ <date prefix="(" suffix=")." variable="issued">
+ <date-part name="year"/>
+ </date>
+ </else>
+ </choose>
+ </macro>
<citation>
<option name="collapse" value="citation-number"/>
<sort>
@@ -48,14 +76,12 @@
<layout>
<text variable="citation-number" suffix=". "/>
<text macro="author"/>
- <text variable="title" prefix=" " suffix=". "/>
+ <text macro="title" prefix=" " suffix=". "/>
<text variable="container-title" font-style="italic" suffix=" " form="short"/>
<text variable="volume" suffix=", " font-weight="bold"/>
<text variable="page"/>
- <text macro="access"/>
- <date prefix=" (" suffix=")." variable="issued">
- <date-part name="year"/>
- </date>
+ <text macro="issuance" />
+ <text macro="access" />
</layout>
</bibliography>
</style>