Skip to content

Commit

Permalink
added asm pandoc template
Browse files Browse the repository at this point in the history
  • Loading branch information
lskatz committed Sep 10, 2024
1 parent c1d776a commit b841e88
Showing 1 changed file with 175 additions and 0 deletions.
175 changes: 175 additions & 0 deletions paper/asm.csl
Original file line number Diff line number Diff line change
@@ -0,0 +1,175 @@
<?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="en-US">
<info>
<title>American Society for Microbiology</title>
<title-short>ASM</title-short>
<id>http://www.zotero.org/styles/american-society-for-microbiology</id>
<link href="http://www.zotero.org/styles/american-society-for-microbiology" rel="self"/>
<link href="https://journals.asm.org/references" rel="documentation"/>
<author>
<name>Julian Onions</name>
<email>[email protected]</email>
</author>
<contributor>
<name>Rintze Zelle</name>
<uri>http://twitter.com/rintzezelle</uri>
</contributor>
<contributor>
<name>Richard Karnesky</name>
<email>[email protected]</email>
<uri>http://arc.nucapt.northwestern.edu/Richard_Karnesky</uri>
</contributor>
<contributor>
<name>Charles Parnot</name>
<uri>http://twitter.com/cparnot</uri>
<email>[email protected]</email>
</contributor>
<contributor>
<name>Patrick O'Brien</name>
</contributor>
<category citation-format="numeric"/>
<category field="biology"/>
<summary>Style for all American Society for Microbiology journals.</summary>
<updated>2022-01-22T01:10:09+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="author">
<names variable="author" suffix=".">
<name sort-separator=" " initialize-with="" name-as-sort-order="all" delimiter=", " delimiter-precedes-last="always"/>
</names>
</macro>
<macro name="issued">
<group prefix=" " suffix=".">
<choose>
<if type="patent">
<date variable="issued">
<date-part name="month" suffix=" "/>
<date-part name="year"/>
</date>
</if>
<else>
<date variable="issued">
<date-part name="year"/>
</date>
</else>
</choose>
</group>
</macro>
<macro name="chapter-specifics">
<choose>
<if type="chapter paper-conference" match="any">
<label variable="page" form="short" plural="never" prefix=", " suffix=" "/>
<text variable="page"/>
<text term="in" text-case="capitalize-first" prefix=". " suffix=" " font-style="italic"/>
<names variable="editor" delimiter=", " suffix=", ">
<name initialize-with="" delimiter=", " name-as-sort-order="all" delimiter-precedes-last="always"/>
<label form="short" prefix=" (" suffix=")"/>
</names>
</if>
</choose>
</macro>
<macro name="patent-specifics">
<text variable="number" prefix=". "/>
</macro>
<macro name="container-title">
<choose>
<if type="bill book chapter graphic legal_case legislation motion_picture paper-conference report song" match="any">
<text variable="container-title"/>
</if>
<else>
<text variable="container-title" form="short" strip-periods="true" prefix=". "/>
</else>
</choose>
</macro>
<macro name="edition">
<choose>
<if is-numeric="edition">
<group delimiter=" " prefix=", ">
<number variable="edition" form="ordinal"/>
<text term="edition" form="short"/>
</group>
</if>
<else>
<text variable="edition" suffix="."/>
</else>
</choose>
</macro>
<macro name="publisher">
<choose>
<if type="article-journal article-magazine" match="none">
<group delimiter=". " prefix=". ">
<choose>
<if type="book" match="none">
<text variable="genre"/>
</if>
</choose>
<group delimiter=", ">
<text variable="publisher"/>
<text variable="publisher-place"/>
</group>
</group>
</if>
</choose>
</macro>
<macro name="locators">
<choose>
<if type="article-journal">
<choose>
<if match="none" variable="volume page">
<text variable="DOI" prefix=" https://doi.org/"/>
</if>
<else>
<group prefix=" " delimiter=":">
<text variable="volume"/>
<text variable="page"/>
</group>
</else>
</choose>
</if>
<else-if type="article">
<text variable="DOI" prefix=" https://doi.org/"/>
</else-if>
<else-if type="book webpage post post-weblog" match="any">
<group delimiter=". " prefix=". ">
<text variable="URL"/>
<group delimiter=" ">
<text term="retrieved" text-case="capitalize-first"/>
<date variable="accessed">
<date-part name="day"/>
<date-part name="month" prefix=" "/>
<date-part name="year" prefix=" "/>
</date>
</group>
</group>
</else-if>
</choose>
</macro>
<macro name="title">
<group delimiter=" ">
<text variable="title"/>
<text variable="version" prefix="(" suffix=")"/>
</group>
</macro>
<citation collapse="citation-number">
<sort>
<key variable="citation-number"/>
</sort>
<layout prefix="(" suffix=")" delimiter=", ">
<text variable="citation-number"/>
</layout>
</citation>
<bibliography entry-spacing="1" line-spacing="2" second-field-align="flush">
<layout suffix=".">
<text variable="citation-number" suffix=". "/>
<text macro="author"/>
<text macro="issued"/>
<text macro="title" prefix=" "/>
<text macro="chapter-specifics"/>
<text macro="patent-specifics"/>
<text macro="container-title"/>
<text macro="edition"/>
<text macro="publisher"/>
<text macro="locators"/>
</layout>
</bibliography>
</style>

0 comments on commit b841e88

Please sign in to comment.