Skip to content

Instantly share code, notes, and snippets.

@smaret
Last active August 29, 2015 14:17
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 smaret/ce9c77e6da5cec7edcf3 to your computer and use it in GitHub Desktop.
Save smaret/ce9c77e6da5cec7edcf3 to your computer and use it in GitHub Desktop.
Authorea style file
<?xml version="1.0" encoding="utf-8"?>
<style xmlns="http://purl.org/net/xbiblio/csl" class="in-text" version="1.0">
<info>
<title>Authorea</title>
<id>http://www.authorea.com</id>
<author>
<name>Sébastien Maret</name>
<email>sebastien.maret@icloud.com</email>
</author>
<category field="generic-base"/>
<summary>Insert the DOI of the article, for use with Authorea citation tool</summary>
<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="author">
<names variable="author">
<name name-as-sort-order="all" and="symbol" sort-separator=", " initialize-with="." delimiter-precedes-last="never" delimiter=", "/>
<label form="short" prefix=" " text-case="lowercase"/>
<substitute>
<names variable="editor"/>
<text macro="anon"/>
</substitute>
</names>
</macro>
<macro name="author-short">
<names variable="author">
<name form="short" and="symbol" delimiter=", " delimiter-precedes-last="never" initialize-with=". "/>
<substitute>
<names variable="editor"/>
<names variable="translator"/>
<text macro="anon"/>
</substitute>
</names>
</macro>
<macro name="year-date">
<choose>
<if variable="issued">
<date variable="issued">
<date-part name="year"/>
</date>
</if>
<else>
<text term="no date" form="short"/>
</else>
</choose>
</macro>
<citation et-al-min="3" et-al-use-first="1">
<layout prefix="(" suffix=")" delimiter="; ">
<text macro="author-short"/>
<text macro="year-date"/>
</layout>
</citation>
<bibliography>
<layout>
<text variable="DOI"/>
</layout>
</bibliography>
</style>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment