Skip to content

Instantly share code, notes, and snippets.

@adam3smith
Created January 31, 2011 19:51
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 adam3smith/804674 to your computer and use it in GitHub Desktop.
Save adam3smith/804674 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" demote-non-dropping-particle="sort-only">
<info>
<title>Public Library of Science Journals (dev)</title>
<id>http://www.zotero.org/styles/plos</id>
<link href="http://www.zotero.org/styles/plos" rel="self"/>
<author>
<name>Julian Onions</name>
<email>julian.onions@gmail.com</email>
</author>
<category citation-format="numeric"/>
<category field="science"/>
<updated>2010-07-26T02:21:30+00:00</updated>
<summary>Public Library of Science Journal style.</summary>
<link href="http://journals.plos.org/plosbiology/guidelines.php" rel="documentation"/>
<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">
<names variable="editor" delimiter=", ">
<name initialize-with="" name-as-sort-order="all" sort-separator=" " delimiter=", " delimiter-precedes-last="always"/>
<label form="long" text-case="lowercase" prefix=", "/>
</names>
</macro>
<macro name="author">
<names variable="author">
<name name-as-sort-order="all" sort-separator=" " initialize-with="" delimiter=", " delimiter-precedes-last="always"/>
<label form="short" prefix=" " suffix="." text-case="lowercase" strip-periods="true"/>
<substitute>
<names variable="editor"/>
<text variable="title"/>
</substitute>
</names>
</macro>
<macro name="access">
<group>
<choose>
<if variable="URL">
<text variable="URL" prefix=" Available: " suffix="."/>
<group prefix=" " suffix=".">
<text term="accessed" text-case="capitalize-first" suffix=" "/>
<date variable="accessed">
<date-part name="day" suffix=" "/>
<date-part name="month" form="short" suffix=" " strip-periods="true"/>
<date-part name="year"/>
</date>
</group>
</if>
<else>
<text variable="DOI" prefix=" doi:"/>
</else>
</choose>
</group>
</macro>
<macro name="title">
<text variable="title"/>
</macro>
<macro name="publisher">
<group delimiter=": ">
<text variable="publisher-place"/>
<text variable="publisher"/>
</group>
</macro>
<macro name="year-date">
<choose>
<if variable="issued">
<date variable="issued">
<date-part name="year"/>
</date>
</if>
<else>
<text term="no date" form="short"/>
</else>
</choose>
</macro>
<!-- <macro name="cite-date">
<date variable="issued">
<date-part name="month" suffix=" "/>
<date-part name="day" suffix=", "/>
<date-part name="year"/>
</date>
</macro>
-->
<macro name="edition">
<choose>
<if is-numeric="edition">
<group delimiter=" ">
<number variable="edition" form="ordinal"/>
<text term="edition" form="short" suffix="." strip-periods="true"/>
</group>
</if>
<else>
<text variable="edition" suffix="."/>
</else>
</choose>
</macro>
<citation collapse="citation-number">
<sort>
<key variable="citation-number" sort="ascending"/>
</sort>
<layout prefix="[" suffix="]" delimiter=",">
<text variable="citation-number"/>
</layout>
</citation>
<bibliography et-al-min="6" et-al-use-first="5" second-field-align="flush">
<layout>
<text variable="citation-number" suffix=". "/>
<text macro="author"/>
<text macro="year-date" prefix=" (" suffix=")"/>
<choose>
<if type="bill book graphic legal_case motion_picture report song" match="any">
<group delimiter=" " prefix=" ">
<text macro="title" suffix="."/>
<text macro="edition"/>
<text macro="editor"/>
<text macro="publisher" suffix="."/>
<text variable="page"/>
<label variable="page" form="short" suffix="." strip-periods="true"/>
</group>
</if>
<else-if type="chapter paper-conference" match="any">
<text macro="title" prefix=" " suffix="."/>
<group prefix=" " delimiter=". " suffix=".">
<group>
<text term="in" text-case="capitalize-first" suffix=":"/>
<text macro="editor" prefix=" "/>
</group>
<text variable="container-title"/>
<text variable="collection-title"/>
</group>
<group suffix="." delimiter=", ">
<text macro="publisher" prefix=" "/>
<text variable="volume" prefix="Vol. "/>
</group>
<group prefix=" ">
<label variable="page" suffix=". " form="short" strip-periods="true"/>
<text variable="page" suffix="."/>
</group>
</else-if>
<else-if type="thesis">
<group delimiter=" " prefix=" ">
<text macro="title"/>
<text variable="genre" prefix="[" suffix="]. "/>
<text macro="publisher" suffix="."/>
</group>
</else-if>
<else>
<text macro="title" prefix=" " suffix="."/>
<group delimiter=" " prefix=" " suffix="">
<text variable="container-title" form="short"/>
<text variable="volume"/>
</group>
<text variable="page" prefix=": "/>
<text value="."/>
</else>
</choose>
<text macro="access"/>
</layout>
</bibliography>
</style>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment