-Makes Nature style more macro-oriented

This commit is contained in:
Michael Berkowitz 2008-03-27 15:41:42 +00:00
parent 666d9080da
commit 43ff2623ed

View File

@ -14,6 +14,16 @@
<category term="numeric"/> <category term="numeric"/>
<updated></updated> <updated></updated>
</info> </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"> <macro name="author">
<names variable="author"> <names variable="author">
<name sort-separator=", " delimiter=", " and="symbol" initialize-with="." delimiter-precedes-last="never" name-as-sort-order="all"/> <name sort-separator=", " delimiter=", " and="symbol" initialize-with="." delimiter-precedes-last="never" name-as-sort-order="all"/>
@ -31,6 +41,24 @@
</else-if> </else-if>
</choose> </choose>
</macro> </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> <citation>
<option name="collapse" value="citation-number"/> <option name="collapse" value="citation-number"/>
<sort> <sort>
@ -48,14 +76,12 @@
<layout> <layout>
<text variable="citation-number" suffix=". "/> <text variable="citation-number" suffix=". "/>
<text macro="author"/> <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="container-title" font-style="italic" suffix=" " form="short"/>
<text variable="volume" suffix=", " font-weight="bold"/> <text variable="volume" suffix=", " font-weight="bold"/>
<text variable="page"/> <text variable="page"/>
<text macro="issuance" />
<text macro="access" /> <text macro="access" />
<date prefix=" (" suffix=")." variable="issued">
<date-part name="year"/>
</date>
</layout> </layout>
</bibliography> </bibliography>
</style> </style>