Skip to content

Instantly share code, notes, and snippets.

@pridkett
Created March 3, 2010 19:04
Show Gist options
  • Save pridkett/320873 to your computer and use it in GitHub Desktop.
Save pridkett/320873 to your computer and use it in GitHub Desktop.
ACM SIGS citation style for Zotero
<?xml version="1.0" encoding="UTF-8"?>
<?oxygen RNGSchema="http://xbiblio.svn.sourceforge.net/viewvc/*checkout*/xbiblio/csl/schema/trunk/csl.rnc" type="compact"?>
<style xmlns="http://purl.org/net/xbiblio/csl" class="in-text" xml:lang="en">
<info>
<title>ACM SIGS</title>
<id>http://www.zotero.org/styles/acm-sigs</id>
<link href="http://gist.github.com/gists/320873"/>
<author>
<name>Michael Berkowitz</name>
<email>mberkowi@gmu.edu</email>
</author>
<contributor>
<name>Julian Onions</name>
<email>julian.onions@gmail.com</email>
</contributor>
<contributor>
<name>Rintze Zelle</name>
<uri>http://forums.zotero.org/account/831/</uri>
</contributor>
<contributor>
<name>Patrick Wagstrom</name>
<email>patrick@wagstrom.net</email>
<uri>http://academic.patrick.wagstrom.net/</uri>
</contributor>
<category term="engineering"/>
<category term="generic-base"/>
<category term="numeric"/>
<updated>2010-03-02T16:00:00+00:00</updated>
<link href="http://www.acm.org/sigs/publications/proceedings-templates" rel="documentation"/>
</info>
<macro name="author">
<names variable="author">
<name initialize-with="." delimiter=", " and="text" name-as-sort-order="all"/>
<label form="short" prefix=", " text-case="lowercase" suffix="."/>
<substitute>
<names variable="editor"/>
<names variable="translator"/>
</substitute>
</names>
</macro>
<macro name="editor">
<names variable="editor">
<name initialize-with="." delimiter=", " and="text" name-as-sort-order="all"/>
<label form="short" prefix=", " text-case="lowercase" suffix="."/>
</names>
</macro>
<macro name="title">
<choose>
<if type="book">
<text variable="title" font-style="italic" text-case="title"/>
</if>
<!-- ACM SIGS does not quote paper names -->
<else>
<text variable="title" text-case="sentence"/>
</else>
</choose>
</macro>
<!-- changes made to publisher formatting, publisher then place -->
<macro name="publisher">
<text variable="publisher" suffix=", "/>
<text variable="publisher-place" suffix=", "/>
<date variable="issued">
<date-part name="year"/>
</date>
</macro>
<macro name="access">
<text variable="URL"/>
</macro>
<macro name="page">
<group>
<label variable="page" form="short" suffix=". "/>
<text variable="page"/>
</group>
</macro>
<citation>
<option name="et-al-min" value="3"/>
<option name="et-al-use-first" value="1"/>
<option name="collapse" value="citation-number"/>
<sort>
<key variable="citation-number"/>
</sort>
<layout prefix="[" suffix="]" delimiter=",">
<text variable="citation-number"/>
</layout>
</citation>
<bibliography>
<option name="entry-spacing" value="0"/>
<option name="second-field-align" value="true"/>
<!-- for the most part, ACM SIGS follows IEEE with the exception of the
sorting of the bibliography -->
<sort>
<key macro="author"/>
<key variable="issued"/>
</sort>
<layout suffix=".">
<text variable="citation-number" prefix="[" suffix="]"/>
<text variable="type"/>
<text macro="author" prefix=" " suffix=". "/>
<choose>
<!-- SIGS Book Formatting -->
<!-- 95% certain this is correct -->
<if type="book">
<text macro="title" suffix=". "/>
<group delimiter=", ">
<text macro="publisher"/>
</group>
</if>
<!-- SIGS Conference Paper Formatting -->
<!-- 95% certain this is correct -->
<else-if type="paper-conference">
<text macro="title" suffix=". "/>
<group delimiter=", " suffix=". ">
<text variable="container-title" font-style="italic" prefix="In "/>
<text variable="page" prefix="pages "/>
</group>
<text variable="publisher" suffix=", "/>
<date variable="issued" suffix=".">
<date-part name="month" suffix=" "/>
<date-part name="year"/>
</date>
</else-if>
<!-- SIGS Book Chapter Formatting -->
<!-- 50% certain this is correct -->
<else-if type="chapter">
<text macro="title" suffix=". "/>
<group delimiter=", " suffix=". ">
<text variable="container-title" font-style="italic" prefix="In "/>
<text variable="page" prefix="pages "/>
</group>
<!-- <text macro="editor"/> -->
<text macro="publisher"/>
</else-if>
<else-if type="patent">
<text macro="title" suffix=", "/>
<text variable="number" prefix="U.S. Patent "/>
<date variable="issued" prefix=", ">
<date-part name="month" suffix=" "/>
<date-part name="day" suffix=", "/>
<date-part name="year"/>
</date>
</else-if>
<else-if type="thesis">
<group delimiter=", ">
<text macro="title"/>
<text variable="genre"/>
<text variable="publisher"/>
<date variable="issued">
<date-part name="year"/>
</date>
</group>
</else-if>
<!-- SIGS Journal Formatting -->
<!-- 95% certain this is correct -->
<else-if type="article-journal">
<text macro="title" suffix=". "/>
<text variable="container-title" form="short" font-style="italic" suffix=", "/>
<text variable="volume"/>
<text variable="issue" prefix="(" suffix=")"/>
<text variable="page" prefix=":" suffix=", "/>
<date variable="issued" suffix=".">
<date-part name="month" suffix=" "/>
<date-part name="year"/>
</date>
</else-if>
<!-- SIGS Webpage Formatting -->
<!-- 90% certain this is correct -->
<else-if type="webpage">
<text macro="title" suffix=". "/>
<text variable="URL" suffix=" "/>
<date variable="issued" suffix=".">
<date-part name="month" suffix=" "/>
<date-part name="year"/>
</date>
</else-if>
<!-- Default Categorization -->
<!-- Anything that makes it here should be validated as it's probably incorrectly formatted -->
<else>
<!-- <text value="[[DEFAULT]]"/> -->
<text macro="title" suffix=". "/>
<group delimiter=", ">
<text variable="container-title" font-style="italic"/>
<text variable="volume" prefix=" vol. "/>
<date variable="issued">
<date-part name="month" form="short" suffix=". "/>
<date-part name="year"/>
</date>
<text macro="page"/>
</group>
</else>
</choose>
</layout>
</bibliography>
</style>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment