Skip to content

Commit 16f58df

Browse files
authored
Update American Physical Society styles (JabRef#4794)
* 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
1 parent b77bd91 commit 16f58df

15 files changed

+489
-67
lines changed
+207
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,207 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<style xmlns="http://purl.org/net/xbiblio/csl" class="in-text" version="1.0" demote-non-dropping-particle="sort-only" default-locale="en-US">
3+
<info>
4+
<title>American Physical Society (without titles)</title>
5+
<title-short>APS (without titles)</title-short>
6+
<id>http://www.zotero.org/styles/american-physics-society-without-titles</id>
7+
<link href="http://www.zotero.org/styles/american-physics-society-without-titles" rel="self"/>
8+
<link href="http://www.zotero.org/styles/american-physics-society" rel="template"/>
9+
<link href="https://journals.aps.org/prl/authors#techformat" rel="documentation"/>
10+
<author>
11+
<name>Richard Karnesky</name>
12+
<email>[email protected]</email>
13+
<uri>http://arc.nucapt.northwestern.edu/Richard_Karnesky</uri>
14+
</author>
15+
<author>
16+
<name>Brenton M. Wiernik</name>
17+
</author>
18+
<category citation-format="numeric"/>
19+
<category field="physics"/>
20+
<summary>Common style use by APS publications, without article titles.</summary>
21+
<updated>2012-09-27T22:06:38+00:00</updated>
22+
<rights license="http://creativecommons.org/licenses/by-sa/3.0/">This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License</rights>
23+
</info>
24+
<macro name="author">
25+
<names variable="author">
26+
<name delimiter=", " initialize-with=". " and="text"/>
27+
<label form="long" prefix=", " suffix=" "/>
28+
<substitute>
29+
<names variable="editor"/>
30+
<names variable="translator"/>
31+
</substitute>
32+
</names>
33+
</macro>
34+
<macro name="editor">
35+
<names variable="editor">
36+
<label form="verb" suffix=" "/>
37+
<name delimiter=", " initialize-with=". " and="text"/>
38+
</names>
39+
</macro>
40+
<macro name="year-date">
41+
<choose>
42+
<if variable="issued">
43+
<date variable="issued">
44+
<date-part name="year"/>
45+
</date>
46+
</if>
47+
<else>
48+
<text term="no date" form="short"/>
49+
</else>
50+
</choose>
51+
</macro>
52+
<macro name="day-date">
53+
<choose>
54+
<if variable="issued">
55+
<date variable="issued">
56+
<date-part name="day" suffix=" "/>
57+
<date-part name="month" form="long" suffix=" "/>
58+
<date-part name="year"/>
59+
</date>
60+
</if>
61+
<else>
62+
<text term="no date" form="short"/>
63+
</else>
64+
</choose>
65+
</macro>
66+
<macro name="publisher">
67+
<group prefix="(" suffix=")" delimiter=", ">
68+
<text variable="publisher"/>
69+
<text variable="publisher-place" text-case="title"/>
70+
<text macro="year-date"/>
71+
</group>
72+
</macro>
73+
<macro name="edition-volume">
74+
<group delimiter=", ">
75+
<choose>
76+
<if is-numeric="edition">
77+
<group delimiter=" ">
78+
<number variable="edition" form="ordinal"/>
79+
<text term="edition" form="short"/>
80+
</group>
81+
</if>
82+
<else>
83+
<text variable="edition"/>
84+
</else>
85+
</choose>
86+
<group delimiter=" ">
87+
<label variable="volume" form="short" text-case="capitalize-first"/>
88+
<text variable="volume"/>
89+
</group>
90+
</group>
91+
</macro>
92+
<citation collapse="citation-number">
93+
<sort>
94+
<key variable="citation-number"/>
95+
</sort>
96+
<layout delimiter="," prefix="&#160;[" suffix="]">
97+
<text variable="citation-number"/>
98+
</layout>
99+
</citation>
100+
<bibliography entry-spacing="0" second-field-align="flush">
101+
<!-- Reference for arxiv: https://doi.org/10.1103/PhysRevLett.116.135503 -->
102+
<layout suffix=".">
103+
<text variable="citation-number" prefix="[" suffix="]"/>
104+
<text macro="author" suffix=", "/>
105+
<choose>
106+
<if type="bill book figure graphic legal_case legislation map motion_picture song treaty" match="any">
107+
<group delimiter=" ">
108+
<group delimiter=", ">
109+
<text variable="title" text-case="title" font-style="italic"/>
110+
<text macro="edition-volume"/>
111+
</group>
112+
<text macro="publisher"/>
113+
</group>
114+
</if>
115+
<else-if type="broadcast chapter entry entry-dictionary entry-encyclopedia paper-conference" match="any">
116+
<group delimiter=" ">
117+
<choose>
118+
<if variable="container-title">
119+
<group delimiter=" ">
120+
<text term="in"/>
121+
<group delimiter=", ">
122+
<text variable="container-title" text-case="title" font-style="italic"/>
123+
<text macro="editor"/>
124+
<text macro="edition-volume"/>
125+
</group>
126+
</group>
127+
</if>
128+
<else>
129+
<group delimiter=", ">
130+
<text variable="title" text-case="title" font-style="italic"/>
131+
<text macro="edition-volume"/>
132+
</group>
133+
</else>
134+
</choose>
135+
<group delimiter=", ">
136+
<text macro="publisher"/>
137+
<group delimiter=" ">
138+
<label variable="page" form="short"/>
139+
<text variable="page"/>
140+
</group>
141+
</group>
142+
</group>
143+
</else-if>
144+
<else-if type="patent">
145+
<group delimiter=" ">
146+
<text variable="number"/>
147+
<text macro="day-date" prefix="(" suffix=")"/>
148+
</group>
149+
</else-if>
150+
<else-if type="thesis report" match="any">
151+
<group delimiter=", ">
152+
<text variable="title" text-case="title"/>
153+
<group delimiter=" ">
154+
<text variable="genre"/>
155+
<group delimiter=" ">
156+
<text term="issue" form="short" text-case="capitalize-first"/>
157+
<text variable="number"/>
158+
</group>
159+
</group>
160+
<text variable="publisher"/>
161+
<text macro="year-date"/>
162+
</group>
163+
</else-if>
164+
<else-if type="article" match="any">
165+
<choose>
166+
<if variable="container-title">
167+
<text variable="container-title"/>
168+
</if>
169+
<else>
170+
<text variable="number"/>
171+
</else>
172+
</choose>
173+
</else-if>
174+
<else-if type="dataset interview manuscript pamphlet personal_communication post post-weblog speech webpage">
175+
<!-- unpublished materials; guidelines call for 'enough information to be retrievable' -->
176+
<!-- Based on arXiv format -->
177+
<group delimiter=", ">
178+
<choose>
179+
<if variable="DOI">
180+
<text variable="DOI" prefix="https://doi.org/"/>
181+
</if>
182+
<else-if variable="URL">
183+
<text variable="URL"/>
184+
</else-if>
185+
<else>
186+
<text value="(unpublished)"/>
187+
</else>
188+
</choose>
189+
</group>
190+
</else-if>
191+
<else>
192+
<!--article-journal article-magazine article-newspaper review review-book-->
193+
<group delimiter=" ">
194+
<text variable="container-title" form="short" text-case="title"/>
195+
<group delimiter=", ">
196+
<text variable="volume" font-weight="bold"/>
197+
<group delimiter=" ">
198+
<text variable="page-first" form="short"/>
199+
<text macro="year-date" prefix="(" suffix=")"/>
200+
</group>
201+
</group>
202+
</group>
203+
</else>
204+
</choose>
205+
</layout>
206+
</bibliography>
207+
</style>

0 commit comments

Comments
 (0)