Skip to content

Commit

Permalink
Merge pull request citation-style-language#96 from paytone/patch-2
Browse files Browse the repository at this point in the history
Changes to Acta Mater style:
  • Loading branch information
rmzelle committed Feb 19, 2012
2 parents 680c56a + 5e17677 commit 24368af
Showing 1 changed file with 89 additions and 63 deletions.
152 changes: 89 additions & 63 deletions acta-materialia.csl
Expand Up @@ -9,36 +9,40 @@
<email>karnesky+zotero@gmail.com</email>
<uri>http://arc.nucapt.northwestern.edu/Richard_Karnesky</uri>
</author>
<contributor>
<name>Eric Payton</name>
<email>eric.payton@rub.de</email>
</contributor>
<category field="engineering"/>
<!--<category term="materials science"/>-->
<category citation-format="numeric"/>
<updated>2012-01-01T00:00:00+00:00</updated>
<updated>2012-02-17T16:51:04+00:00</updated>
<summary>A style for Elsevier's journal "Acta Materialia"</summary>
<issn>1359-6454</issn>
<link href="http://www.elsevier.com/wps/find/journaldescription.cws_home/221/authorinstructions#Refs" rel="documentation"/>
<rights>This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License: http://creativecommons.org/licenses/by-sa/3.0/</rights>
</info>
<macro name="author">
<names variable="author">
<name initialize-with="" delimiter=", " delimiter-precedes-last="always" name-as-sort-order="all" sort-separator=" "/>
<label form="long" prefix=", " text-case="lowercase" suffix="."/>
<substitute>
<names variable="editor"/>
<names variable="translator"/>
</substitute>
<name initialize-with="" delimiter=", " delimiter-precedes-last="always" name-as-sort-order="all" sort-separator=" "/>
<label form="long" prefix=", " text-case="lowercase" suffix="."/>
<substitute>
<names variable="editor"/>
<names variable="translator"/>
</substitute>
</names>
</macro>
<macro name="editor">
<names variable="editor">
<name initialize-with="" delimiter=", " delimiter-precedes-last="always" name-as-sort-order="all" sort-separator=" "/>
<label form="long" prefix=", " text-case="lowercase" suffix="."/>
<name initialize-with="" delimiter=", " delimiter-precedes-last="always" name-as-sort-order="all" sort-separator=" "/>
<label form="short" prefix=" (" text-case="title" suffix=")."/>
</names>
</macro>
<macro name="year-date">
<choose>
<if variable="issued">
<date variable="issued">
<date-part name="year"/>
<date-part name="year"/>
</date>
</if>
<else>
Expand All @@ -48,9 +52,22 @@
</macro>
<macro name="publisher">
<text variable="publisher-place" suffix=": " text-case="title"/>
<text variable="publisher" suffix=", "/>
<text variable="publisher" suffix="; " text-case="title"/>
<text macro="year-date"/>
</macro>
<macro name="edition">
<choose>
<if is-numeric="edition">
<group delimiter=" ">
<number variable="edition" form="long-ordinal"/>
<text term="edition" form="short" suffix="." strip-periods="true"/>
</group>
</if>
<else>
<text variable="edition" suffix="."/>
</else>
</choose>
</macro>
<citation collapse="citation-number">
<sort>
<key variable="citation-number"/>
Expand All @@ -61,67 +78,76 @@
</citation>
<bibliography entry-spacing="0" second-field-align="flush">
<layout suffix=".">
<text variable="citation-number" prefix="[" suffix="]"/>
<text macro="author" prefix=" " suffix=". "/>
<choose>
<if type="bill book graphic legal_case motion_picture report song" match="any">
<group delimiter=". ">
<group delimiter=", ">
<text variable="title" text-case="title"/>
<text variable="volume" prefix="vol. "/>
</group>
<text macro="publisher"/>
<text variable="citation-number" prefix="[" suffix="]"/>
<text macro="author" suffix=". "/>
<choose>
<if type="bill book graphic legal_case motion_picture report song" match="any">
<group delimiter=". ">
<group delimiter=", ">
<text variable="title" text-case="title"/>
<text variable="volume" prefix="vol. "/>
<text macro="edition"/>
</group>
<text macro="publisher"/>
</group>
</if>
<else-if type="chapter paper-conference" match="any">
<group delimiter=". ">
<text variable="title" text-case="title" suffix=", in:"/>
<text macro="editor"/>
<group delimiter=", ">
<text variable="container-title" form="short" text-case="title"/>
<text variable="volume" prefix="vol. "/>
<text macro="edition"/>
</group>
</if>
<else-if type="chapter paper-conference" match="any">
<text macro="publisher"/>
</group>
</else-if>
<else-if type="patent">
<group delimiter=", ">
<group delimiter=". ">
<text variable="title" text-case="sentence"/>
<text term="in" text-case="sentence" suffix=":"/>
<text macro="editor"/>
<group delimiter=", ">
<text variable="container-title" form="short" text-case="title"/>
<text variable="volume" prefix="vol. "/>
</group>
<text macro="publisher"/>
<group delimiter=" ">
<label variable="page" form="short" suffix="." strip-periods="true"/>
<text variable="page"/>
</group>
<text variable="title" text-case="title"/>
<text variable="number" prefix="U.S. Patent "/>
</group>
</else-if>
<else-if type="patent">
<text macro="year-date"/>
</group>
</else-if>
<else-if type="thesis">
<group delimiter=". ">
<text variable="title" text-case="title"/>
<text variable="genre"/>
<group delimiter=", ">
<group delimiter=". ">
<text variable="title" text-case="title"/>
<text variable="number" prefix="U.S. Patent "/>
</group>
<text variable="publisher"/>
<text macro="year-date"/>
</group>
</else-if>
<else-if type="thesis">
<group delimiter=". ">
</group>
</else-if>
<else-if type="webpage">
<group delimiter=". ">
<group delimiter=", ">
<text variable="title" text-case="title"/>
<text variable="genre"/>
<group delimiter=", ">
<text variable="publisher"/>
<text macro="year-date"/>
</group>
<date variable="accessed">
<date-part name="day" suffix=" " prefix="accessed "/>
<date-part name="month" form="short" suffix=" "/>
<date-part name="year"/>
</date>
</group>
</else-if>
<else>
<group delimiter=":">
<group delimiter=" ">
<text variable="container-title" form="short" text-case="sentence"/>
<group delimiter=";">
<text macro="year-date"/>
<text variable="volume"/>
</group>
<text variable="URL" prefix="URL:&#160;"/>
</group>
</else-if>
<else>
<group delimiter=":">
<group delimiter=" ">
<text variable="container-title" form="short" strip-periods="true" />
<group delimiter=";">
<text macro="year-date"/>
<text variable="volume"/>
</group>
<!-- TODO: Change to page-first when Zotero supports it -->
<text variable="page" form="short"/>
</group>
</else>
</choose>
<text variable="page-first"/>
</group>
</else>
</choose>
</layout>
</bibliography>
</style>
</style>

0 comments on commit 24368af

Please sign in to comment.