Skip to content

Instantly share code, notes, and snippets.

@craigeley
Created February 10, 2012 04:57
Show Gist options
  • Save craigeley/1786800 to your computer and use it in GitHub Desktop.
Save craigeley/1786800 to your computer and use it in GitHub Desktop.
A modification of the Zotero Chicago Style for use with MultiMarkdown (Plain text) writing
<?xml version="1.0" encoding="utf-8"?>
<style xmlns="http://purl.org/net/xbiblio/csl" class="note" version="1.0" demote-non-dropping-particle="sort-only">
<info>
<title>Multimarkdown - Chicago (full note)</title>
<id>http://fieldnoise.com/styles/markdown-chicago-fullnote</id>
<link href="http://www.chicagomanualofstyle.org/tools_citationguide.html" rel="documentation"/>
<author>
<name>Julian Onions</name>
<email>[email protected]</email>
</author>
<contributor>
<name>Simon Kornblith</name>
<email>[email protected]</email>
</contributor>
<contributor>
<name>Elena Razlogova</name>
<email>[email protected]</email>
</contributor>
<contributor>
<name>Sebastian Karcher</name>
</contributor>
<contributor>
<name>Craig Eley</name>
<email>[email protected]</email>
</contributor>
<summary>Chicago format modified for Multimarkdown</summary>
<category field="generic-base"/>
<category citation-format="note"/>
<updated>2012-02-09T21:11:04+06: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>
<locale xml:lang="en">
<terms>
<term name="editortranslator" form="verb-short">
<single>trans. and ed.</single>
<multiple>trans. and ed.</multiple>
</term>
<term name="editortranslator" form="verb">
<single> Translated and edited by</single>
<multiple> Translated and edited by</multiple>
</term>
</terms>
</locale>
<macro name="editor-translator">
<group delimiter=", ">
<choose>
<if variable="author">
<choose>
<if variable="container-author">
<group>
<names variable="container-author">
<label form="verb-short" prefix=" " text-case="lowercase" suffix=" "/>
<name and="text" delimiter=", "/>
</names>
</group>
</if>
</choose>
<names variable="editor translator" delimiter=", ">
<label form="verb-short" text-case="lowercase" suffix=" "/>
<name and="text" delimiter=", "/>
</names>
</if>
</choose>
</group>
</macro>
<macro name="secondary-contributors-note">
<choose>
<if type="chapter paper-conference" match="none">
<text macro="editor-translator"/>
</if>
</choose>
</macro>
<macro name="container-contributors-note">
<choose>
<if type="chapter paper-conference" match="any">
<text macro="editor-translator"/>
</if>
</choose>
</macro>
<macro name="secondary-contributors">
<choose>
<if type="chapter paper-conference" match="none">
<group delimiter=". ">
<choose>
<if variable="author">
<names variable="editor translator" delimiter=". ">
<label form="verb" text-case="capitalize-first" suffix=" "/>
<name and="text" delimiter=", "/>
</names>
</if>
</choose>
</group>
</if>
</choose>
</macro>
<macro name="container-contributors">
<choose>
<if type="chapter paper-conference" match="any">
<group delimiter=", ">
<choose>
<if variable="author">
<choose>
<if variable="container-author">
<group>
<names variable="container-author">
<label form="verb-short" prefix=" " text-case="lowercase" suffix=" "/>
<name and="text" delimiter=", "/>
</names>
</group>
</if>
</choose>
<!--This includes page numers after the container author, e.g. for Introductions -->
<choose>
<if variable="container-author author" match="all">
<group delimiter=". ">
<text variable="page"/>
<names variable="editor translator" delimiter=", ">
<label form="verb" suffix=" "/>
<name and="text" delimiter=", "/>
</names>
</group>
</if>
<else>
<names variable="editor translator" delimiter=", ">
<label form="verb" text-case="lowercase" suffix=" "/>
<name and="text" delimiter=", "/>
</names>
</else>
</choose>
</if>
</choose>
</group>
</if>
</choose>
</macro>
<macro name="recipient-note">
<names variable="recipient" delimiter=", ">
<label form="verb" prefix=" " text-case="lowercase" suffix=" "/>
<name and="text" delimiter=", "/>
</names>
</macro>
<macro name="contributors-note">
<names variable="author">
<name and="text" sort-separator=", " delimiter=", "/>
<label form="short" prefix=", "/>
<substitute>
<names variable="editor"/>
<names variable="translator"/>
</substitute>
</names>
<text macro="recipient-note"/>
</macro>
<macro name="editor">
<names variable="editor">
<name name-as-sort-order="first" and="text" sort-separator=", " delimiter=", " delimiter-precedes-last="always"/>
<label form="short" prefix=", "/>
</names>
</macro>
<macro name="translator">
<names variable="translator">
<name name-as-sort-order="first" and="text" sort-separator=", " delimiter=", " delimiter-precedes-last="always"/>
<label form="verb-short" prefix=", "/>
</names>
</macro>
<macro name="recipient">
<choose>
<if type="personal_communication">
<choose>
<if variable="genre">
<text variable="genre" text-case="capitalize-first"/>
</if>
<else>
<text term="letter" text-case="capitalize-first"/>
</else>
</choose>
</if>
</choose>
<text macro="recipient-note" prefix=" "/>
</macro>
<macro name="contributors">
<names variable="author">
<name name-as-sort-order="first" and="text" sort-separator=", " delimiter=", " delimiter-precedes-last="always"/>
<substitute>
<text macro="editor"/>
<text macro="translator"/>
</substitute>
</names>
<text macro="recipient" prefix=". "/>
</macro>
<macro name="recipient-short">
<names variable="recipient">
<label form="verb" prefix=" " text-case="lowercase" suffix=" "/>
<name form="short" and="text" delimiter=", "/>
</names>
</macro>
<macro name="contributors-short">
<names variable="author">
<name form="short" and="text" delimiter=", "/>
<substitute>
<names variable="editor"/>
<names variable="translator"/>
</substitute>
</names>
<text macro="recipient-short"/>
</macro>
<macro name="contributors-sort">
<names variable="author">
<name name-as-sort-order="all" and="text" sort-separator=", " delimiter=", " delimiter-precedes-last="always"/>
<label form="verb-short" prefix=", "/>
<substitute>
<names variable="editor"/>
<names variable="translator"/>
</substitute>
</names>
</macro>
<macro name="interviewer-note">
<names variable="interviewer" delimiter=", ">
<label form="verb" prefix=" " text-case="lowercase" suffix=" "/>
<name and="text" delimiter=", "/>
</names>
</macro>
<macro name="interviewer">
<names variable="interviewer" delimiter=", ">
<label form="verb" prefix=" " text-case="capitalize-first" suffix=" "/>
<name and="text" delimiter=", "/>
</names>
</macro>
<macro name="title-note">
<choose>
<if variable="title" match="none">
<text variable="genre"/>
</if>
<else-if type="bill book graphic legal_case motion_picture report song" match="any">
<text variable="title" text-case="title" prefix="*" suffix="*"/>
</else-if>
<else>
<text variable="title" text-case="title" quotes="true"/>
</else>
</choose>
</macro>
<macro name="title">
<choose>
<if variable="title" match="none">
<choose>
<if type="personal_communication" match="none">
<text variable="genre" text-case="capitalize-first"/>
</if>
</choose>
</if>
<else-if type="bill book graphic legal_case motion_picture report song" match="any">
<text variable="title" text-case="title" prefix="*" suffix="*"/>
</else-if>
<else>
<text variable="title" text-case="title" quotes="true"/>
</else>
</choose>
</macro>
<macro name="title-short">
<choose>
<if variable="title" match="none">
<choose>
<if type="interview">
<text term="interview" text-case="lowercase"/>
</if>
<else-if type="manuscript speech" match="any">
<text variable="genre" form="short"/>
</else-if>
<else-if type="personal_communication">
<text macro="issued"/>
</else-if>
</choose>
</if>
<else-if type="bill book graphic legal_case motion_picture report song" match="any">
<text variable="title" text-case="title" form="short" prefix="*" suffix="*"/>
</else-if>
<else>
<text variable="title" text-case="title" form="short" quotes="true"/>
</else>
</choose>
</macro>
<macro name="description-note">
<group delimiter=", ">
<text macro="interviewer-note"/>
<text variable="medium"/>
<choose>
<if variable="title" match="none"/>
<else-if type="thesis speech" match="any"/>
<else>
<text variable="genre"/>
</else>
</choose>
</group>
</macro>
<macro name="description">
<group delimiter=", ">
<group delimiter=". ">
<text macro="interviewer"/>
<text variable="medium" text-case="capitalize-first"/>
</group>
<choose>
<if variable="title" match="none"/>
<else-if type="thesis speech" match="any"/>
<else>
<text variable="genre" text-case="capitalize-first"/>
</else>
</choose>
</group>
</macro>
<macro name="container-title-note">
<choose>
<if type="chapter paper-conference" match="any">
<text term="in" text-case="lowercase" suffix=" "/>
</if>
</choose>
<choose>
<if type="legal_case" match="none">
<text variable="container-title" text-case="title" prefix="*" suffix="*"/>
</if>
</choose>
</macro>
<macro name="container-title">
<choose>
<if type="chapter paper-conference" match="any">
<text term="in" text-case="capitalize-first" suffix=" "/>
</if>
</choose>
<choose>
<if type="legal_case" match="none">
<text variable="container-title" text-case="title" prefix="*" suffix="*"/>
</if>
</choose>
</macro>
<macro name="collection-title">
<text variable="collection-title" text-case="title"/>
<text variable="collection-number" prefix=" "/>
</macro>
<macro name="edition-note">
<choose>
<if type="bill book graphic legal_case motion_picture report song chapter paper-conference" match="any">
<choose>
<if is-numeric="edition">
<group delimiter=" ">
<number variable="edition" form="ordinal"/>
<text term="edition" form="short"/>
</group>
</if>
<else>
<text variable="edition" suffix="."/>
</else>
</choose>
</if>
</choose>
</macro>
<macro name="edition">
<choose>
<if type="bill book graphic legal_case motion_picture report song chapter paper-conference" match="any">
<choose>
<if is-numeric="edition">
<group delimiter=" ">
<number variable="edition" form="ordinal"/>
<text term="edition" form="short"/>
</group>
</if>
<else>
<text variable="edition" text-case="capitalize-first" suffix="."/>
</else>
</choose>
</if>
</choose>
</macro>
<macro name="locators-note">
<choose>
<if type="article-journal">
<text variable="volume" prefix=" "/>
<group prefix=", ">
<text term="issue" form="short" suffix=" "/>
<number variable="issue"/>
</group>
</if>
<else-if type="legal_case">
<text variable="volume" prefix=", "/>
<text variable="container-title" prefix=" "/>
<text variable="page" prefix=" "/>
<text variable="locator" prefix=", "/>
</else-if>
<else-if type="bill book graphic legal_case motion_picture report song chapter paper-conference" match="any">
<group prefix=", " delimiter=", ">
<group>
<text term="volume" form="short" suffix=" "/>
<number variable="volume" form="numeric"/>
</group>
<choose>
<if variable="locator" match="none">
<group>
<number variable="number-of-volumes" form="numeric"/>
<text term="volume" form="short" prefix=" " plural="true"/>
</group>
</if>
</choose>
<text macro="edition-note"/>
</group>
</else-if>
</choose>
</macro>
<macro name="locators">
<choose>
<if type="article-journal">
<text variable="volume" prefix=" "/>
<group prefix=", ">
<text term="issue" form="short" suffix=" "/>
<number variable="issue"/>
</group>
</if>
<else-if type="legal_case">
<text variable="volume" prefix=", "/>
<text variable="container-title" prefix=" "/>
<text variable="page" prefix=" "/>
</else-if>
<else-if type="bill book graphic legal_case motion_picture report song" match="any">
<group prefix=". " delimiter=". ">
<group>
<text term="volume" form="short" text-case="capitalize-first" suffix=" "/>
<number variable="volume" form="numeric"/>
</group>
<group>
<number variable="number-of-volumes" form="numeric"/>
<text term="volume" form="short" prefix=" " plural="true"/>
</group>
<text macro="edition"/>
</group>
</else-if>
<else-if type="chapter paper-conference" match="any">
<group prefix=". " delimiter=". ">
<choose>
<if variable="page" match="none">
<group>
<text term="volume" form="short" text-case="capitalize-first" suffix=" "/>
<number variable="volume" form="numeric"/>
</group>
</if>
</choose>
<text macro="edition"/>
</group>
</else-if>
</choose>
</macro>
<macro name="locators-newspaper">
<choose>
<if type="article-newspaper">
<group delimiter=", ">
<group>
<text variable="edition" suffix=" "/>
<text term="edition" prefix=" "/>
</group>
<group>
<text term="section" form="short" suffix=" "/>
<text variable="section"/>
</group>
</group>
</if>
</choose>
</macro>
<macro name="event">
<group>
<text term="presented at" suffix=" "/>
<text variable="event"/>
</group>
</macro>
<macro name="publisher">
<choose>
<if type="thesis">
<text variable="publisher"/>
</if>
<else>
<group delimiter=": ">
<text variable="publisher-place"/>
<text variable="publisher"/>
</group>
</else>
</choose>
</macro>
<macro name="issued">
<choose>
<if variable="issued">
<choose>
<if type="graphic report" match="any">
<date variable="issued">
<date-part name="month" suffix=" "/>
<date-part name="day" suffix=", "/>
<date-part name="year"/>
</date>
</if>
<else-if type="legal_case">
<text variable="authority" suffix=" "/>
<date variable="issued">
<date-part name="year"/>
</date>
</else-if>
<else-if type="bill book graphic legal_case motion_picture report song thesis chapter paper-conference" match="any">
<date variable="issued">
<date-part name="year"/>
</date>
</else-if>
<else>
<date variable="issued">
<date-part name="month" suffix=" "/>
<date-part name="day" suffix=", "/>
<date-part name="year"/>
</date>
</else>
</choose>
</if>
<else>
<text term="no date" form="short"/>
</else>
</choose>
</macro>
<macro name="point-locators-subsequent">
<group>
<choose>
<if locator="page" match="none">
<choose>
<if type="bill book graphic legal_case motion_picture report song" match="any">
<choose>
<if variable="volume">
<group>
<text term="volume" form="short" text-case="lowercase" suffix=" "/>
<number variable="volume" form="numeric"/>
<label variable="locator" form="short" prefix=", " suffix=" "/>
</group>
</if>
<else>
<label variable="locator" form="short" suffix=" "/>
</else>
</choose>
</if>
<else>
<label variable="locator" form="short" suffix=" "/>
</else>
</choose>
</if>
<else-if type="bill book graphic legal_case motion_picture report song" match="any">
<number variable="volume" form="numeric" suffix=":"/>
</else-if>
</choose>
<text variable="locator"/>
</group>
</macro>
<macro name="point-locators">
<choose>
<if variable="locator" match="none">
<text macro="pages"/>
</if>
<else-if type="article-journal">
<group delimiter=" " prefix=": ">
<choose>
<if locator="page" match="none">
<label variable="locator" form="short" suffix=" "/>
</if>
</choose>
<text variable="locator"/>
</group>
</else-if>
<else-if type="legal_case"/>
<else>
<group prefix=", ">
<choose>
<if locator="page" match="none">
<label variable="locator" form="short" suffix=" "/>
</if>
</choose>
<text variable="locator"/>
</group>
</else>
</choose>
</macro>
<macro name="pages">
<choose>
<if type="article-journal">
<text variable="page" prefix=": "/>
</if>
<else-if type="chapter paper-conference" match="any">
<text variable="page" prefix=", "/>
</else-if>
</choose>
</macro>
<macro name="locators-chapter">
<choose>
<if type="chapter paper-conference" match="any">
<choose>
<!--If author and container-author are present, page numbers are in macro container-contributor. Leave them out here-->
<if variable="author container-author" match="all">
</if>
<else>
<choose>
<if variable="page">
<text variable="volume" suffix=":"/>
<text variable="page"/>
</if>
</choose>
</else>
</choose>
</if>
</choose>
</macro>
<macro name="locators-journal">
<choose>
<if type="article-journal">
<text variable="page" prefix=": "/>
</if>
</choose>
</macro>
<macro name="archive-note">
<choose>
<if type="thesis">
<group delimiter=" ">
<text variable="archive"/>
<text variable="archive_location" prefix="(" suffix=")"/>
</group>
</if>
<else>
<group delimiter=", ">
<text variable="archive_location"/>
<text variable="archive"/>
<text variable="archive-place"/>
</group>
</else>
</choose>
</macro>
<macro name="archive">
<choose>
<if type="thesis">
<group delimiter=" ">
<text variable="archive"/>
<text variable="archive_location" prefix="(" suffix=")"/>
</group>
</if>
<else>
<group delimiter=". ">
<text variable="archive_location" text-case="capitalize-first"/>
<text variable="archive"/>
<text variable="archive-place"/>
</group>
</else>
</choose>
</macro>
<macro name="issue-note">
<choose>
<if type="article-journal legal_case" match="any">
<text macro="issued" prefix=" (" suffix=")"/>
</if>
<else-if variable="publisher-place publisher" match="any">
<group prefix=" (" suffix=")" delimiter=", ">
<group delimiter=" ">
<choose>
<if variable="title" match="none"/>
<else-if type="thesis speech" match="any">
<text variable="genre"/>
</else-if>
</choose>
<text macro="event"/>
</group>
<text macro="publisher"/>
<text macro="issued"/>
</group>
</else-if>
<else>
<text macro="issued" prefix=", "/>
</else>
</choose>
</macro>
<macro name="issue">
<choose>
<if type="article-journal legal_case" match="any">
<text macro="issued" prefix=" (" suffix=")"/>
</if>
<else-if type="speech">
<choose>
<if variable="title" match="none"/>
<else>
<text variable="genre" text-case="capitalize-first" prefix=". "/>
</else>
</choose>
<text macro="event" prefix=" "/>
<text variable="event-place" prefix=", "/>
<text macro="issued" prefix=", "/>
</else-if>
<else-if variable="publisher-place publisher" match="any">
<group prefix=". " delimiter=", ">
<choose>
<if type="thesis">
<text variable="genre" text-case="capitalize-first"/>
</if>
</choose>
<text macro="publisher"/>
<text macro="issued"/>
</group>
</else-if>
<else>
<text macro="issued" prefix=", "/>
</else>
</choose>
</macro>
<macro name="access-note">
<group delimiter=", ">
<choose>
<if type="graphic report" match="any">
<text macro="archive-note"/>
</if>
<else-if type="bill book graphic legal_case motion_picture report song article-journal article-magazine article-newspaper chapter paper-conference" match="none">
<text macro="archive-note"/>
</else-if>
</choose>
<choose>
<if type="legal_case" match="none">
<text variable="URL"/>
</if>
</choose>
</group>
</macro>
<macro name="access">
<group delimiter=". ">
<choose>
<if type="graphic report" match="any">
<text macro="archive"/>
</if>
<else-if type="bill book graphic legal_case motion_picture report song article-journal article-magazine article-newspaper chapter paper-conference" match="none">
<text macro="archive"/>
</else-if>
</choose>
<choose>
<if type="legal_case" match="none">
<text variable="URL"/>
</if>
</choose>
</group>
</macro>
<macro name="sort-key">
<text macro="contributors-sort" suffix=" "/>
<text variable="title" suffix=" "/>
<text variable="genre"/>
</macro>
<citation et-al-min="4" et-al-use-first="1" disambiguate-add-names="true">
<layout prefix="" delimiter="; ">
<choose>
<if position="ibid-with-locator">
<group delimiter=", ">
<text term="ibid"/>
<text macro="point-locators-subsequent"/>
</group>
</if>
<else-if position="ibid">
<text term="ibid"/>
</else-if>
<else-if position="subsequent">
<group delimiter=", ">
<text macro="contributors-short"/>
<text macro="title-short"/>
<text macro="point-locators-subsequent"/>
</group>
</else-if>
<else>
<group delimiter=", ">
<text macro="contributors-note"/>
<text macro="title-note"/>
<text macro="description-note"/>
<text macro="secondary-contributors-note"/>
<text macro="container-title-note"/>
<text macro="container-contributors-note"/>
</group>
<text macro="locators-note"/>
<text macro="collection-title" prefix=", "/>
<text macro="issue-note"/>
<text macro="locators-newspaper" prefix=", "/>
<text macro="point-locators"/>
<text macro="access-note" prefix=", "/>
</else>
</choose>
</layout>
</citation>
<bibliography hanging-indent="true" et-al-min="11" et-al-use-first="7" subsequent-author-substitute="———" entry-spacing="0">
<sort>
<key macro="sort-key"/>
<key variable="issued"/>
</sort>
<layout suffix=".">
<group delimiter=". ">
<text macro="contributors"/>
<text macro="title"/>
<text macro="description"/>
<text macro="secondary-contributors"/>
<group delimiter=", ">
<text macro="container-title"/>
<text macro="container-contributors"/>
<text macro="locators-chapter"/>
</group>
</group>
<text macro="locators"/>
<text macro="collection-title" prefix=". "/>
<text macro="issue"/>
<text macro="locators-newspaper" prefix=", "/>
<text macro="locators-journal"/>
<text macro="access" prefix=". "/>
</layout>
</bibliography>
</style>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment