Skip to content

Instantly share code, notes, and snippets.

Created June 28, 2017 09:58
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/5b4188c5c9afcdd0c70c43b521175813 to your computer and use it in GitHub Desktop.
Save anonymous/5b4188c5c9afcdd0c70c43b521175813 to your computer and use it in GitHub Desktop.
CSL (Zotero) style with small caps and number of pages
<?xml version="1.0" encoding="utf-8"?>
<style xmlns="http://purl.org/net/xbiblio/csl" class="note" default-locale="fr-FR" version="1.0"
delimiter-precedes-last="never" delimiter-precedes-et-al="never" and="text">
<info>
<title>Infoclio (petites majuscules, nombre de pages, French)</title>
<id>http://www.zotero.org/styles/infoclio-fr-pages</id>
<link href="http://www.zotero.org/styles/infoclio-fr-pages" rel="self"/>
<link href="https://www.infoclio.ch/fr/node/138218" rel="documentation"/>
<author>
<name>Nicolas Chachereau</name>
<email>nicolas.chachereau@unil.ch</email>
</author>
<author>
<name>Enrico Natale</name>
<email>enrico.natale@infoclio.ch</email>
</author>
<author>
<name>Jan Baumann</name>
<email>jan.baumann@infoclio.ch</email>
</author>
<contributor>
<name>Jonas Schneider</name>
<email>jonas.schneider@uzh.ch</email>
</contributor>
<category citation-format="note"/>
<category field="history"/>
<category field="social_science"/>
<updated>2017-06-28T11:55:40+02: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="fr">
<date form="numeric">
<date-part name="day" form="numeric-leading-zeros" suffix="."/>
<date-part name="month" form="numeric-leading-zeros" suffix="."/>
<date-part name="year"/>
</date>
<terms>
<term name="cited" form="short">cit.</term>
<term name="page" form="short">
<single>p.</single>
<multiple>pp.</multiple>
</term>
<term name="editor" form="short">
<single>éd.</single>
<multiple>éds</multiple>
</term>
<term name="interviewer" form="verb">entretien réalisé par</term>
<term name="letter">courrier</term>
<term name="number-of-volumes" form="short">vol.</term>
</terms>
</locale>
<citation>
<layout suffix="." delimiter="&#160;; ">
<choose>
<if position="ibid-with-locator">
<group delimiter=", ">
<text term="ibid"/>
<text macro="locator"/>
</group>
</if>
<else-if position="ibid">
<text term="ibid"/>
</else-if>
<else-if position="subsequent">
<text macro="subsequent-reference"/>
</else-if>
<else>
<text macro="complete-reference"/>
</else>
</choose>
</layout>
</citation>
<bibliography>
<sort>
<key macro="creator" names-min="3" names-use-first="3"/>
<key variable="issued" sort="descending"/>
</sort>
<layout suffix=".">
<text macro="complete-reference"/>
</layout>
</bibliography>
<macro name="complete-reference">
<group delimiter=". ">
<group delimiter=", ">
<text macro="creator"/>
<text macro="title"/>
<group delimiter=": ">
<text macro="in"/>
<group delimiter=", ">
<text macro="container-creator"/>
<group delimiter=" ">
<text macro="container-information"/>
<text macro="journal-volume"/>
</group>
<text macro="volumes"/>
</group>
</group>
<text macro="type-description"/>
<text macro="alt-publisher"/>
<text macro="edition"/>
<text macro="place"/>
<text macro="publishing-house"/>
<group delimiter=" ">
<text macro="date"/>
<date variable="original-date" form="text" prefix="[" suffix="]"/>
<text macro="book-series"/>
</group>
<text macro="artwork-description"/>
<text macro="archive-location"/>
<text macro="pages"/>
<text macro="url-web-documents-only"/>
</group>
<text macro="url-non-web-documents"/>
</group>
</macro>
<macro name="subsequent-reference">
<group delimiter=", ">
<text macro="creator-for-subsequent"/>
<text macro="identifier-for-subsequent"/>
<text macro="op-cit"/>
<date variable="issued" form="numeric" date-parts="year"/>
<text macro="locator"/>
</group>
</macro>
<macro name="creator">
<names variable="author">
<name sort-separator=" "
name-as-sort-order="all"
et-al-min="4" et-al-use-first="3">
<name-part name="family" font-variant="small-caps"/>
</name>
<label form="short" prefix="&#160;(" suffix=")"/>
<et-al font-style="italic"/>
<substitute>
<names variable="editor"/>
<names variable="composer"/>
<names variable="director"/>
</substitute>
</names>
</macro>
<macro name="creator-for-subsequent">
<names variable="author">
<name form="short"
et-al-min="4" et-al-use-first="1">
<name-part name="family" font-variant="small-caps"/>
</name>
<label form="short" prefix="&#160;(" suffix=")"/>
<et-al font-style="italic"/>
<substitute>
<names variable="editor"/>
<names variable="composer"/>
<names variable="director"/>
</substitute>
</names>
</macro>
<macro name="title">
<choose>
<if type="book thesis graphic" match="any">
<text variable="title" font-style="italic"/>
</if>
<else-if type="article
article-magazine article-newspaper article-journal
entry entry-dictionary entry-encyclopedia
report chapter paper-conference
post post-weblog webpage
song broadcast" match="any">
<text variable="title" quotes="true"/>
</else-if>
<else-if type="motion_picture">
<choose>
<if variable="collection-title">
<text variable="title" quotes="true"/>
</if>
<else>
<text variable="title" font-style="italic"/>
</else>
</choose>
</else-if>
<else>
<text variable="title"/>
</else>
</choose>
</macro>
<macro name="identifier-for-subsequent">
<choose>
<if variable="title title-short" match="any">
<choose>
<if type="book thesis graphic" match="any">
<text variable="title" font-style="italic" form="short"/>
</if>
<else-if type="article
article-magazine article-newspaper article-journal
entry entry-dictionary entry-encyclopedia
report chapter paper-conference
post post-weblog webpage
song broadcast" match="any">
<text variable="title" quotes="true" form="short"/>
</else-if>
<else-if type="motion_picture">
<choose>
<if variable="collection-title">
<text variable="title" quotes="true"/>
</if>
<else>
<text variable="title" font-style="italic"/>
</else>
</choose>
</else-if>
<else>
<text variable="title" form="short"/>
</else>
</choose>
</if>
<else-if type="personal_communication">
<group delimiter=" ">
<text term="letter"/>
<names variable="recipient">
<label form="verb" prefix=" " suffix=" "/>
<name et-al-min="3" et-al-use-first="1"/>
<et-al font-style="italic"/>
</names>
</group>
</else-if>
<else-if type="interview">
<names variable="interviewer" delimiter=", ">
<label form="verb" prefix=" " suffix=" "/>
<name et-al-min="3" et-al-use-first="1"/>
<et-al font-style="italic"/>
</names>
</else-if>
<else-if type="report song broadcast motion_picture
webpage post post-weblog" match="any">
<!-- these types have either collection-title or container-title -->
<text variable="collection-title" font-style="italic"/>
<text variable="container-title" font-style="italic"/>
</else-if>
</choose>
</macro>
<macro name="op-cit">
<group font-style="italic" delimiter="&#160;" suffix=".">
<choose>
<if type="article
article-magazine article-newspaper article-journal
entry entry-dictionary entry-encyclopedia
chapter paper-conference
post post-weblog" match="any">
<text value="art."/>
</if>
<else-if type="manuscript personal_communication interview
report webpage" match="any">
<text value="doc."/>
</else-if>
<else-if type="book thesis graphic
motion_picture song broadcast" match="any">
<text value="op."/>
</else-if>
</choose>
<text term="cited" form="short"/>
</group>
</macro>
<macro name="in">
<choose>
<if type="chapter paper-conference
entry-encyclopedia entry-dictionary"
match="any">
<text term="in"/>
</if>
</choose>
</macro>
<macro name="container-creator">
<choose>
<if type="chapter paper-conference" match="any">
<names variable="editor">
<name sort-separator=" "
name-as-sort-order="all"
et-al-min="4" et-al-use-first="3">
<name-part name="family" font-variant="small-caps"/>
</name>
<label form="short" prefix="&#160;(" suffix=")"/>
<et-al font-style="italic"/>
<substitute>
<names variable="container-author"/>
<names variable="collection-editor"/>
</substitute>
</names>
</if>
</choose>
</macro>
<macro name="container-information">
<choose>
<if type="chapter paper-conference
entry-encyclopedia entry-dictionary
article-newspaper article-magazine article-journal" match="any">
<text variable="container-title" font-style="italic"/>
</if>
<else-if type="report song broadcast motion_picture
webpage post post-weblog" match="any">
<group delimiter=", ">
<text variable="genre"/>
<!-- these types have either collection-title or container-title -->
<text variable="collection-title" font-style="italic"/>
<text variable="container-title" font-style="italic"/>
</group>
</else-if>
</choose>
</macro>
<macro name="journal-volume">
<choose>
<if type="article-journal">
<group delimiter="&#160;">
<number variable="volume"/>
<number variable="issue" prefix="(" suffix=")"/>
</group>
</if>
<else-if type="report song broadcast" match="any">
<number variable="number"/>
</else-if>
</choose>
</macro>
<macro name="volumes">
<choose>
<if type="book chapter
entry-encyclopedia entry-dictionary
song motion_picture" match="any">
<group delimiter=" / ">
<group delimiter="&#160;">
<label variable="volume" form="short"/>
<number variable="volume"/>
</group>
<group delimiter="&#160;">
<number variable="number-of-volumes"/>
<choose>
<if variable="volume" match="none">
<label variable="number-of-volumes" form="short"/>
</if>
</choose>
</group>
</group>
</if>
</choose>
</macro>
<macro name="type-description">
<choose>
<if type="manuscript thesis speech" match="any">
<text variable="genre"/>
</if>
<else-if type="personal_communication">
<group delimiter=", ">
<group delimiter=" ">
<text term="letter"/>
<names variable="recipient">
<label form="verb" prefix=" " suffix=" "/>
<name/>
</names>
</group>
<text variable="genre"/>
</group>
</else-if>
<else-if type="interview">
<names variable="interviewer" delimiter=", ">
<label form="verb" prefix=" " suffix=" "/>
<name/>
</names>
</else-if>
<else-if type="motion_picture song broadcast" match="any">
<group delimiter=", ">
<text variable="medium"/>
<!-- refers to duration -->
<text variable="dimensions"/>
</group>
</else-if>
<!-- Computer Program -->
<else-if type="book">
<choose>
<if variable="version medium" match="any">
<group delimiter=", ">
<group delimiter=" ">
<text term="version"/>
<text variable="version"/>
</group>
<text variable="medium"/>
</group>
</if>
</choose>
</else-if>
</choose>
</macro>
<macro name="alt-publisher">
<choose>
<if type="book chapter
thesis report
paper-conference
entry-dictionary entry-encyclopedia" match="none">
<!--
label for songs,
distributor for films,
studio for video recordings,
network for broadcasts -->
<text variable="publisher"/>
</if>
</choose>
</macro>
<macro name="edition">
<choose>
<if type="book chapter
entry-dictionary entry-encyclopedia" match="any">
<choose>
<if is-numeric="edition">
<group delimiter="&#160;">
<number variable="edition" form="ordinal"/>
<label variable="edition"/>
</group>
</if>
<else>
<text variable="edition"/>
</else>
</choose>
</if>
</choose>
</macro>
<macro name="place">
<choose>
<if type="speech">
<group delimiter=", ">
<text variable="event"/>
<text variable="event-place"/>
</group>
</if>
<else>
<text variable="publisher-place"/>
</else>
</choose>
</macro>
<macro name="publishing-house">
<choose>
<if type="book chapter thesis report
paper-conference
entry-dictionary entry-encyclopedia" match="any">
<text variable="publisher"/>
</if>
</choose>
</macro>
<macro name="date">
<choose>
<if type="book chapter paper-conference thesis" match="any">
<choose>
<if variable="issued">
<date variable="issued" form="numeric" date-parts="year"/>
</if>
<else>
<text term="no date" form="short"/>
</else>
</choose>
</if>
<else-if type="article-journal article-newspaper article-magazine
graphic entry-encyclopedia entry-dictionary
report speech interview
manuscript personal_communication" match="any">
<choose>
<if variable="issued">
<date variable="issued" form="numeric" date-parts="year-month-day"/>
</if>
<else>
<text term="no date" form="short"/>
</else>
</choose>
</else-if>
<else>
<date variable="issued" form="numeric" date-parts="year-month-day"/>
</else>
</choose>
</macro>
<macro name="pages">
<choose>
<if variable="locator">
<text macro="locator"/>
</if>
<else-if variable="page">
<group delimiter="&#160;">
<label variable="page" form="short"/>
<text variable="page"/>
</group>
</else-if>
<else>
<group delimiter="&#160;">
<number variable="number-of-pages"/>
<text term="page" form="short"/>
</group>
</else>
</choose>
</macro>
<macro name="locator">
<group delimiter="&#160;">
<label variable="locator" form="short"/>
<text variable="locator"/>
</group>
</macro>
<macro name="book-series">
<choose>
<if type="book chapter paper-conference
entry-dictionary entry-encyclopedia" match="any">
<group prefix="(" suffix=")" delimiter=" ">
<text variable="collection-title"/>
<choose>
<if is-numeric="collection-number">
<number variable="collection-number"/>
</if>
</choose>
</group>
</if>
</choose>
</macro>
<macro name="artwork-description">
<choose>
<if type="graphic">
<group delimiter=", ">
<text variable="medium"/>
<text variable="dimensions"/>
<text variable="genre"/>
</group>
</if>
</choose>
</macro>
<macro name="archive-location">
<choose>
<if variable="archive">
<group delimiter=", ">
<text variable="archive"/>
<text variable="archive_location"/>
<text variable="call-number" prefix="Cote: "/>
</group>
</if>
</choose>
</macro>
<macro name="url-web-documents-only">
<choose>
<if type="webpage post post-weblog">
<text macro="url"/>
</if>
</choose>
</macro>
<macro name="url-non-web-documents">
<choose>
<if variable="DOI">
<text term="online" text-case="capitalize-first" suffix=": "/>
<group delimiter=", ">
<text variable="source"/>
<group delimiter=": ">
<text value="DOI"/>
<text variable="DOI"/>
</group>
</group>
</if>
<else-if variable="URL">
<choose>
<if type="webpage post post-weblog" match="none">
<group delimiter=" ">
<text term="online" text-case="capitalize-first" suffix=": "/>
<group delimiter=", ">
<text variable="source"/>
<text macro="url"/>
</group>
</group>
</if>
</choose>
</else-if>
</choose>
</macro>
<macro name="url">
<group delimiter=", ">
<text variable="URL" prefix="&lt;" suffix="&gt;"/>
<group delimiter=" ">
<text term="accessed"/>
<date variable="accessed" form="numeric" date-parts="year-month-day"/>
</group>
</group>
</macro>
</style>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment