Skip to content

Commit

Permalink
Update American Physical Society styles (JabRef#4794)
Browse files Browse the repository at this point in the history
* Create american-physical-society-with-titles

Used by Physical Review Applied.

* Keep the style id, but  change the style Title to the correct (American Physical Society)

Improved rendering of unpublished item types and arxiv papers. Verified things against several
  • Loading branch information
bwiernik authored Aug 20, 2020
1 parent b77bd91 commit 16f58df
Show file tree
Hide file tree
Showing 15 changed files with 489 additions and 67 deletions.
207 changes: 207 additions & 0 deletions american-physics-society-without-titles.csl
Original file line number Diff line number Diff line change
@@ -0,0 +1,207 @@
<?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" default-locale="en-US">
<info>
<title>American Physical Society (without titles)</title>
<title-short>APS (without titles)</title-short>
<id>http://www.zotero.org/styles/american-physics-society-without-titles</id>
<link href="http://www.zotero.org/styles/american-physics-society-without-titles" rel="self"/>
<link href="http://www.zotero.org/styles/american-physics-society" rel="template"/>
<link href="https://journals.aps.org/prl/authors#techformat" rel="documentation"/>
<author>
<name>Richard Karnesky</name>
<email>karnesky+zotero@gmail.com</email>
<uri>http://arc.nucapt.northwestern.edu/Richard_Karnesky</uri>
</author>
<author>
<name>Brenton M. Wiernik</name>
</author>
<category citation-format="numeric"/>
<category field="physics"/>
<summary>Common style use by APS publications, without article titles.</summary>
<updated>2012-09-27T22:06:38+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">
<name delimiter=", " initialize-with=". " and="text"/>
<label form="long" prefix=", " suffix=" "/>
<substitute>
<names variable="editor"/>
<names variable="translator"/>
</substitute>
</names>
</macro>
<macro name="editor">
<names variable="editor">
<label form="verb" suffix=" "/>
<name delimiter=", " initialize-with=". " and="text"/>
</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>
<macro name="day-date">
<choose>
<if variable="issued">
<date variable="issued">
<date-part name="day" suffix=" "/>
<date-part name="month" form="long" suffix=" "/>
<date-part name="year"/>
</date>
</if>
<else>
<text term="no date" form="short"/>
</else>
</choose>
</macro>
<macro name="publisher">
<group prefix="(" suffix=")" delimiter=", ">
<text variable="publisher"/>
<text variable="publisher-place" text-case="title"/>
<text macro="year-date"/>
</group>
</macro>
<macro name="edition-volume">
<group delimiter=", ">
<choose>
<if is-numeric="edition">
<group delimiter=" ">
<number variable="edition" form="ordinal"/>
<text term="edition" form="short"/>
</group>
</if>
<else>
<text variable="edition"/>
</else>
</choose>
<group delimiter=" ">
<label variable="volume" form="short" text-case="capitalize-first"/>
<text variable="volume"/>
</group>
</group>
</macro>
<citation collapse="citation-number">
<sort>
<key variable="citation-number"/>
</sort>
<layout delimiter="," prefix="&#160;[" suffix="]">
<text variable="citation-number"/>
</layout>
</citation>
<bibliography entry-spacing="0" second-field-align="flush">
<!-- Reference for arxiv: https://doi.org/10.1103/PhysRevLett.116.135503 -->
<layout suffix=".">
<text variable="citation-number" prefix="[" suffix="]"/>
<text macro="author" suffix=", "/>
<choose>
<if type="bill book figure graphic legal_case legislation map motion_picture song treaty" match="any">
<group delimiter=" ">
<group delimiter=", ">
<text variable="title" text-case="title" font-style="italic"/>
<text macro="edition-volume"/>
</group>
<text macro="publisher"/>
</group>
</if>
<else-if type="broadcast chapter entry entry-dictionary entry-encyclopedia paper-conference" match="any">
<group delimiter=" ">
<choose>
<if variable="container-title">
<group delimiter=" ">
<text term="in"/>
<group delimiter=", ">
<text variable="container-title" text-case="title" font-style="italic"/>
<text macro="editor"/>
<text macro="edition-volume"/>
</group>
</group>
</if>
<else>
<group delimiter=", ">
<text variable="title" text-case="title" font-style="italic"/>
<text macro="edition-volume"/>
</group>
</else>
</choose>
<group delimiter=", ">
<text macro="publisher"/>
<group delimiter=" ">
<label variable="page" form="short"/>
<text variable="page"/>
</group>
</group>
</group>
</else-if>
<else-if type="patent">
<group delimiter=" ">
<text variable="number"/>
<text macro="day-date" prefix="(" suffix=")"/>
</group>
</else-if>
<else-if type="thesis report" match="any">
<group delimiter=", ">
<text variable="title" text-case="title"/>
<group delimiter=" ">
<text variable="genre"/>
<group delimiter=" ">
<text term="issue" form="short" text-case="capitalize-first"/>
<text variable="number"/>
</group>
</group>
<text variable="publisher"/>
<text macro="year-date"/>
</group>
</else-if>
<else-if type="article" match="any">
<choose>
<if variable="container-title">
<text variable="container-title"/>
</if>
<else>
<text variable="number"/>
</else>
</choose>
</else-if>
<else-if type="dataset interview manuscript pamphlet personal_communication post post-weblog speech webpage">
<!-- unpublished materials; guidelines call for 'enough information to be retrievable' -->
<!-- Based on arXiv format -->
<group delimiter=", ">
<choose>
<if variable="DOI">
<text variable="DOI" prefix="https://doi.org/"/>
</if>
<else-if variable="URL">
<text variable="URL"/>
</else-if>
<else>
<text value="(unpublished)"/>
</else>
</choose>
</group>
</else-if>
<else>
<!--article-journal article-magazine article-newspaper review review-book-->
<group delimiter=" ">
<text variable="container-title" form="short" text-case="title"/>
<group delimiter=", ">
<text variable="volume" font-weight="bold"/>
<group delimiter=" ">
<text variable="page-first" form="short"/>
<text macro="year-date" prefix="(" suffix=")"/>
</group>
</group>
</group>
</else>
</choose>
</layout>
</bibliography>
</style>
Loading

0 comments on commit 16f58df

Please sign in to comment.