Skip to content

Instantly share code, notes, and snippets.

@fbennett
Created April 8, 2011 09:17
Show Gist options
  • Save fbennett/909537 to your computer and use it in GitHub Desktop.
Save fbennett/909537 to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="utf-8"?>
<style xmlns="http://purl.org/net/xbiblio/csl" class="in-text" version="1.0">
<info>
<title>Molecular Ecology (dev)</title>
<id>http://www.zotero.org/styles/Molecular Ecology</id>
<link href="http://www.zotero.org/styles/Molecular Ecology" rel="self"/>
<author>
<name>myname</name>
<email>[email protected]</email>
</author>
<contributor>
<name> Sebastian Karcher</name>
</contributor>
<category field="biology"/>
<category field="generic-base"/>
<updated>2011-04-06T02:21:30+00:00</updated>
<rights>This work is licensed under a Creative Commons Attribution-Share Alike 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="text" initialize-with="" delimiter=", "/>
<label form="short" prefix=", " text-case="capitalize-first" suffix="." strip-periods="true"/>
</names>
</macro>
<macro name="author">
<names variable="author">
<name name-as-sort-order="all" sort-separator=" " initialize-with="" delimiter=", " delimiter-precedes-last="never"/>
<label form="short" prefix=" " suffix=" " text-case="capitalize-first" 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=". "/>
<substitute>
<names variable="editor"/>
<names variable="translator"/>
<choose>
<if type="bill book graphic legal_case motion_picture report song" match="any">
<text variable="title" form="short" font-style="italic"/>
</if>
<else>
<text variable="title" form="short" quotes="true"/>
</else>
</choose>
</substitute>
</names>
</macro>
<macro name="title">
<choose>
<if type="bill book graphic legal_case motion_picture report song" match="any">
<text variable="title" font-style="italic"/>
</if>
<else>
<text variable="title"/>
</else>
</choose>
</macro>
<macro name="publisher">
<group delimiter=", ">
<text variable="publisher"/>
<text variable="publisher-place"/>
</group>
</macro>
<citation et-al-min="1" et-al-use-first="1" et-al-subsequent-min="3" et-al-subsequent-use-first="1" disambiguate-add-year-suffix="true" collapse="year-suffix" disambiguate-add-names="true" year-suffix-delimiter=",">
<sort>
<key variable="author"/>
<key variable="issued"/>
</sort>
<layout prefix="(" suffix=")" delimiter="; ">
<group delimiter=" ">
<text macro="author-short"/>
<date variable="issued">
<date-part name="year"/>
</date>
<group>
<label variable="locator" suffix="." form="short" strip-periods="true"/>
<text variable="locator" prefix=" "/>
</group>
</group>
</layout>
</citation>
<bibliography hanging-indent="true">
<sort>
<key macro="author-short"/>
<key variable="issued"/>
</sort>
<layout>
<text macro="author" suffix=" "/>
<date variable="issued" prefix=" (" suffix=")">
<date-part name="year"/>
</date>
<choose>
<if type="bill book graphic legal_case motion_picture report song" match="any">
<group suffix=".">
<text macro="title" prefix=" "/>
<text macro="editor-translator" prefix=" "/>
</group>
<text prefix=" " suffix="." macro="publisher"/>
</if>
<else-if type="chapter paper-conference" match="any">
<text macro="title" prefix=" "/>
<group prefix=".">
<group prefix="" suffix="">
<text variable="container-title" font-style="italic" prefix=" " suffix=""/>
<text variable="collection-title" prefix=" " suffix="."/>
<group suffix=".">
<names variable="editor translator">
<label form="short" prefix=" (" suffix=" " strip-periods="true"/>
<name and="symbol" sort-separator=", " initialize-with="." delimiter=", " delimiter-precedes-last="never" suffix="),"/>
</names>
<label variable="page" form="short" prefix=" " suffix=". " strip-periods="true"/>
<text variable="page" suffix="."/>
<text macro="publisher" prefix=" "/>
</group>
</group>
</group>
</else-if>
<else-if type="webpage">
<group prefix=" " delimiter=", ">
<text variable="title"/>
<text variable="URL"/>
</group>
</else-if>
<else>
<group suffix=".">
<text macro="title" prefix=" "/>
<text macro="editor-translator" prefix=" "/>
</group>
<group prefix=" " suffix=".">
<text variable="container-title" font-style="italic"/>
<group prefix=", ">
<text variable="volume" font-weight="bold"/>
</group>
<text variable="page" prefix=", "/>
</group>
</else>
</choose>
</layout>
</bibliography>
</style>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment