Skip to content

Instantly share code, notes, and snippets.

@fbennett
Created December 18, 2009 23:46
Show Gist options
  • Save fbennett/259866 to your computer and use it in GitHub Desktop.
Save fbennett/259866 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="note" xml:lang="en">
<info>
<title>Bluebook Law Review</title>
<id>http://www.zotero.org/styles/bluebook_lawrev</id>
<link href="http://www.zotero.org/styles/bluebook_lawrev"/>
<author>
<name>Bruce D’Arcus</name>
<email>[email protected]</email>
</author>
<author>
<name>Nancy Sims</name>
<email>[email protected]</email>
</author>
<updated></updated>
<summary>The Bluebook legal citation style for law reviews.</summary>
</info>
<!-- sets up basics of dealing with authors -->
<macro name="name-macro">
<names variable="author">
<name and="symbol" delimiter=", " delimiter-precedes-last="never"/>
<label form="short" prefix=" " suffix="."/>
<substitute>
<text variable="title"/>
</substitute>
</names>
</macro>
<macro name="author-short">
<names variable="author">
<name form="short" and="text" delimiter=", " />
<label form="verb-short" prefix=", " suffix="."/>
<substitute>
<text variable="title" form="short"/>
</substitute>
</names>
</macro>
<macro name="author">
<choose>
<if type="legal_case">
<text macro="name-macro" font-variant="normal" />
</if>
<else-if type="book">
<text macro="name-macro" font-variant="small-caps"/>
</else-if>
<else>
<text macro="name-macro"/>
</else>
</choose>
</macro>
<!-- sets up basics of dealing with editors and translators. Will generally only show up in book citations, as called in XXXX, below -->
<macro name="editor-translator">
<names variable="editor translator" prefix="" suffix=" " delimiter=", ">
<name and="symbol" delimiter=", "/>
<label form="short" prefix=" " suffix=".,"/>
</names>
</macro>
<!-- sets up font variations for titles in books, articles, etc. -->
<macro name="title">
<choose>
<if type="book">
<text variable="title" font-variant="small-caps"/>
</if>
<else-if type="article">
<text variable="title" font-style="italic"/>
</else-if>
<else-if type="legal_case">
<text variable="title" font-variant="normal" />
</else-if>
<else>
<text variable="title"/>
</else>
</choose>
</macro>
<!-- link to online content, called in YYYYY -->
<macro name="access">
<text variable="URL"/>
<group prefix=" (" suffix=")">
<text value="last visited" suffix=" "/>
<date variable="accessed">
<date-part name="month" form="short" suffix=" "/>
<date-part name="day" suffix=", "/>
<date-part name="year"/>
</date>
</group>
</macro>
<macro name="source">
<!-- This macro seems really problematic, with a ton of redundancy. I'd move some of
the conditional logic into the appropriate macros (like 'title') and try to remove this
macro entirely. -->
<choose>
<if type="article-journal" match="any" >
<text variable="title" suffix=", " font-style="italic" />
<text variable="volume" suffix="" />
<text macro="container" />
<text variable="page" prefix=" " />
<text variable="locator" prefix=", " />
<text macro="issuance" prefix=" (" suffix=")"/>
</if>
<else-if type="legal_case">
<text variable="title" suffix=", " font-variant="normal" />
<text variable="volume" suffix="" />
<text macro="container" />
<text variable="page" prefix=" " />
<text variable="locator" prefix=", " />
<text macro="issuance" prefix=" (" suffix=")"/>
</else-if>
<else-if type="article-newspaper article-magazine thesis" match="any">
<text variable="title" suffix=", " font-style="italic" />
<text variable="volume" suffix=" " />
<text macro="container" suffix=", " />
<text macro="issuance" />
<group delimiter="" >
<text value="at" prefix=", " />
<text variable="page" prefix=" " />
</group>
</else-if>
<else-if type="chapter">
<text variable="title" suffix=", " font-style="italic" />
<text variable="volume" suffix=" " />
<text macro="container" suffix=" " />
<text variable="page" />
<text variable="locator" prefix=", " />
<text macro="issuance" prefix=" (" suffix=")" />
</else-if>
<else>
<text variable="volume" suffix=" " />
<text variable="title" font-variant="small-caps" />
<text macro="container" prefix=" " />
<text variable="page" prefix=" " />
<text variable="locator" prefix=" " />
<text macro="issuance" prefix=" (" suffix=")" />
</else>
</choose>
</macro>
<macro name="issuance">
<choose>
<if type="article">
<group prefix="" suffix="">
<choose>
<if type="article-newspaper thesis" match="any">
<group suffix=", ">
<date variable="issued">
<date-part name="month"/>
<date-part name="day" prefix=" "/>
</date>
</group>
</if>
</choose>
<date variable="issued">
<date-part name="year"/>
</date>
</group>
</if>
<else>
<group prefix=" " suffix="" delimiter=" ">
<text macro="editor-translator"/>
<text variable="edition" suffix=" ed." />
<!-- replaced a text element with a missing variable reference -->
<date variable="issued">
<date-part name="year"/>
</date>
</group>
</else>
</choose>
</macro>
<!-- sets up citing to specific page numbers for id and supra cites -->
<macro name="at_page">
<group delimiter="">
<text value="at" prefix=" " />
<text variable="locator" prefix=" "/>
</group>
</macro>
<!-- sets up the "in" in front of book sections, etc. -->
<macro name="container">
<choose>
<if type="chapter">
<group delimiter="" >
<text term="in" text-case="lowercase" font-style="italic" prefix=" " />
<text variable="container-title" font-variant="small-caps" prefix=" "/>
</group>
</if>
<else-if type="legal_case">
<text variable="container-title" form="short" prefix=" "/>
</else-if>
<else-if type="article-journal" >
<text variable="container-title" form="short" font-variant="small-caps" prefix=" "/>
</else-if>
<else>
<text variable="container-title" font-variant="small-caps" />
</else>
</choose>
</macro>
<citation>
<option name="et-al-min" value="4"/>
<option name="et-al-use-first" value="1"/>
<layout suffix="." delimiter="; ">
<choose>
<if position="ibid">
<text value="id." text-case="capitalize-first" font-style="italic"/>
<text macro="at_page" suffix="."/>
<!-- period will not show up - this is for find-and-replace later. -->
</if>
<else-if position="subsequent">
<text macro="author-short" />
<text value="supra" font-style="italic" prefix=", " />
<text value="note" prefix=" " />
<!-- CSL does not currently support reference to a note number, so we leave a blank space for correction now -->
<text value="___"/>
<text macro="at_page"/>
</else-if>
<else>
<text macro="author" suffix=", "/>
<text macro="source" />
<text macro="access" prefix=", "/>
</else>
</choose>
</layout>
</citation>
</style>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment