Skip to content

Instantly share code, notes, and snippets.

@kouichi-c-nakamura
Last active October 16, 2017 21:27
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 kouichi-c-nakamura/1498e61c8b8eaa6ae48f2f92591786f6 to your computer and use it in GitHub Desktop.
Save kouichi-c-nakamura/1498e61c8b8eaa6ae48f2f92591786f6 to your computer and use it in GitHub Desktop.
Useful CSL style definition for adding reference to email etc with DOI link or URL of each article. ref: http://qiita.com/kouichi-c-nakamura/items/148816cc95ecca426a65
<?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" page-range-format="expanded" default-locale="en-US">
<!-- This style was edited with the Visual CSL Editor (http://editor.citationstyles.org/visualEditor/) -->
<info>
<title>The Journal of Neuroscience-DOI</title>
<id>http://www.zotero.org/styles/the-journal-of-neuroscience-doi</id>
<link href="http://www.zotero.org/styles/the-journal-of-neuroscience-doi" rel="self"/>
<link href="http://www.zotero.org/styles/harvard-cite-them-right" rel="template"/>
<link href="http://www.jneurosci.org/site/misc/ifa_organization.xhtml#References" rel="documentation"/>
<author>
<name>Ullrich Bartsch</name>
<email>ubartsch@gmail.com</email>
</author>
<contributor>
<name>Omar Mian</name>
<email>o.mian@ucl.ac.uk</email>
</contributor>
<contributor>
<name>Kouichi C. Nakamura</name>
<email>kouichi.c.nakamura@gmail.com</email>
</contributor>
<category citation-format="author-date"/>
<category field="medicine"/>
<issn>0270-6474</issn>
<eissn>1529-2401</eissn>
<summary>The Journal of Neuroscience style with doi</summary>
<updated>2017-10-02T15:32:19+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>
<macro name="editor">
<names variable="editor">
<name name-as-sort-order="all" sort-separator=" " initialize-with="" delimiter=", " delimiter-precedes-last="always"/>
<label form="short" prefix=", " strip-periods="true"/>
</names>
</macro>
<macro name="anon">
<text term="anonymous" form="short" text-case="capitalize-first" strip-periods="true"/>
</macro>
<macro name="author-bib">
<names variable="author">
<name name-as-sort-order="all" sort-separator=" " initialize-with="" delimiter=", " delimiter-precedes-last="always"/>
<label form="short" prefix=" "/>
<substitute>
<names variable="editor"/>
<text macro="anon"/>
</substitute>
</names>
</macro>
<macro name="author-cit">
<names variable="author">
<name form="short" and="text" delimiter=" " initialize-with=""/>
<substitute>
<names variable="editor"/>
<names variable="translator"/>
<text macro="anon"/>
</substitute>
</names>
</macro>
<macro name="access">
<choose>
<if variable="DOI">
<text value="http://doi.org/" prefix=", "/>
<text variable="DOI"/>
</if>
<else-if match="any" variable="PMID">
<text value="http://www.ncbi.nlm.nih.gov/pubmed/" prefix=", "/>
<text variable="PMID"/>
</else-if>
<else-if match="any" variable="URL">
<text variable="URL" prefix=", "/>
</else-if>
</choose>
</macro>
<macro name="title">
<choose>
<if type="bill book graphic legal_case legislation motion_picture report song" match="any">
<text variable="title"/>
</if>
<else>
<text variable="title"/>
</else>
</choose>
</macro>
<macro name="publisher">
<group delimiter=": ">
<text variable="publisher-place"/>
<text variable="publisher"/>
</group>
</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>
<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>
<citation et-al-min="3" et-al-use-first="1" disambiguate-add-year-suffix="true" collapse="year">
<sort>
<key macro="year-date"/>
<key macro="author-cit"/>
</sort>
<layout prefix="(" suffix=")" delimiter="; ">
<group delimiter=" ">
<group delimiter=", ">
<text macro="author-cit"/>
<text macro="year-date"/>
</group>
<text variable="locator" prefix="p."/>
</group>
</layout>
</citation>
<bibliography hanging-indent="true" et-al-min="20" et-al-use-first="1">
<sort>
<key macro="author-bib"/>
<key macro="year-date"/>
</sort>
<layout>
<group delimiter=" ">
<text macro="author-bib"/>
<text macro="year-date" prefix="(" suffix=")"/>
</group>
<choose>
<if type="bill book graphic legal_case legislation motion_picture report song" match="any">
<group prefix=" " suffix=".">
<text macro="title"/>
<text macro="editor" prefix=" (" suffix=")."/>
<text macro="edition" prefix=", "/>
</group>
<text prefix=" " suffix="." macro="publisher"/>
</if>
<else-if type="chapter paper-conference" match="any">
<text macro="title" prefix=" " suffix="."/>
<group prefix=" ">
<text term="in" text-case="capitalize-first"/>
<text variable="container-title" font-style="normal" prefix=": "/>
<text macro="edition" prefix=", "/>
<text macro="editor" prefix=" (" suffix=")"/>
<text variable="page" prefix=", pp "/>
<text variable="collection-title" prefix=" " suffix="."/>
<group prefix=". " suffix=".">
<text macro="publisher" prefix=" "/>
</group>
</group>
</else-if>
<else>
<group suffix="." delimiter=" " prefix=" ">
<text macro="title"/>
<text macro="editor"/>
</group>
<group prefix=" ">
<text variable="container-title" font-style="normal" form="short" strip-periods="true"/>
<text variable="volume" prefix=" "/>
<group prefix=":">
<text variable="page"/>
</group>
</group>
</else>
</choose>
<text macro="access"/>
</layout>
</bibliography>
</style>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment