Skip to content

Instantly share code, notes, and snippets.

Created September 17, 2009 18:34
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 anonymous/188633 to your computer and use it in GitHub Desktop.
Save anonymous/188633 to your computer and use it in GitHub Desktop.
<?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>HTML output 1</title>
<id>http://www.zotero.org/styles/html-title-author-ref-link</id>
<link href="http://www.zotero.org/styles/html-out1"/>
<category term="author-date"/>
<updated>2009-07-09T20:21:05+00:00</updated>
</info>
<macro name="container-contributors">
<choose>
<if type="chapter">
<text term="in" suffix=" " font-style="italic"/>
<names variable="editor translator" delimiter=", ">
<name and="text" initialize-with=". " delimiter=", "/>
<label form="long" prefix=", " suffix="."/>
</names>
</if>
</choose>
</macro>
<macro name="secondary-contributors">
<choose>
<if type="chapter" match="none">
<names variable="editor translator" delimiter=", " prefix=" (" suffix=")">
<name and="text" initialize-with=". " delimiter=", "/>
<label form="short" prefix=", " text-case="capitalize-first" suffix="."/>
</names>
</if>
</choose>
</macro>
<macro name="author">
<names variable="author">
<name name-as-sort-order="all" and="symbol" sort-separator=" "
initialize-with="" delimiter=" " delimiter-precedes-last="never"/>
<label form="short" prefix=" (" suffix=".)" text-case="capitalize-first"/>
<substitute>
<names variable="editor"/>
<names variable="translator"/>
<text variable="title"/>
</substitute>
</names>
</macro>
<macro name="author-short">
<names variable="author">
<name form="short" and="text" delimiter=", " initialize-with=". "/>
<substitute>
<names variable="editor"/>
<names variable="translator"/>
<choose>
<if type="book">
<text variable="title" form="short" font-style="italic"/>
</if>
<else>
<text variable="title" form="short" quotes="true"/>
</else>
</choose>
</substitute>
</names>
</macro>
<macro name="access">
<choose>
<if variable="DOI">
<text variable="DOI" prefix="http://dx.doi.org/"/>
</if>
<else>
<group>
<text variable="URL"/>
</group>
</else>
</choose>
</macro>
<macro name="publisher">
<text variable="genre" suffix=", "/>
<group delimiter=", ">
<text variable="publisher"/>
<text variable="publisher-place"/>
</group>
</macro>
<macro name="event">
<text variable="event"/>
<text variable="event-place" prefix=", "/>
</macro>
<macro name="issued">
<choose>
<if variable="issued">
<group prefix=" " suffix="">
<date variable="issued">
<date-part name="year"/>
</date>
<choose>
<if type="book chapter article-journal" match="none">
<date variable="issued">
<date-part name="year"/>
</date>
</if>
</choose>
</group>
</if>
<else>
<text prefix=" (" term="no date" suffix=")."/>
</else>
</choose>
</macro>
<macro name="issued-year">
<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="edition">
<choose>
<if type="book chapter" match="any">
<choose>
<if is-numeric="edition">
<number variable="edition" form="ordinal" prefix=", "/>
<text term="edition" form="long" prefix=" " suffix="."/>
</if>
<else>
<text variable="edition" suffix="."/>
</else>
</choose>
</if>
</choose>
</macro>
<macro name="locators">
<choose>
<if type="article-journal article-magazine article-newspaper" match="any">
<text variable="container-title" prefix="&lt;em&gt;" suffix="&lt;/em&gt;"/>
<text variable="volume" prefix=" "/>
<text variable="page" prefix=":"/>
</if>
<else-if type="book chapter" match="any">
<group prefix=". " delimiter=" ">
<label variable="page" form="long" text-case="capitalize-first"/>
<text variable="page"/>
<text macro="container-contributors"/>
<text macro="secondary-contributors"/>
<text variable="container-title"/>
</group>
</else-if>
</choose>
</macro>
<macro name="citation-locator">
<group>
<label variable="locator" include-period="true" form="short"/>
<text variable="locator" prefix=" "/>
</group>
</macro>
<citation>
<option name="et-al-min" value="3"/>
<option name="et-al-use-first" value="1"/>
<option name="disambiguate-add-year-suffix" value="true"/>
<option name="disambiguate-add-names" value="true"/>
<option name="disambiguate-add-givenname" value="true"/>
<option name="collapse" value="year"/>
<sort>
<key macro="author-short"/>
<key variable="issued"/>
</sort>
<layout prefix="(" suffix=")" delimiter=", ">
<group delimiter=" ">
<text macro="author-short"/>
<text macro="issued-year"/>
<text macro="citation-locator"/>
</group>
</layout>
</citation>
<bibliography>
<option name="hanging-indent" value="false"/>
<option name="et-al-min" value="3"/>
<option name="et-al-use-first" value="1"/>
<option name="entry-spacing" value="1"/>
<option name="line-spacing" value="1"/>
<sort>
<key macro="author"/>
<key variable="issued"/>
</sort>
<layout suffix="&lt;/p&gt;">
<text macro="author-short" prefix="&lt;p&gt;"/>
<text macro="issued" prefix=" (" suffix=") "/>
<text macro="access" prefix="&lt;a href=" suffix="&gt;"/>
<text variable="title" suffix="&lt;/a&gt; "/>
<text macro="locators"/>
<text macro="edition"/>
<group delimiter=" " prefix=" ">
<text macro="publisher"/>
</group>
</layout>
</bibliography>
</style>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment