Skip to content

Commit

Permalink
Locators in palaeontology journal styles (citation-style-language#6496)
Browse files Browse the repository at this point in the history
e.g. Smith 2020, Fig. 1
  • Loading branch information
ms609 authored Apr 15, 2023
1 parent 3d2bff0 commit 252a5b5
Show file tree
Hide file tree
Showing 6 changed files with 66 additions and 38 deletions.
6 changes: 4 additions & 2 deletions acta-palaeontologica-polonica.csl
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
<link href="http://www.app.pan.pl/instruction.html" rel="documentation"/>
<author>
<name>Martin R. Smith</name>
<email>[email protected]</email>
<email>[email protected]</email>
<uri>https://smithlabdurham.github.io/</uri>
</author>
<contributor>
<name>Benjamin C. Moon</name>
Expand Down Expand Up @@ -84,7 +85,8 @@
<text macro="year-date"/>
</group>
<text variable="year-suffix" font-style="italic"/>
<group prefix=": ">
<group prefix=": " delimiter=" ">
<label variable="locator" form="short"/>
<text variable="locator"/>
</group>
</layout>
Expand Down
20 changes: 14 additions & 6 deletions journal-of-paleontology.csl
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
<link href="https://www.cambridge.org/core/services/aop-file-manager/file/5c94f7029ab84c5f086928bb" rel="documentation"/>
<author>
<name>Martin R. Smith</name>
<email>[email protected]</email>
<uri>https://community.dur.ac.uk/martin.smith/</uri>
<email>[email protected]</email>
<uri>https://smithlabdurham.github.io/</uri>
</author>
<category citation-format="author-date"/>
<category field="biology"/>
Expand Down Expand Up @@ -107,11 +107,19 @@
<key macro="author-short"/>
</sort>
<layout prefix="(" suffix=")" delimiter="; ">
<group delimiter=", ">
<text macro="author-short"/>
<text macro="year-date"/>
<group delimiter=" ">
<group delimiter="">
<group delimiter=" ">
<text macro="author-short"/>
<text macro="year-date"/>
</group>
<text variable="year-suffix"/>
</group>
<group delimiter=" ">
<label variable="locator" form="short"/>
<text variable="locator"/>
</group>
</group>
<text variable="locator"/>
</layout>
</citation>
<bibliography entry-spacing="0" hanging-indent="true">
Expand Down
26 changes: 16 additions & 10 deletions lethaia.csl
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,11 @@
<id>http://www.zotero.org/styles/lethaia</id>
<link href="http://www.zotero.org/styles/lethaia" rel="self"/>
<link href="http://www.zotero.org/styles/palaeontology" rel="template"/>
<link href="http://onlinelibrary.wiley.com/journal/10.1111/%28ISSN%291502-3931/homepage/ForAuthors.html" rel="documentation"/>
<link href="https://www.idunn.no/page/let/author" rel="documentation"/>
<author>
<name>Martin R. Smith</name>
<email>[email protected]</email>
<email>[email protected]</email>
<uri>https://smithlabdurham.github.io/</uri>
</author>
<category citation-format="author-date"/>
<category field="biology"/>
Expand All @@ -19,14 +20,12 @@
</info>
<macro name="author">
<names variable="author" suffix=".">
<name sort-separator=", " initialize-with="." and="text" name-as-sort-order="all" delimiter=", " delimiter-precedes-last="never" form="long">
</name>
<name sort-separator=", " initialize-with="." and="text" name-as-sort-order="all" delimiter=", " delimiter-precedes-last="never" form="long"/>
</names>
</macro>
<macro name="editor">
<names variable="editor">
<name sort-separator=", " initialize-with=". " name-as-sort-order="all" delimiter=", " delimiter-precedes-last="always">
</name>
<name sort-separator=", " initialize-with=". " name-as-sort-order="all" delimiter=", " delimiter-precedes-last="always"/>
<label form="short" prefix=" (" suffix=".)"/>
</names>
</macro>
Expand Down Expand Up @@ -79,11 +78,18 @@
</sort>
<layout prefix="(" suffix=")" delimiter="; ">
<group delimiter=" ">
<text macro="author-short"/>
<text macro="year-date"/>
<group delimiter="">
<group delimiter=" ">
<text macro="author-short"/>
<text macro="year-date"/>
</group>
<text variable="year-suffix" font-style="italic"/>
</group>
<group delimiter=" ">
<label variable="locator" form="short"/>
<text variable="locator"/>
</group>
</group>
<text variable="locator"/>
<text variable="year-suffix" font-style="italic"/>
</layout>
</citation>
<bibliography entry-spacing="0" hanging-indent="true">
Expand Down
19 changes: 13 additions & 6 deletions palaeontology.csl
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
</author>
<contributor>
<name>Martin R. Smith</name>
<email>[email protected]</email>
<uri>https://community.dur.ac.uk/martin.smith/</uri>
<email>[email protected]</email>
<uri>https://smithlabdurham.github.io/</uri>
</contributor>
<category citation-format="author-date"/>
<category field="biology"/>
Expand Down Expand Up @@ -80,11 +80,18 @@
</sort>
<layout prefix="(" suffix=")" delimiter="; ">
<group delimiter=" ">
<text macro="author-short"/>
<text macro="year-date"/>
<group delimiter="">
<group delimiter=" ">
<text macro="author-short"/>
<text macro="year-date"/>
</group>
<text variable="year-suffix" font-style="italic"/>
</group>
<group delimiter=" ">
<label variable="locator" form="short"/>
<text variable="locator"/>
</group>
</group>
<text variable="locator"/>
<text variable="year-suffix" font-style="italic"/>
</layout>
</citation>
<bibliography entry-spacing="0" hanging-indent="true" subsequent-author-substitute-rule="partial-each" subsequent-author-substitute="&#8212;&#8212;&#8212;">
Expand Down
25 changes: 15 additions & 10 deletions paleobiology.csl
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
<link href="http://www.paleosoc.org/content/AuthorContribInstr.html" rel="documentation"/>
<author>
<name>Martin R. Smith</name>
<email>[email protected]</email>
<uri>https://plus.google.com/u/0/108450310917386384868</uri>
<email>[email protected]</email>
<uri>https://smithlabdurham.github.io/</uri>
</author>
<category citation-format="author-date"/>
<category field="biology"/>
Expand All @@ -20,14 +20,12 @@
</info>
<macro name="author">
<names variable="author" suffix=".">
<name sort-separator=", " initialize-with=". " and="text" name-as-sort-order="first" delimiter=", " delimiter-precedes-last="always" form="long">
</name>
<name sort-separator=", " initialize-with=". " and="text" name-as-sort-order="first" delimiter=", " delimiter-precedes-last="always" form="long"/>
</names>
</macro>
<macro name="editor">
<names variable="editor">
<name sort-separator=", " initialize-with=". " delimiter=", " and="text" delimiter-precedes-last="contextual">
</name>
<name sort-separator=", " initialize-with=". " delimiter=", " and="text" delimiter-precedes-last="contextual"/>
<label form="short" prefix=", " suffix="."/>
</names>
</macro>
Expand Down Expand Up @@ -79,11 +77,18 @@
</sort>
<layout prefix="(" suffix=")" delimiter="; ">
<group delimiter=" ">
<text macro="author-short"/>
<text macro="year-date"/>
<group delimiter="">
<group delimiter=" ">
<text macro="author-short"/>
<text macro="year-date"/>
</group>
<text variable="year-suffix" font-style="italic"/>
</group>
<group delimiter=" ">
<label variable="locator" form="short"/>
<text variable="locator"/>
</group>
</group>
<text variable="locator"/>
<text variable="year-suffix" font-style="italic"/>
</layout>
</citation>
<bibliography entry-spacing="0" hanging-indent="true" subsequent-author-substitute="&#8212;&#8212;&#8212;">
Expand Down
8 changes: 4 additions & 4 deletions zoological-journal-of-the-linnean-society.csl
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
<link href="https://academic.oup.com/zoolinnean/pages/General_Instructions" rel="documentation"/>
<author>
<name>Martin R. Smith</name>
<email>[email protected]</email>
<uri>http://sn.im/martin-smith</uri>
<email>[email protected]</email>
<uri>https://smithlabdurham.github.io/</uri>
</author>
<category citation-format="author-date"/>
<category field="biology"/>
Expand Down Expand Up @@ -83,9 +83,9 @@
<date variable="issued">
<date-part name="year"/>
</date>
<group>
<group delimiter=" ">
<label variable="locator" form="short"/>
<text variable="locator" prefix=" "/>
<text variable="locator"/>
</group>
</group>
</layout>
Expand Down

0 comments on commit 252a5b5

Please sign in to comment.