Skip to content

Instantly share code, notes, and snippets.

@takluyver
Created April 30, 2012 11:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save takluyver/2557503 to your computer and use it in GitHub Desktop.
Save takluyver/2557503 to your computer and use it in GitHub Desktop.
BES citation 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>British Ecological Society</title>
<id>http://www.zotero.org/styles/british-ecological-society</id>
<link href="http://www.zotero.org/styles/british-ecological-society" rel="self"/>
<link href="http://www.functionalecology.org/view/0/authorGuideline.html" rel="documentation"/>
<author>
<name>Johan Asplund</name>
<email>asplundj@gmail.com</email>
</author>
<contributor>
<name>Sebastian Karcher</name>
</contributor>
<contributor>
<name>Thomas Kluyver</name>
</contributor>
<category field="biology"/>
<category field="generic-base"/>
<category citation-format="author-date"/>
<updated>2012-04-14T22:16:03+00: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=", ">
<label form="short" suffix=" " text-case="lowercase" strip-periods="true"/>
<name and="text" initialize-with="" delimiter=", "/>
</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"/>
<label form="short" prefix=" (" suffix=")" text-case="lowercase" 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"/>
<choose>
<if type="bill book graphic legal_case legislation 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 legislation motion_picture report song thesis" match="any">
<text variable="title" font-style="italic" text-case="title"/>
</if>
<else>
<text variable="title"/>
</else>
</choose>
</macro>
<macro name="edition">
<choose>
<if is-numeric="edition">
<group delimiter=" ">
<number variable="edition" form="ordinal"/>
<text term="edition" form="short" text-case="lowercase" strip-periods="true"/>
</group>
</if>
<else>
<text variable="edition"/>
</else>
</choose>
</macro>
<macro name="publisher">
<group delimiter=", ">
<text variable="genre"/>
<text variable="publisher"/>
<text variable="publisher-place"/>
</group>
</macro>
<citation collapse="year-suffix" et-al-min="4" et-al-use-first="1" et-al-subsequent-min="3" et-al-subsequent-use-first="1" disambiguate-add-year-suffix="true">
<sort>
<key variable="issued"/>
<key variable="author"/>
</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 legislation motion_picture report song thesis" match="any">
<group suffix=".">
<text macro="title" prefix=" "/>
<text macro="edition" 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=".">
<text macro="edition" prefix=", "/>
<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 macro="publisher"/>
<group prefix="URL ">
<text variable="URL" suffix=" "/>
<date variable="accessed" prefix="[accessed " suffix="]" delimiter=" ">
<date-part name="day"/>
<date-part name="month"/>
<date-part name="year"/>
</date>
</group>
</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