Skip to content

Instantly share code, notes, and snippets.

Created February 19, 2012 02:12
Show Gist options
  • Save anonymous/1861616 to your computer and use it in GitHub Desktop.
Save anonymous/1861616 to your computer and use it in GitHub Desktop.
Customized CSL Style
<?xml version="1.0" encoding="utf-8"?>
<!--Modified 8 Jan 2012 for Films, seems to work okay-->
<!--Modified on 5 Jan 2012 to fix a duplication in the...-->
<!--"Accessed On:" date field when a journal had a DOI and a URL...-->
<!--associated with it.-->
<!--Modified on 3 Jan 2012 for Edited volumes and further modified on...-->
<!--Jan 4, 2012 so that Editor, Publisher, and place of publication,...-->
<!--e.g., New York, London, etc. are correctly displayed.-->
<!--Dec 9 1940-the "journal volume" has been moved.-->
<!--Dec 9 2239-it works according to the Zotero validator and validator.nu.-->
<style xmlns="http://purl.org/net/xbiblio/csl" class="in-text" version="1.0" demote-non-dropping-particle="sort-only" default-locale="en-GB">
<info>
<title>Nature Style Modified</title>
<id>http://www.zotero.org/styles/nature-modified</id>
<link href="http://www.zotero.org/styles/nature" rel="self"/>
<author>
<name>Michael Berkowitz</name>
<email>mberkowi@gmu.edu</email>
</author>
<contributor>
<name>K. Mark Northrup</name>
<email>markn.scitechwriter@gmail.com</email>
</contributor>
<category field="science"/>
<category field="generic-base"/>
<category citation-format="numeric"/>
<issn>0028-0836</issn>
<issn>1476-4687</issn>
<updated>2012-02-17T15:25:07+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="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" quotes="true" text-case="title"/>
</else>
</choose>
</macro>
<macro name="editor-translator">
<names variable="editor translator" delimiter=". ">
<label form="verb-short" text-case="capitalize-first" suffix=". " strip-periods="true"/>
<name and="symbol" delimiter=", "/>
</names>
</macro>
<macro name="author">
<names variable="author">
<name sort-separator=", " delimiter=", " and="symbol" initialize-with="." delimiter-precedes-last="never" name-as-sort-order="all"/>
<et-al font-style="italic"/>
</names>
</macro>
<macro name="access-volume">
<choose>
<if variable="volume"/>
</choose>
</macro>
<macro name="medium">
<choose>
<if type="motion_picture">
<choose>
<if variable="medium">
<text variable="medium" prefix=" "/>
</if>
<else>
<text value="Film" prefix=" "/>
</else>
</choose>
</if>
<else-if type="broadcast">
<choose>
<if variable="medium">
<text variable="medium" prefix=" "/>
</if>
<else>
<text value="Television" prefix=" "/>
</else>
</choose>
</else-if>
<else-if type="manuscript">
<text value=""/>
</else-if>
<else-if type="personal_communication" match="any">
<text value="" prefix=" "/>
</else-if>
<else-if type="speech" match="any">
<text value=""/>
</else-if>
<else-if type="interview">
<text variable="medium" prefix=" "/>
</else-if>
</choose>
</macro>
<macro name="access-DOI">
<choose>
<if variable="DOI">
<text variable="DOI" prefix=" doi:"/>
</if>
</choose>
</macro>
<macro name="access-URL">
<choose>
<if variable="URL">
<text term="at" prefix=" "/>
<text variable="URL" prefix=" &lt;" suffix="&gt;"/>
<date variable="accessed">
<date-part name="day" prefix= " accessed on: " suffix=" "/>
<date-part name="month" form="short" suffix=" "/>
<date-part name="year"/>
</date>
</if>
</choose>
</macro>
<macro name="issuance">
<choose>
<if type="bill book chapter graphic legal_case motion_picture report song" match="any">
<group prefix=" (" suffix=").">
<text variable="publisher" suffix=": "/>
<text variable="publisher-place" suffix=", "/>
<date variable="issued">
<date-part name="year"/>
</date>
</group>
</if>
<else>
<date prefix=" (" suffix=")." variable="issued">
<date-part name="year"/>
</date>
</else>
</choose>
</macro>
<citation collapse="citation-number">
<sort>
<key variable="citation-number"/>
</sort>
<layout vertical-align="sup" delimiter=",">
<text variable="citation-number"/>
</layout>
</citation>
<bibliography et-al-min="6" et-al-use-first="1" second-field-align="flush" entry-spacing="0">
<layout>
<text variable="citation-number" suffix="."/>
<text macro="author" suffix=". "/>
<text macro="title" prefix=" " suffix=". "/>
<text variable="container-title" font-style="italic" suffix=" " form="short"/>
<text macro="editor-translator" prefix=" " suffix=". "/>
<text macro="medium" suffix="."/>
<text variable="volume" suffix=", " font-weight="bold"/>
<text variable="page"/>
<text macro="issuance"/>
<text macro="access-volume"/>
<text macro="access-DOI"/>
<text macro="access-URL"/>
</layout>
</bibliography>
</style>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment