Skip to content

Instantly share code, notes, and snippets.

Created February 25, 2018 12:55
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/191386f1ef572ac2b00013473833d101 to your computer and use it in GitHub Desktop.
Save anonymous/191386f1ef572ac2b00013473833d101 to your computer and use it in GitHub Desktop.
V. 2 Draft modification of Einaudi style for personal use
<?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" default-locale="it-IT">
<info>
<title>Einaudi Mod5</title>
<id>http://www.zotero.org/styles/einaudimod5</id>
<link href="http://www.zotero.org/styles/einaudimod5" rel="self"/>
<link href="http://www.zotero.org/styles/geografie-sbornik-cgs" rel="template"/>
<link href="https://forums.zotero.org/discussion/70575/style-request-vita-e-pensiero-author-date?new=1" rel="documentation"/>
<author>
<name>Francesco Calderoni</name>
</author>
<category citation-format="author-date"/>
<category field="generic-base"/>
<updated>2017-12-22T04:07:53+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="it">
<terms>
<term name="editor" form="short">
<single>ed.</single>
<multiple>eds.</multiple>
</term>
<term name="page" form="short">
<single>p.</single>
<multiple>pp.</multiple>
</term>
<term name="editor" form="short">
<single>a cura di</single>
<multiple>a cura di</multiple>
</term>
</terms>
</locale>
<macro name="responsibility">
<names variable="author">
<name delimiter=" - " delimiter-precedes-last="never" initialize-with=". ">
<name-part name="family" font-variant="small-caps"/>
<name-part name="given"/>
</name>
<label form="short" text-case="lowercase" prefix=" (" suffix=")"/>
<substitute>
<names variable="editor"/>
<names variable="translator"/>
<text variable="title"/>
</substitute>
</names>
</macro>
<macro name="author-citation">
<names variable="author">
<name form="short" delimiter=" - "/>
<substitute>
<names variable="editor"/>
<names variable="translator"/>
<text variable="title" form="short"/>
</substitute>
</names>
</macro>
<macro name="container-author">
<group delimiter=" ">
<names variable="container-author">
<name delimiter-precedes-last="never" initialize-with=". ">
<name-part name="family" text-case="capitalize-first" font-variant="small-caps"/>
<name-part name="given"/>
</name>
<label form="short" prefix=" (" suffix=")" text-case="lowercase"/>
</names>
</group>
</macro>
<macro name="container-responsibility">
<choose>
<if variable="container-author editor" match="any">
<choose>
<if variable="container-author">
<text macro="container-author"/>
</if>
<else>
<text macro="editor"/>
</else>
</choose>
</if>
</choose>
</macro>
<macro name="editor">
<group delimiter=", ">
<names variable="editor">
<name delimiter=" - " delimiter-precedes-last="never" initialize-with=". ">
<name-part name="family" text-case="capitalize-first" font-variant="small-caps"/>
<name-part name="given"/>
</name>
<label form="short" prefix=" (" suffix=")" text-case="lowercase"/>
</names>
</group>
</macro>
<macro name="year-date">
<choose>
<if variable="issued">
<group delimiter=" ">
<date variable="original-date" form="text" date-parts="year" prefix="[" suffix="]"/>
<date variable="issued">
<date-part name="year"/>
</date>
</group>
</if>
<else-if variable="status">
<text variable="status" text-case="capitalize-first"/>
</else-if>
<else>
<text term="no date" form="short"/>
</else>
</choose>
</macro>
<macro name="page">
<choose>
<if type="book report" match="any">
<group delimiter=" ">
<text variable="number-of-pages"/>
<text term="page" form="short"/>
</group>
</if>
<else>
<group delimiter=" ">
<label variable="page" form="short"/>
<text variable="page"/>
</group>
</else>
</choose>
</macro>
<macro name="issue">
<group delimiter=" ">
<label variable="issue" form="short"/>
<text variable="issue"/>
</group>
</macro>
<macro name="accessed">
<choose>
<if variable="URL DOI" match="any">
<group prefix="(" suffix=")">
<date variable="accessed">
<date-part name="day" form="numeric" suffix=". "/>
<date-part name="month" form="numeric" suffix=". "/>
<date-part name="year"/>
</date>
</group>
</if>
</choose>
</macro>
<macro name="net-link">
<choose>
<if variable="DOI">
<text variable="DOI" prefix="https://doi.org/"/>
</if>
<else-if variable="URL">
<text variable="URL"/>
</else-if>
</choose>
<text macro="accessed" prefix=" "/>
</macro>
<macro name="publisher">
<group delimiter=", ">
<text variable="publisher-place"/>
<text variable="publisher"/>
</group>
</macro>
<citation et-al-min="6" et-al-use-first="1" et-al-subsequent-min="3" et-al-subsequent-use-first="1" disambiguate-add-year-suffix="true" disambiguate-add-names="true" disambiguate-add-givenname="true" collapse="year" givenname-disambiguation-rule="primary-name" delimiter-precedes-last="never">
<layout prefix="(" suffix=")" delimiter="; ">
<group delimiter=" - ">
<group delimiter=", ">
<text macro="author-citation"/>
<text macro="year-date"/>
</group>
<group delimiter=" ">
<label variable="locator" form="short"/>
<text variable="locator"/>
</group>
</group>
</layout>
</citation>
<bibliography entry-spacing="1" line-spacing="1" delimiter-precedes-last="never">
<sort>
<key macro="responsibility"/>
<key macro="year-date"/>
<key variable="title"/>
</sort>
<layout suffix=".">
<text macro="responsibility"/>
<group delimiter=", ">
<text macro="year-date" prefix=" (" suffix=")"/>
<choose>
<if type="book report thesis" match="any">
<group delimiter=", ">
<text variable="title" font-style="italic"/>
<group delimiter=" ">
<text variable="genre"/>
<text variable="number"/>
</group>
<text macro="publisher"/>
</group>
</if>
<else-if type="paper-conference chapter entry-dictionary entry-encyclopedia" match="any">
<group delimiter=", ">
<text variable="title" font-style="italic"/>
<group delimiter=" ">
<text term="in"/>
<group delimiter=", ">
<text macro="container-responsibility"/>
<choose>
<if variable="container-title">
<text variable="container-title" font-style="italic"/>
</if>
<else>
<text variable="event" font-style="italic"/>
</else>
</choose>
</group>
</group>
<group delimiter=", ">
<text macro="publisher"/>
<text macro="page"/>
</group>
</group>
</else-if>
<else-if type="article-journal article-magazine article-newspaper" match="any">
<group delimiter=", ">
<text variable="title" font-style="italic"/>
<group delimiter=", ">
<text variable="container-title" quotes="true"/>
</group>
<group delimiter=", ">
<number text-case="uppercase" variable="volume" form="numeric"/>
</group>
<text macro="issue"/>
<text macro="page"/>
</group>
</else-if>
<else-if type="webpage post-weblog post" match="any">
<group delimiter=", ">
<text variable="title"/>
<text variable="container-title"/>
<text macro="net-link"/>
</group>
</else-if>
<else>
<group delimiter=". ">
<text variable="title"/>
<group delimiter=", ">
<text macro="publisher"/>
<text variable="volume"/>
<text macro="page"/>
</group>
</group>
</else>
</choose>
</group>
</layout>
</bibliography>
</style>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment