Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save keithwlarson/1985659 to your computer and use it in GitHub Desktop.
Save keithwlarson/1985659 to your computer and use it in GitHub Desktop.
Modified Journal of Evolutionary Biology style
<?xml version="1.0" encoding="utf-8"?>
<style xmlns="http://purl.org/net/xbiblio/csl" class="in-text" version="1.0" demote-non-dropping-particle="sort-only" default-locale="en-US">
<info>
<title>Journal of Evolutionary Biology</title>
<id>http://www.zotero.org/styles/journal-of-evolutionary-biology</id>
<link href="http://www.zotero.org/styles/journal-of-evolutionary-biology" rel="self"/>
<link href="http://onlinelibrary.wiley.com/journal/10.1111/(ISSN)1420-9101/homepage/ForAuthors.html" rel="documentation"/>
<author>
<name>Martin Lind</name>
<email>martin.lind@emg.umu.se</email>
</author>
<contributor>
<name>Mirre Simons</name>
<email>mirresimons@gmail.com</email>
</contributor>
<contributor>
<name>Sebastian Karcher</name>
</contributor>
<contributor>
<name>Keith Larson</name>
<email>keith.w.larson@gmail.com</email>
</contributor>
<category citation-format="author-date"/>
<category field="biology"/>
<issn>1420-9101</issn>
<updated>2012-03-07T08:44:25+01:00</updated>
<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="editor-translator">
<names variable="editor translator" prefix="(" suffix=")" delimiter=", ">
<name and="symbol" initialize-with=". " delimiter=", "/>
<label form="short" prefix=", " strip-periods="true"/>
</names>
</macro>
<macro name="author">
<names variable="author">
<name name-as-sort-order="all" and="symbol" sort-separator=", " initialize-with="." delimiter=", " delimiter-precedes-last="never"/>
<et-al font-style="italic"/>
<label form="short" prefix=" (" suffix=")" strip-periods="true"/>
<substitute>
<names variable="editor"/>
<names variable="translator"/>
<text macro="title"/>
</substitute>
</names>
</macro>
<macro name="author-short">
<names variable="author">
<name form="short" and="symbol" delimiter=", " initialize-with=". "/>
<et-al font-style="italic"/>
<substitute>
<names variable="editor"/>
<names variable="translator"/>
<text macro="title"/>
</substitute>
</names>
</macro>
<macro name="title">
<choose>
<if type="bill book graphic legal_case motion_picture report song" match="any">
<group delimiter=" ">
<group delimiter=", ">
<text variable="title" font-style="italic"/>
<text macro="edition"/>
</group>
<text macro="editor-translator"/>
</group>
</if>
<else>
<text variable="title"/>
</else>
</choose>
</macro>
<macro name="year-date">
<choose>
<if variable="issued">
<date variable="issued">
<date-part name="year"/>
</date>
<text variable="year-suffix" font-style="italic"/>
</if>
<else>
<text term="no date" form="short"/>
</else>
</choose>
</macro>
<macro name="edition">
<choose>
<if is-numeric="edition">
<group delimiter=" ">
<number variable="edition" form="ordinal"/>
<text term="edition" form="short"/>
</group>
</if>
<else>
<text variable="edition"/>
</else>
</choose>
</macro>
<macro name="journal-location">
<choose>
<if type="article-journal article-magazine" match="any">
<group delimiter=" ">
<text variable="container-title" font-style="italic" form="short"/>
<group delimiter=": ">
<text variable="volume" font-weight="bold"/>
<text variable="page"/>
</group>
</group>
<choose>
<if variable="page volume" match="none">
<text variable="DOI" prefix=", doi: "/>
</if>
</choose>
</if>
</choose>
</macro>
<macro name="chapter-info">
<choose>
<if type="chapter paper-conference" match="any">
<group delimiter=", ">
<group delimiter=" ">
<text term="in" text-case="capitalize-first" suffix=":"/>
<text variable="container-title"/>
<text macro="editor-translator"/>
</group>
<group delimiter=" ">
<label variable="page" form="short"/>
<text variable="page"/>
</group>
</group>
</if>
</choose>
</macro>
<macro name="access">
<choose>
<if variable="URL">
<choose>
<if variable="DOI" match="none">
<text variable="URL" prefix="See "/>
</if>
</choose>
</if>
</choose>
</macro>
<macro name="publisher">
<group delimiter=", ">
<text variable="publisher"/>
<text variable="publisher-place"/>
</group>
</macro>
<citation et-al-min="3" et-al-use-first="1" disambiguate-add-year-suffix="true" disambiguate-add-names="true" disambiguate-add-givenname="true" collapse="year-suffix">
<sort>
<key macro="year-date"/>
</sort>
<layout prefix="(" suffix=")" delimiter="; ">
<group delimiter=", ">
<text macro="author-short"/>
<text macro="year-date"/>
<group>
<label variable="locator" form="short"/>
<text variable="locator" prefix=" "/>
</group>
</group>
</layout>
</citation>
<bibliography hanging-indent="true" et-al-min="7" et-al-use-first="6">
<sort>
<key macro="author"/>
<key macro="title"/>
</sort>
<layout suffix=".">
<group delimiter=". ">
<text macro="author"/>
<text macro="year-date"/>
<text macro="title"/>
<text macro="journal-location"/>
<text macro="chapter-info"/>
<text macro="publisher"/>
<text macro="access"/>
</group>
</layout>
</bibliography>
</style>
@keithwlarson
Copy link
Author

I updated the journal style as the year was missing from the bibliography output.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment