Skip to content

Instantly share code, notes, and snippets.

@grolimur
Last active April 5, 2024 13: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 grolimur/9a831f21bae3fb5b1435 to your computer and use it in GitHub Desktop.
Save grolimur/9a831f21bae3fb5b1435 to your computer and use it in GitHub Desktop.
Citation style created for the Laboratory of Architecture and Sustainable Technologies (LAST) at Ecole Polytechnique Fédéral de Lausanne (Switzerland)
<?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="sort-only" page-range-format="minimal">
<info>
<title>LAST research (EPFL)</title>
<id>http://www.zotero.org/styles/last-research-epfl</id>
<link href="http://www.zotero.org/styles/last-research-epfl" rel="self"/>
<link href="http://www.zotero.org/styles/oxford-university-press-scimed-author-date" rel="template"/>
<author>
<name>Raphaël Grolimund</name>
</author>
<author>
<name>Sebastian Karcher</name>
</author>
<category citation-format="author-date"/>
<updated>2024-04-05T09:30:00+01: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>
<macro name="editor">
<names variable="editor">
<name and="symbol" name-as-sort-order="all" sort-separator=" " initialize-with="." delimiter=", " delimiter-precedes-last="never" delimiter-precedes-et-al="never">
<name-part name="family"/>
<name-part name="given"/>
</name>
</names>
</macro>
<macro name="author">
<group>
<names variable="author">
<name and="symbol" name-as-sort-order="all" sort-separator=" " initialize-with="." delimiter=", " delimiter-precedes-last="never" delimiter-precedes-et-al="never" et-al-min="99">
<name-part name="family"/>
<name-part name="given"/>
</name>
<et-al font-style="italic"/>
<label form="short" prefix=" " strip-periods="true"/>
<substitute>
<names variable="editor"/>
<text macro="title"/>
</substitute>
</names>
</group>
</macro>
<macro name="author-short">
<names variable="author">
<name form="short" name-as-sort-order="all" and="text" sort-separator=" " initialize-with="" delimiter=", " delimiter-precedes-last="never" delimiter-precedes-et-al="never" et-al-min="2"/>
<et-al font-style="italic"/>
<substitute>
<names variable="editor"/>
<text macro="title"/>
</substitute>
</names>
</macro>
<macro name="title">
<choose>
<if type="bill book graphic legal_case motion_picture report song thesis" match="any">
<text variable="title" font-style="italic" text-case="title"/>
</if>
<else-if type="chapter paper-conference article-journal" match="any">
<text variable="title" quotes="true"/>
</else-if>
<else>
<text variable="title"/>
</else>
</choose>
</macro>
<macro name="year-date">
<date variable="issued" form="text" date-parts="year"/>
</macro>
<macro name="publisher">
<choose>
<if type="thesis">
<group delimiter=", ">
<text variable="publisher"/>
<text variable="publisher-place"/>
</group>
</if>
<else-if type="report">
<group delimiter=": ">
<text variable="publisher-place"/>
<text variable="publisher"/>
</group>
</else-if>
<else>
<group delimiter="&#160;: ">
<text variable="publisher-place"/>
<text variable="publisher"/>
</group>
</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="URL">
<choose>
<if variable="URL">
<group delimiter=", " suffix=".">
<text variable="URL"/>
<group>
<text term="accessed" suffix=" "/>
<date variable="accessed">
<date-part name="day" form="ordinal" suffix=" "/>
<date-part name="month" suffix=" "/>
<date-part name="year"/>
</date>
</group>
</group>
</if>
</choose>
</macro>
<citation collapse="year" disambiguate-add-year-suffix="true" et-al-min="2" et-al-use-first="1">
<sort>
<key macro="year-date"/>
</sort>
<layout delimiter="; " prefix="[" suffix="]">
<group delimiter=", ">
<group delimiter=" ">
<text macro="author-short"/>
<text macro="year-date"/>
</group>
<group>
<label variable="locator" suffix=".&#160;" form="short" strip-periods="true"/>
<text variable="locator"/>
</group>
</group>
</layout>
</citation>
<bibliography et-al-min="99" et-al-use-first="1" second-field-align="flush">
<sort>
<key variable="citation-label"/>
</sort>
<layout>
<group prefix="[" suffix="]">
<text macro="author-short" suffix=" "/>
<text macro="year-date"/>
</group>
<text macro="author" suffix=","/>
<text macro="title" prefix=" " suffix="."/>
<choose>
<if type="bill book graphic legal_case motion_picture report song thesis" match="any">
<group suffix="." prefix=" " delimiter=". ">
<text macro="edition"/>
<text macro="editor"/>
</group>
<text variable="genre" prefix=" " suffix=","/>
<text prefix=" " macro="publisher"/>
<group suffix="." prefix=", ">
<text macro="year-date"/>
</group>
</if>
<else-if type="chapter paper-conference" match="any">
<group prefix=" ">
<group>
<text term="in" suffix=" "/>
<text macro="editor" suffix=", "/>
</group>
<text variable="container-title" font-style="italic" text-case="title" suffix=". "/>
<text variable="volume" prefix="Vol "/>
<text macro="edition"/>
<choose>
<if type="paper-conference">
<group delimiter=", ">
<text variable="event"/>
<text variable="event-place"/>
<date variable="issued">
<date-part name="year"/>
</date>
</group>
</if>
<else>
<group suffix="." delimiter=", ">
<text macro="publisher"/>
<date variable="issued">
<date-part name="year"/>
</date>
<text variable="page"/>
</group>
</else>
</choose>
</group>
</else-if>
<else-if type="article-newspaper">
<text variable="container-title" font-style="italic" prefix=" " suffix=". "/>
<choose>
<if variable="URL">
<group delimiter=". " suffix=".">
<text variable="URL"/>
<group prefix="Published ">
<date variable="issued">
<date-part name="day" form="ordinal"/>
<date-part name="month" suffix=" "/>
<date-part name="year"/>
</date>
</group>
<group>
<text term="accessed" text-case="capitalize-first" suffix=" "/>
<date variable="accessed">
<date-part name="day" form="ordinal"/>
<date-part name="month" suffix=" "/>
<date-part name="year"/>
</date>
</group>
</group>
</if>
<else>
<group delimiter=":" suffix=".">
<group>
<date variable="issued">
<date-part name="day" form="ordinal"/>
<date-part name="month" suffix=" "/>
<date-part name="year"/>
</date>
</group>
<text variable="page"/>
</group>
</else>
</choose>
</else-if>
<else>
<text macro="editor" prefix=" " suffix="."/>
<group prefix=" ">
<text variable="container-title" font-style="italic" strip-periods="true" suffix=","/>
<group delimiter="," prefix=" ">
<text macro="year-date"/>
<text variable="volume" prefix=" "/>
<text variable="issue" prefix=" "/>
</group>
</group>
<text macro="URL" prefix=", " />
<text variable="DOI" prefix=", DOI: "/>
</else>
</choose>
</layout>
</bibliography>
</style>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment