Skip to content

Instantly share code, notes, and snippets.

@druedin
Last active December 14, 2015 12:49
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 druedin/5089122 to your computer and use it in GitHub Desktop.
Save druedin/5089122 to your computer and use it in GitHub Desktop.
CSL for Ethnic and Racial Studies (ESR), second draft. Author instructions at: http://www.tandfonline.com/action/authorSubmission?journalCode=rers20&page=instructions
<?xml version="1.0" encoding="utf-8"?>
<style xmlns="http://purl.org/net/xbiblio/csl" class="in-text" version="1.0" page-range-format="chicago" demote-non-dropping-particle="sort-only">
<info>
<title>Ethnic and Racial Studies</title>
<id>http://www.zotero.org/styles/ethnic-and-racial-studies</id>
<link href="http://www.zotero.org/styles/ethnic-and-racial-studies" rel="self"/>
<link href="www.tandfonline.com/action/authorSubmission?journalCode=rers20&amp;page=instructions" rel="documentation"/>
<author>
<name>Didier Ruedin</name>
<email>didier.ruedin@wolfson.oxon.org</email>
<uri>druedin.com</uri>
</author>
<category citation-format="author-date"/>
<category field="social_science"/>
<eissn>1466-4356</eissn>
<issnl>0141-9870</issnl>
<updated>2013-03-05T21:01:19+00:00</updated>
<rights license="http://creativecommons.org/licenses/by-sa/3.0/">This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License</rights>
</info>
<locale xml:lang="en-US">
<date form="text">
<date-part name="month" suffix=" "/>
<date-part name="day" suffix=", "/>
<date-part name="year"/>
</date>
</locale>
<locale xml:lang="nb-NO">
<date form="text">
<date-part name="day" suffix=" "/>
<date-part name="month" suffix=" "/>
<date-part name="year"/>
</date>
</locale>
<locale xml:lang="nn-NO">
<date form="text">
<date-part name="day" suffix=" "/>
<date-part name="month" suffix=" "/>
<date-part name="year"/>
</date>
</locale>
<macro name="editor">
<names variable="editor" delimiter=", ">
<label form="short" text-case="lowercase" suffix=". " strip-periods="true"/>
<name and="text" delimiter=", "/>
</names>
</macro>
<macro name="author">
<names variable="author" font-variant="normal" text-decoration="none">
<name and="text" delimiter-precedes-et-al="never" delimiter-precedes-last="never" name-as-sort-order="all">
<name-part name="family" text-case="uppercase"/>
<name-part name="given" text-case="uppercase"/>
</name>
<label form="short" prefix=", " suffix="." text-case="lowercase" strip-periods="true"/>
<substitute>
<names variable="editor"/>
<text macro="title"/>
</substitute>
</names>
</macro>
<macro name="author-short">
<names variable="author">
<name form="short" and="text" delimiter-precedes-et-al="never" delimiter-precedes-last="never" et-al-min="3" et-al-subsequent-min="3" initialize-with=". "/>
<substitute>
<names variable="editor"/>
<names variable="translator"/>
<text macro="title"/>
</substitute>
</names>
</macro>
<macro name="access">
<choose>
<if type="legal_case" match="none">
<choose>
<if variable="URL">
<group delimiter=" ">
<text variable="URL"/>
<group prefix="(" suffix=")">
<date variable="accessed" form="text"/>
</group>
</group>
</if>
</choose>
</if>
</choose>
</macro>
<macro name="title">
<choose>
<if type="bill book graphic legal_case legislation motion_picture report song" match="any">
<text variable="title" font-style="italic" text-case="title"/>
</if>
<else>
<text variable="title" text-case="title" quotes="false" prefix="'" suffix="',"/>
</else>
</choose>
</macro>
<macro name="legal_case">
<group prefix=" " delimiter=" ">
<text variable="volume"/>
<text variable="container-title"/>
</group>
<text variable="authority" prefix=" (" suffix=")"/>
</macro>
<macro name="publisher">
<choose>
<if type="thesis" match="none">
<group delimiter=": ">
<text variable="publisher-place"/>
<text variable="publisher"/>
</group>
<text variable="genre" prefix=". "/>
</if>
<else>
<group delimiter=". ">
<text variable="genre"/>
<text variable="publisher"/>
</group>
</else>
</choose>
</macro>
<macro name="year-date">
<choose>
<if variable="issued">
<date date-parts="year" variable="issued">
<date-part name="year"/>
</date>
</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" suffix="." strip-periods="true"/>
</group>
</if>
<else>
<text variable="edition" suffix="."/>
</else>
</choose>
</macro>
<macro name="locator">
<choose>
<if locator="page">
<text variable="locator"/>
</if>
<else>
<group delimiter=" ">
<label variable="locator" form="short"/>
<text variable="locator"/>
</group>
</else>
</choose>
</macro>
<citation et-al-min="4" et-al-use-first="1" disambiguate-add-year-suffix="true" disambiguate-add-names="true" disambiguate-add-givenname="true" givenname-disambiguation-rule="primary-name" collapse="year">
<sort>
<key macro="author-short"/>
<key macro="year-date"/>
</sort>
<layout prefix="(" suffix=")" delimiter="; ">
<group delimiter=", ">
<group delimiter=" ">
<text macro="author-short"/>
<text macro="year-date"/>
</group>
<text macro="locator"/>
</group>
</layout>
</citation>
<bibliography hanging-indent="true" subsequent-author-substitute="———">
<sort>
<key macro="author"/>
<key macro="year-date"/>
<key variable="title"/>
</sort>
<layout suffix=".">
<text macro="author"/>
<date variable="issued" prefix=" ">
<date-part name="year"/>
</date>
<choose>
<if type="bill book graphic legal_case legislation manuscript motion_picture report song thesis" match="any">
<text macro="legal_case"/>
<group prefix=" " delimiter=" ">
<text macro="title" suffix=","/>
<text macro="edition"/>
<text macro="editor" suffix="."/>
</group>
<text prefix=" " suffix="." macro="publisher"/>
</if>
<else-if type="chapter paper-conference" match="any">
<text macro="title" prefix=" " suffix="."/>
<group prefix=" " delimiter=" ">
<text term="in" text-case="capitalize-first"/>
<text variable="container-title" font-style="italic" suffix=","/>
<text variable="collection-title" suffix=","/>
<text macro="editor" suffix="."/>
<group suffix=".">
<text macro="publisher"/>
<text variable="page" prefix=", "/>
</group>
</group>
</else-if>
<else>
<group delimiter=" " prefix=" ">
<text macro="title"/>
<text macro="editor"/>
</group>
<choose>
<if type="speech">
<group prefix=" " delimiter=" " suffix=".">
<text term="presented at" text-case="capitalize-first"/>
<group delimiter=", ">
<text variable="event"/>
<text variable="event-place"/>
</group>
</group>
</if>
</choose>
<group prefix=" " suffix=".">
<text variable="container-title" font-style="italic" suffix=","/>
<group prefix=" ">
<text variable="volume" prefix="vol. " suffix=", "/>
<text variable="issue" prefix="no. " suffix=", "/>
</group>
<text variable="page" prefix="pp. "/>
</group>
</else>
</choose>
<text prefix=" " macro="access" suffix="."/>
</layout>
</bibliography>
</style>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment