Skip to content

Instantly share code, notes, and snippets.

@bwiernik
Created January 17, 2015 03:18
Show Gist options
  • Save bwiernik/8c6f39cf51ceb3a03107 to your computer and use it in GitHub Desktop.
Save bwiernik/8c6f39cf51ceb3a03107 to your computer and use it in GitHub Desktop.
APA CSL Numeric style
<?xml version="1.0" encoding="utf-8"?>
<style xmlns="http://purl.org/net/xbiblio/csl" class="in-text" version="1.0" demote-non-dropping-particle="never">
<!-- This style was edited with the Visual CSL Editor (http://editor.citationstyles.org/visualEditor/) -->
<info>
<title>American Psychological Association (Conference Papers, Numerical, no Issue numbers)</title>
<title-short>APA-Conference-Numerical</title-short>
<id>http://www.wiernik.workpsy.ch/styles/apa-conference-papers-numerical</id>
<link href="http://www.wiernik.workpsy.ch/styles/apa-conference-papers-numeric" rel="self"/>
<link href="http://owl.english.purdue.edu/owl/resource/560/01/" rel="documentation"/>
<author>
<name>Brenton Wiernik</name>
<email>[email protected]</email>
<uri>wiernik.workpsy.ch</uri>
</author>
<contributor>
<name>Simon Kornblith</name>
<email>[email protected]</email>
</contributor>
<contributor>
<name>Bruce D'Arcus</name>
</contributor>
<contributor>
<name>Curtis M. Humphrey</name>
</contributor>
<contributor>
<name>Richard Karnesky</name>
<email>[email protected]</email>
<uri>http://arc.nucapt.northwestern.edu/Richard_Karnesky</uri>
</contributor>
<contributor>
<name>Sebastian Karcher</name>
</contributor>
<category citation-format="author-date"/>
<category field="psychology"/>
<category field="generic-base"/>
<summary>APA 6th edition, Numerical style and without Issue numbers, and including a modified event macro that properly cites all manner of unpublished conference presentations using the Conference Paper item type</summary>
<updated>2014-10-11T19:13:50+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">
<terms>
<term name="editortranslator" form="short">
<single>ed. &amp; trans.</single>
<multiple>eds. &amp; trans.</multiple>
</term>
<term name="translator" form="short">
<single>trans.</single>
<multiple>trans.</multiple>
</term>
<term name="editor" form="symbol">
<single>chair</single>
<multiple>chairs</multiple>
</term>
<term name="presented at" form="symbol">conducted at the</term>
</terms>
</locale>
<locale xml:lang="bw">
<terms>
<term name="editortranslator" form="short">
<single>ed. &amp; trans.</single>
<multiple>eds. &amp; trans.</multiple>
</term>
<term name="translator" form="short">
<single>trans.</single>
<multiple>trans.</multiple>
</term>
<term name="editor" form="symbol">
<single>chair</single>
<multiple>chairs</multiple>
</term>
<term name="presented at" form="symbol">conducted at the</term>
</terms>
</locale>
<macro name="container-contributors">
<choose>
<if type="chapter entry-dictionary entry-encyclopedia" match="any">
<names variable="editor translator container-author" delimiter=", " suffix=", ">
<name and="symbol" initialize-with=". " delimiter=", "/>
<label form="short" prefix=" (" text-case="title" suffix=")"/>
</names>
</if>
<else-if type="paper-conference" match="any">
<choose>
<if variable="publisher volume" match="any">
<names variable="editor translator" delimiter=", " suffix=", ">
<name and="symbol" initialize-with=". " delimiter=", "/>
<label form="short" text-case="title" prefix=" (" suffix=")"/>
</names>
</if>
<else>
<names variable="editor translator" delimiter=", " suffix=", ">
<name and="symbol" initialize-with=". " delimiter=", "/>
<label form="symbol" text-case="title" prefix=" (" suffix=")"/>
</names>
</else>
</choose>
</else-if>
</choose>
</macro>
<macro name="secondary-contributors">
<choose>
<if type="article-journal chapter paper-conference entry-dictionary entry-encyclopedia" match="none">
<names variable="translator editor container-author" delimiter=", " prefix=" (" suffix=")">
<name and="symbol" initialize-with=". " delimiter=", "/>
<label form="short" prefix=", " text-case="title"/>
</names>
</if>
</choose>
</macro>
<macro name="author">
<choose>
<if type="paper-conference" match="any">
<choose>
<if variable="publisher volume" match="any">
<names variable="author">
<name name-as-sort-order="all" and="symbol" sort-separator=", " initialize-with=". " delimiter=", " delimiter-precedes-last="always"/>
<label form="short" prefix=" (" suffix=")" text-case="capitalize-first"/>
<substitute>
<names variable="editor"/>
<names variable="translator"/>
<text macro="title"/>
</substitute>
</names>
</if>
<else>
<names variable="author">
<name name-as-sort-order="all" and="symbol" sort-separator=", " initialize-with=". " delimiter=", " delimiter-precedes-last="always"/>
<label form="symbol" prefix=" (" suffix=")" text-case="capitalize-first"/>
<substitute>
<names variable="editor"/>
<names variable="translator"/>
<text macro="title"/>
</substitute>
</names>
</else>
</choose>
</if>
<else>
<names variable="author">
<name name-as-sort-order="all" and="symbol" sort-separator=", " initialize-with=". " delimiter=", " delimiter-precedes-last="always"/>
<label form="short" prefix=" (" suffix=")" text-case="capitalize-first"/>
<substitute>
<names variable="editor"/>
<names variable="translator"/>
<choose>
<if type="report">
<text variable="publisher"/>
<text macro="title"/>
</if>
<else>
<text macro="title"/>
</else>
</choose>
</substitute>
</names>
</else>
</choose>
</macro>
<macro name="author-short">
<names variable="author">
<name form="short" and="symbol" delimiter=", " initialize-with=". "/>
<substitute>
<names variable="editor"/>
<names variable="translator"/>
<choose>
<if type="report">
<text variable="publisher"/>
<text variable="title" form="short" font-style="italic"/>
</if>
<else-if type="legal_case">
<text variable="title" font-style="italic"/>
</else-if>
<else-if type="bill book graphic legislation motion_picture song" match="any">
<text variable="title" form="short" font-style="italic"/>
</else-if>
<else>
<text variable="title" form="short" quotes="true"/>
</else>
</choose>
</substitute>
</names>
</macro>
<macro name="access">
<choose>
<if type="thesis report">
<choose>
<if variable="archive" match="any">
<group>
<text term="retrieved" text-case="capitalize-first" suffix=" "/>
<text term="from" suffix=" "/>
<text variable="archive" suffix="."/>
<text variable="archive_location" prefix=" (" suffix=")"/>
</group>
</if>
<else>
<group>
<text term="retrieved" text-case="capitalize-first" suffix=" "/>
<text term="from" suffix=" "/>
<text variable="URL"/>
</group>
</else>
</choose>
</if>
<else>
<choose>
<if variable="DOI">
<text variable="DOI" prefix="http://dx.doi.org/"/>
</if>
<else>
<choose>
<if type="webpage">
<group delimiter=" ">
<text term="retrieved" text-case="capitalize-first" suffix=" "/>
<group>
<date variable="accessed" form="text" suffix=", "/>
</group>
<text term="from"/>
<text variable="URL"/>
</group>
</if>
<else>
<group>
<text term="retrieved" text-case="capitalize-first" suffix=" "/>
<text term="from" suffix=" "/>
<text variable="URL"/>
</group>
</else>
</choose>
</else>
</choose>
</else>
</choose>
</macro>
<macro name="title">
<choose>
<if type="report thesis book graphic motion_picture report song manuscript speech" match="any">
<choose>
<if variable="version">
<!---This is a hack until we have a computer program type -->
<text variable="title"/>
</if>
<else>
<text variable="title" font-style="italic"/>
</else>
</choose>
</if>
<else-if type="paper-conference" match="any">
<choose>
<if variable="author" match="none">
<text variable="title" font-style="italic"/>
</if>
<else-if variable="container-title" match="none">
<text variable="title" font-style="italic"/>
</else-if>
<else>
<text variable="title"/>
</else>
</choose>
</else-if>
<else>
<text variable="title"/>
</else>
</choose>
</macro>
<macro name="title-plus-extra">
<text macro="title"/>
<choose>
<if type="report thesis" match="any">
<group prefix=" (" suffix=")" delimiter=" ">
<text variable="genre"/>
<text variable="number" prefix="No. "/>
</group>
</if>
<else-if type="post-weblog webpage" match="any">
<text variable="genre" prefix=" [" suffix="]"/>
</else-if>
<else-if variable="version">
<group delimiter=" " prefix=" (" suffix=")">
<text term="version" text-case="capitalize-first"/>
<text variable="version"/>
</group>
</else-if>
<else>
<group delimiter=" " prefix=" [" suffix="]">
<text variable="medium" text-case="capitalize-first"/>
</group>
</else>
</choose>
</macro>
<macro name="publisher">
<choose>
<if type="report" match="any">
<group delimiter=": ">
<text variable="publisher-place"/>
<text variable="publisher"/>
</group>
</if>
<else-if type="thesis" match="any">
<group delimiter=", ">
<text variable="publisher"/>
<text variable="publisher-place"/>
</group>
</else-if>
<else-if type="post-weblog webpage" match="none">
<group delimiter=", ">
<choose>
<if variable="event" type="speech" match="none">
<text variable="genre"/>
</if>
</choose>
<choose>
<if type="article-journal article-magazine" match="none">
<group delimiter=": ">
<choose>
<if variable="publisher-place">
<text variable="publisher-place"/>
</if>
<else>
<text variable="event-place"/>
</else>
</choose>
<text variable="publisher"/>
</group>
</if>
</choose>
</group>
</else-if>
</choose>
</macro>
<macro name="event">
<choose>
<if variable="event">
<choose>
<if variable="genre" match="none">
<choose>
<if variable="publisher volume" match="none">
<choose>
<if match="any" variable="container-title">
<group delimiter=" ">
<text variable="collection-title" text-case="capitalize-first"/>
<text term="presented at" form="symbol"/>
<text variable="event"/>
</group>
</if>
<else>
<choose>
<if match="none" variable="author">
<choose>
<if match="any" variable="collection-title">
<group delimiter=" ">
<text variable="collection-title" text-case="capitalize-first"/>
<text term="presented at" form="symbol"/>
<text variable="event"/>
</group>
</if>
<else>
<text term="presented at" text-case="capitalize-first" suffix=" "/>
<text variable="event"/>
</else>
</choose>
</if>
<else>
<choose>
<if match="any" variable="collection-title">
<group delimiter=" ">
<text variable="collection-title" text-case="capitalize-first"/>
<text term="presented at"/>
<text variable="event"/>
</group>
</if>
<else>
<text term="presented at" text-case="capitalize-first" suffix=" "/>
<text variable="event"/>
</else>
</choose>
</else>
</choose>
</else>
</choose>
</if>
</choose>
</if>
<else>
<group delimiter=" ">
<text variable="genre" text-case="capitalize-first"/>
<text term="presented at"/>
<text variable="event"/>
</group>
</else>
</choose>
</if>
<else-if type="speech">
<text variable="genre" text-case="capitalize-first"/>
</else-if>
</choose>
</macro>
<macro name="issued">
<choose>
<if type="bill legal_case legislation" match="none">
<choose>
<if variable="issued">
<group prefix=" (" suffix=")">
<date variable="issued">
<date-part name="year"/>
</date>
<text variable="year-suffix"/>
<choose>
<if type="paper-conference" match="any">
<choose>
<if match="none" variable="publisher volume">
<date variable="issued">
<date-part name="month" prefix=", "/>
<date-part name="day" prefix=" "/>
</date>
</if>
</choose>
</if>
<else-if type="article-journal bill book chapter graphic legal_case legislation motion_picture report song" match="none">
<date variable="issued">
<date-part prefix=", " name="month"/>
<date-part prefix=" " name="day"/>
</date>
</else-if>
</choose>
</group>
</if>
<else>
<group prefix=" (" suffix=")">
<text term="no date" form="short"/>
<text variable="year-suffix" prefix="-"/>
</group>
</else>
</choose>
</if>
</choose>
</macro>
<macro name="issued-sort">
<choose>
<if type="paper-conference" match="any">
<choose>
<if match="none" variable="publisher volume">
<date variable="issued">
<date-part name="year"/>
<date-part name="month"/>
<date-part name="day"/>
</date>
</if>
<else>
<date variable="issued">
<date-part name="year"/>
</date>
</else>
</choose>
</if>
<else-if type="article-journal bill book chapter graphic legal_case legislation motion_picture report song" match="none">
<date variable="issued">
<date-part name="year"/>
<date-part name="month"/>
<date-part name="day"/>
</date>
</else-if>
<else>
<date variable="issued">
<date-part name="year"/>
</date>
</else>
</choose>
</macro>
<macro name="issued-year">
<choose>
<if variable="issued">
<date variable="issued">
<date-part name="year"/>
</date>
<text variable="year-suffix"/>
</if>
<else>
<text term="no date" form="short"/>
<text variable="year-suffix" prefix="-"/>
</else>
</choose>
</macro>
<macro name="edition">
<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>
</macro>
<macro name="locators">
<choose>
<if type="article-journal article-magazine" match="any">
<group prefix=", " delimiter=", ">
<group>
<text variable="volume" font-style="italic"/>
<text variable="issue" prefix="(" suffix=")"/>
</group>
<text variable="page"/>
</group>
</if>
<else-if type="article-newspaper">
<group delimiter=" " prefix=", ">
<label variable="page" form="short"/>
<text variable="page"/>
</group>
</else-if>
<else-if type="book graphic motion_picture report song chapter paper-conference entry-encyclopedia entry-dictionary" match="any">
<group prefix=" (" suffix=")" delimiter=", ">
<text macro="edition"/>
<choose>
<if variable="volume" match="any">
<group>
<text term="volume" form="short" text-case="capitalize-first" suffix=" "/>
<number variable="volume" form="numeric"/>
</group>
</if>
<else>
<group>
<text term="volume" form="short" plural="true" text-case="capitalize-first" suffix=" "/>
<number variable="number-of-volumes" form="numeric" prefix="1-"/>
</group>
</else>
</choose>
<group>
<label variable="page" form="short" suffix=" "/>
<text variable="page"/>
</group>
</group>
</else-if>
<else-if type="legal_case">
<group prefix=" (" suffix=")" delimiter=" ">
<text variable="authority"/>
<date variable="issued" form="text"/>
</group>
</else-if>
<else-if type="bill legislation" match="any">
<date variable="issued" prefix=" (" suffix=")">
<date-part name="year"/>
</date>
</else-if>
</choose>
</macro>
<macro name="citation-locator">
<group>
<choose>
<if locator="chapter">
<label variable="locator" form="long" text-case="capitalize-first"/>
</if>
<else>
<label variable="locator" form="short"/>
</else>
</choose>
<text variable="locator" prefix=" "/>
</group>
</macro>
<macro name="container">
<choose>
<if type="post-weblog webpage" match="none">
<choose>
<if type="paper-conference" match="any">
<choose>
<if variable="author" match="any">
<group>
<text term="in" text-case="capitalize-first" suffix=" "/>
<text macro="container-contributors"/>
<text macro="secondary-contributors"/>
<text macro="container-title"/>
</group>
</if>
</choose>
</if>
<else>
<group>
<choose>
<if type="chapter entry-encyclopedia" match="any">
<text term="in" text-case="capitalize-first" suffix=" "/>
</if>
</choose>
<text macro="container-contributors"/>
<text macro="secondary-contributors"/>
<text macro="container-title"/>
</group>
</else>
</choose>
</if>
</choose>
</macro>
<macro name="container-title">
<choose>
<if type="article article-journal article-magazine article-newspaper" match="any">
<text variable="container-title" font-style="italic" text-case="title"/>
</if>
<else-if type="bill legal_case legislation" match="none">
<text variable="container-title" font-style="italic"/>
</else-if>
</choose>
</macro>
<macro name="legal-cites">
<choose>
<if type="bill legal_case legislation" match="any">
<group delimiter=" " prefix=", ">
<choose>
<if variable="container-title">
<text variable="volume"/>
<text variable="container-title"/>
<group delimiter=" ">
<!--change to label variable="section" as that becomes available -->
<text term="section" form="symbol"/>
<text variable="section"/>
</group>
<text variable="page"/>
</if>
<else>
<choose>
<if type="legal_case">
<text variable="number" prefix="No. "/>
</if>
<else>
<text variable="number" prefix="Pub. L. No. "/>
<group delimiter=" ">
<!--change to label variable="section" as that becomes available -->
<text term="section" form="symbol"/>
<text variable="section"/>
</group>
</else>
</choose>
</else>
</choose>
</group>
</if>
</choose>
</macro>
<citation collapse="citation-number">
<sort>
<key variable="citation-number"/>
</sort>
<layout prefix="[" suffix="]" delimiter="," vertical-align="sup">
<text variable="citation-number"/>
</layout>
</citation>
<bibliography hanging-indent="true" et-al-min="8" et-al-use-first="6" et-al-use-last="true" entry-spacing="1" second-field-align="flush">
<layout>
<text variable="citation-number" suffix=". "/>
<group suffix=".">
<group delimiter=". ">
<text macro="author"/>
<text macro="issued"/>
<text macro="title" prefix=" "/>
<text macro="container"/>
</group>
<text macro="locators"/>
<group delimiter=", " prefix=". ">
<text macro="event"/>
<text macro="publisher"/>
</group>
</group>
<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