citeproc-ruby 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.md +78 -0
- data/lib/citeproc.rb +100 -0
- data/lib/citeproc/bibliography.rb +57 -0
- data/lib/citeproc/data.rb +149 -0
- data/lib/citeproc/date.rb +133 -0
- data/lib/citeproc/formatter.rb +38 -0
- data/lib/citeproc/item.rb +53 -0
- data/lib/citeproc/name.rb +284 -0
- data/lib/citeproc/processor.rb +166 -0
- data/lib/citeproc/selector.rb +61 -0
- data/lib/citeproc/variable.rb +82 -0
- data/lib/citeproc/version.rb +3 -0
- data/lib/csl/locale.rb +223 -0
- data/lib/csl/node.rb +72 -0
- data/lib/csl/nodes.rb +1364 -0
- data/lib/csl/renderer.rb +88 -0
- data/lib/csl/sort.rb +53 -0
- data/lib/csl/style.rb +110 -0
- data/lib/csl/term.rb +124 -0
- data/lib/extensions/core.rb +43 -0
- data/lib/plugins/filters/bibtex.rb +12 -0
- data/lib/plugins/formats/default.rb +134 -0
- data/lib/plugins/formats/html.rb +67 -0
- data/lib/support/attributes.rb +99 -0
- data/lib/support/tree.rb +80 -0
- data/resource/locale/locales-af-ZA.xml +304 -0
- data/resource/locale/locales-ar-AR.xml +304 -0
- data/resource/locale/locales-bg-BG.xml +304 -0
- data/resource/locale/locales-ca-AD.xml +304 -0
- data/resource/locale/locales-cs-CZ.xml +304 -0
- data/resource/locale/locales-da-DK.xml +304 -0
- data/resource/locale/locales-de-AT.xml +304 -0
- data/resource/locale/locales-de-CH.xml +304 -0
- data/resource/locale/locales-de-DE.xml +332 -0
- data/resource/locale/locales-el-GR.xml +303 -0
- data/resource/locale/locales-en-US.xml +313 -0
- data/resource/locale/locales-es-ES.xml +304 -0
- data/resource/locale/locales-et-EE.xml +304 -0
- data/resource/locale/locales-fr-FR.xml +304 -0
- data/resource/locale/locales-he-IL.xml +304 -0
- data/resource/locale/locales-hu-HU.xml +304 -0
- data/resource/locale/locales-is-IS.xml +304 -0
- data/resource/locale/locales-it-IT.xml +304 -0
- data/resource/locale/locales-ja-JP.xml +304 -0
- data/resource/locale/locales-kh-KH.xml +303 -0
- data/resource/locale/locales-ko-KR.xml +304 -0
- data/resource/locale/locales-mn-MN.xml +304 -0
- data/resource/locale/locales-nb-NO.xml +304 -0
- data/resource/locale/locales-nl-NL.xml +304 -0
- data/resource/locale/locales-nn-NO.xml +304 -0
- data/resource/locale/locales-pl-PL.xml +304 -0
- data/resource/locale/locales-pt-BR.xml +304 -0
- data/resource/locale/locales-pt-PT.xml +304 -0
- data/resource/locale/locales-ro-RO.xml +304 -0
- data/resource/locale/locales-ru-RU.xml +304 -0
- data/resource/locale/locales-sk-SK.xml +304 -0
- data/resource/locale/locales-sl-SI.xml +304 -0
- data/resource/locale/locales-sr-RS.xml +304 -0
- data/resource/locale/locales-sv-SE.xml +304 -0
- data/resource/locale/locales-th-TH.xml +304 -0
- data/resource/locale/locales-tr-TR.xml +304 -0
- data/resource/locale/locales-uk-UA.xml +304 -0
- data/resource/locale/locales-vi-VN.xml +304 -0
- data/resource/locale/locales-zh-CN.xml +304 -0
- data/resource/locale/locales-zh-TW.xml +304 -0
- data/resource/schema/csl-categories.rnc +39 -0
- data/resource/schema/csl-data.rnc +98 -0
- data/resource/schema/csl-terms.rnc +106 -0
- data/resource/schema/csl-types.rnc +39 -0
- data/resource/schema/csl-variables.rnc +182 -0
- data/resource/schema/csl.rnc +941 -0
- data/resource/style/acta-materialia-x.csl +128 -0
- data/resource/style/advanced-engineering-materials-x.csl +121 -0
- data/resource/style/ama.csl +185 -0
- data/resource/style/ama2-x.csl +179 -0
- data/resource/style/apa-x.csl +324 -0
- data/resource/style/apa.csl +254 -0
- data/resource/style/apsa-x.csl +163 -0
- data/resource/style/apsa.csl +176 -0
- data/resource/style/asa-x.csl +203 -0
- data/resource/style/asa.csl +216 -0
- data/resource/style/asm-journals-x.csl +131 -0
- data/resource/style/bibtex-x2.csl +175 -0
- data/resource/style/bluebook-demo-x.csl +392 -0
- data/resource/style/bluebook-demo.csl +942 -0
- data/resource/style/chicago-author-date-listing.csl +434 -0
- data/resource/style/chicago-author-date.csl +369 -0
- data/resource/style/chicago-fullnote-bibliography-bb.csl +928 -0
- data/resource/style/chicago-fullnote-bibliography.csl +695 -0
- data/resource/style/chicago-note-bibliography.csl +446 -0
- data/resource/style/chicago-note.csl +388 -0
- data/resource/style/greek-chicago-x.csl +1182 -0
- data/resource/style/harvard1-institution-italic.csl +190 -0
- data/resource/style/harvard1.csl +181 -0
- data/resource/style/ieee.csl +129 -0
- data/resource/style/mhra-x.csl +312 -0
- data/resource/style/mhra.csl +390 -0
- data/resource/style/mhra_note_without_bibliography-x.csl +330 -0
- data/resource/style/mhra_note_without_bibliography.csl +338 -0
- data/resource/style/mla-x.csl +178 -0
- data/resource/style/mla.csl +189 -0
- data/resource/style/nature-x.csl +81 -0
- data/resource/style/nature.csl +88 -0
- data/resource/style/nlm.csl +117 -0
- data/spec/citeproc/bibliography_spec.rb +45 -0
- data/spec/citeproc/citeproc_spec.rb +76 -0
- data/spec/citeproc/date_spec.rb +85 -0
- data/spec/citeproc/formatter_spec.rb +101 -0
- data/spec/citeproc/item_spec.rb +71 -0
- data/spec/citeproc/name_spec.rb +30 -0
- data/spec/citeproc/processor_spec.rb +61 -0
- data/spec/citeproc/selector_spec.rb +82 -0
- data/spec/citeproc/variable_spec.rb +69 -0
- data/spec/csl/locale_spec.rb +208 -0
- data/spec/csl/node_spec.rb +25 -0
- data/spec/csl/nodes_spec.rb +140 -0
- data/spec/csl/style_spec.rb +62 -0
- data/spec/csl/term_spec.rb +56 -0
- data/spec/fixtures/dates.yaml +80 -0
- data/spec/fixtures/names.yaml +115 -0
- data/spec/fixtures/nodes.yaml +245 -0
- data/spec/spec_helper.rb +18 -0
- data/spec/support/attributes_spec.rb +39 -0
- data/spec/support/tree_spec.rb +163 -0
- metadata +264 -0
|
@@ -0,0 +1,216 @@
|
|
|
1
|
+
<style
|
|
2
|
+
xmlns="http://purl.org/net/xbiblio/csl"
|
|
3
|
+
class="in-text"
|
|
4
|
+
xml:lang="en">
|
|
5
|
+
<info>
|
|
6
|
+
<title>American Sociological Association</title>
|
|
7
|
+
<id>http://www.zotero.org/styles/asa</id>
|
|
8
|
+
<link href="http://www.zotero.org/styles/asa" />
|
|
9
|
+
<author>
|
|
10
|
+
<name>Julian Onions</name>
|
|
11
|
+
<email>julian.onions@gmail.com</email>
|
|
12
|
+
</author>
|
|
13
|
+
<category term="author-date" />
|
|
14
|
+
<category term="sociology" />
|
|
15
|
+
<updated />
|
|
16
|
+
<summary>The ASA style.</summary>
|
|
17
|
+
<link href="http://www.asanet.org/galleries/default-file/asaguidelinesnew.pdf" rel="documentation" />
|
|
18
|
+
</info>
|
|
19
|
+
<macro name="editor">
|
|
20
|
+
<names variable="editor">
|
|
21
|
+
<label form="verb" suffix=" " text-case="lowercase" />
|
|
22
|
+
<name and="text" delimiter=", " />
|
|
23
|
+
</names>
|
|
24
|
+
</macro>
|
|
25
|
+
<macro name="series-editor">
|
|
26
|
+
<names variable="original-author">
|
|
27
|
+
<label form="short" suffix=". " text-case="capitalize-first" />
|
|
28
|
+
<name and="text" delimiter=", " />
|
|
29
|
+
</names>
|
|
30
|
+
</macro>
|
|
31
|
+
<macro name="anon">
|
|
32
|
+
<text form="short" term="anonymous" text-case="capitalize-first" />
|
|
33
|
+
</macro>
|
|
34
|
+
<macro name="author">
|
|
35
|
+
<names variable="author">
|
|
36
|
+
<name and="text" delimiter=", " delimiter-precedes-last="always" name-as-sort-order="first" sort-separator=", " />
|
|
37
|
+
<label form="short" prefix=", " suffix="." text-case="lowercase" />
|
|
38
|
+
<substitute>
|
|
39
|
+
<names variable="editor" />
|
|
40
|
+
<names variable="translator" />
|
|
41
|
+
<text macro="anon" />
|
|
42
|
+
</substitute>
|
|
43
|
+
</names>
|
|
44
|
+
</macro>
|
|
45
|
+
<macro name="author-short">
|
|
46
|
+
<names variable="author">
|
|
47
|
+
<name and="text" delimiter=", " form="short" />
|
|
48
|
+
<substitute>
|
|
49
|
+
<names variable="editor" />
|
|
50
|
+
<names variable="translator" />
|
|
51
|
+
<text macro="anon" />
|
|
52
|
+
</substitute>
|
|
53
|
+
</names>
|
|
54
|
+
</macro>
|
|
55
|
+
<macro name="access">
|
|
56
|
+
<group>
|
|
57
|
+
<text variable="URL" />
|
|
58
|
+
<group prefix=" (" suffix=")">
|
|
59
|
+
<text suffix=" " term="accessed" text-case="capitalize-first" />
|
|
60
|
+
<date variable="accessed">
|
|
61
|
+
<date-part name="month" suffix=" " />
|
|
62
|
+
<date-part name="day" suffix=", " />
|
|
63
|
+
<date-part name="year" />
|
|
64
|
+
</date>
|
|
65
|
+
</group>
|
|
66
|
+
</group>
|
|
67
|
+
</macro>
|
|
68
|
+
<macro name="title">
|
|
69
|
+
<choose>
|
|
70
|
+
<if type="thesis">
|
|
71
|
+
<text variable="title" />
|
|
72
|
+
</if>
|
|
73
|
+
<else-if type="book">
|
|
74
|
+
<text font-style="italic" variable="title" />
|
|
75
|
+
</else-if>
|
|
76
|
+
<else>
|
|
77
|
+
<text quotes="true" variable="title" />
|
|
78
|
+
</else>
|
|
79
|
+
</choose>
|
|
80
|
+
</macro>
|
|
81
|
+
<macro name="publisher">
|
|
82
|
+
<group delimiter=": ">
|
|
83
|
+
<text variable="publisher-place" />
|
|
84
|
+
<text variable="publisher" />
|
|
85
|
+
</group>
|
|
86
|
+
</macro>
|
|
87
|
+
<macro name="year-date">
|
|
88
|
+
<choose>
|
|
89
|
+
<if variable="issued">
|
|
90
|
+
<date variable="issued">
|
|
91
|
+
<date-part name="year" />
|
|
92
|
+
</date>
|
|
93
|
+
</if>
|
|
94
|
+
<else>
|
|
95
|
+
<text form="short" term="no date" />
|
|
96
|
+
</else>
|
|
97
|
+
</choose>
|
|
98
|
+
</macro>
|
|
99
|
+
<macro name="day-month">
|
|
100
|
+
<date variable="issued">
|
|
101
|
+
<date-part name="month" />
|
|
102
|
+
<date-part name="day" prefix=" " />
|
|
103
|
+
</date>
|
|
104
|
+
</macro>
|
|
105
|
+
<macro name="pages">
|
|
106
|
+
<label form="short" suffix=". " text-case="capitalize-first" variable="page" />
|
|
107
|
+
<text variable="page" />
|
|
108
|
+
</macro>
|
|
109
|
+
<macro name="edition">
|
|
110
|
+
<choose>
|
|
111
|
+
<if is-numeric="edition">
|
|
112
|
+
<group delimiter=" ">
|
|
113
|
+
<number form="ordinal" variable="edition" />
|
|
114
|
+
<text form="short" suffix="." term="edition" />
|
|
115
|
+
</group>
|
|
116
|
+
</if>
|
|
117
|
+
<else>
|
|
118
|
+
<text suffix="." variable="edition" />
|
|
119
|
+
</else>
|
|
120
|
+
</choose>
|
|
121
|
+
</macro>
|
|
122
|
+
<citation
|
|
123
|
+
collapse="year"
|
|
124
|
+
disambiguate-add-givenname="true"
|
|
125
|
+
disambiguate-add-names="true"
|
|
126
|
+
disambiguate-add-year-suffix="true"
|
|
127
|
+
et-al-min="4"
|
|
128
|
+
et-al-subsequent-min="3"
|
|
129
|
+
et-al-subsequent-use-first="1"
|
|
130
|
+
et-al-use-first="1">
|
|
131
|
+
<layout delimiter="; " prefix="(" suffix=")">
|
|
132
|
+
<group delimiter=":">
|
|
133
|
+
<group delimiter=" ">
|
|
134
|
+
<text macro="author-short" />
|
|
135
|
+
<text macro="year-date" />
|
|
136
|
+
</group>
|
|
137
|
+
<text variable="locator" />
|
|
138
|
+
</group>
|
|
139
|
+
</layout>
|
|
140
|
+
</citation>
|
|
141
|
+
<bibliography
|
|
142
|
+
et-al-min="6"
|
|
143
|
+
et-al-use-first="1"
|
|
144
|
+
hanging-indent="true">
|
|
145
|
+
<sort>
|
|
146
|
+
<key macro="author" />
|
|
147
|
+
<key variable="title" />
|
|
148
|
+
</sort>
|
|
149
|
+
<layout suffix=".">
|
|
150
|
+
<group delimiter=" ">
|
|
151
|
+
<text macro="author" suffix="." />
|
|
152
|
+
<text macro="year-date" suffix="." />
|
|
153
|
+
</group>
|
|
154
|
+
<choose>
|
|
155
|
+
<if match="any" type="article-newspaper article-magazine">
|
|
156
|
+
<group delimiter=" ">
|
|
157
|
+
<text macro="title" prefix=" " suffix="." />
|
|
158
|
+
</group>
|
|
159
|
+
<group delimiter=", " prefix=" ">
|
|
160
|
+
<text font-style="italic" variable="container-title" />
|
|
161
|
+
<text macro="day-month" />
|
|
162
|
+
<text variable="edition" />
|
|
163
|
+
<text variable="page" />
|
|
164
|
+
</group>
|
|
165
|
+
</if>
|
|
166
|
+
<else-if type="thesis">
|
|
167
|
+
<text macro="title" prefix=" " quotes="true" suffix="." />
|
|
168
|
+
<group delimiter=", " prefix=" ">
|
|
169
|
+
<text macro="edition" />
|
|
170
|
+
<text macro="editor" suffix="." />
|
|
171
|
+
<text variable="genre" />
|
|
172
|
+
<text macro="publisher" />
|
|
173
|
+
</group>
|
|
174
|
+
</else-if>
|
|
175
|
+
<else-if type="book">
|
|
176
|
+
<group delimiter=" ">
|
|
177
|
+
<text macro="title" prefix=" " suffix="." />
|
|
178
|
+
<text macro="edition" />
|
|
179
|
+
<text macro="editor" suffix="." />
|
|
180
|
+
<text macro="publisher" />
|
|
181
|
+
</group>
|
|
182
|
+
</else-if>
|
|
183
|
+
<else-if type="chapter">
|
|
184
|
+
<group delimiter=" ">
|
|
185
|
+
<text macro="title" prefix=" " suffix="." />
|
|
186
|
+
<group delimiter=", " suffix=".">
|
|
187
|
+
<group delimiter=" ">
|
|
188
|
+
<text macro="pages" />
|
|
189
|
+
<text term="in" text-case="lowercase" />
|
|
190
|
+
<text font-style="italic" variable="container-title" />
|
|
191
|
+
</group>
|
|
192
|
+
<text prefix="vol. " variable="volume" />
|
|
193
|
+
<text font-style="italic" variable="collection-title" />
|
|
194
|
+
<text macro="editor" />
|
|
195
|
+
</group>
|
|
196
|
+
<text macro="publisher" />
|
|
197
|
+
</group>
|
|
198
|
+
</else-if>
|
|
199
|
+
<else>
|
|
200
|
+
<group suffix=".">
|
|
201
|
+
<text macro="title" prefix=" " />
|
|
202
|
+
<text macro="editor" prefix=" " />
|
|
203
|
+
</group>
|
|
204
|
+
<group delimiter=" " prefix=" " suffix=".">
|
|
205
|
+
<text font-style="italic" variable="container-title" />
|
|
206
|
+
<group delimiter=":">
|
|
207
|
+
<text variable="volume" />
|
|
208
|
+
<text variable="page" />
|
|
209
|
+
</group>
|
|
210
|
+
</group>
|
|
211
|
+
</else>
|
|
212
|
+
</choose>
|
|
213
|
+
<text macro="access" prefix=" " suffix="." />
|
|
214
|
+
</layout>
|
|
215
|
+
</bibliography>
|
|
216
|
+
</style>
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
+
<style xmlns="http://purl.org/net/xbiblio/csl" class="in-text" version="1.0">
|
|
3
|
+
<info>
|
|
4
|
+
<title>American Society for Microbiology</title>
|
|
5
|
+
<id>http://www.zotero.org/styles/asm-journals</id>
|
|
6
|
+
<link href="http://www.zotero.org/styles/asm-journals" rel="self"/>
|
|
7
|
+
<author>
|
|
8
|
+
<name>Julian Onions</name>
|
|
9
|
+
<email>julian.onions@gmail.com</email>
|
|
10
|
+
</author>
|
|
11
|
+
<contributor>
|
|
12
|
+
<name>Rintze Zelle</name>
|
|
13
|
+
<uri>http://forums.zotero.org/account/831/</uri>
|
|
14
|
+
</contributor>
|
|
15
|
+
<contributor>
|
|
16
|
+
<name>Richard Karnesky</name>
|
|
17
|
+
<email>karnesky+zotero@gmail.com</email>
|
|
18
|
+
<uri>http://arc.nucapt.northwestern.edu/Richard_Karnesky</uri>
|
|
19
|
+
</contributor>
|
|
20
|
+
<category citation-format="numeric"/>
|
|
21
|
+
<category field="biology"/>
|
|
22
|
+
<updated>2008-05-07T12:08:52+00:00</updated>
|
|
23
|
+
<summary>Style for all American Society for Microbiology journals.</summary>
|
|
24
|
+
<link href="http://aem.asm.org/cgi/content/full/74/1/1#References." rel="documentation"/>
|
|
25
|
+
<rights>This work is licensed under a Creative Commons Attribution-Share Alike 3.0 License: http://creativecommons.org/licenses/by-sa/3.0/</rights>
|
|
26
|
+
</info>
|
|
27
|
+
<macro name="author">
|
|
28
|
+
<names variable="author" suffix=".">
|
|
29
|
+
<name sort-separator=" " initialize-with=". " and="text" font-weight="bold" name-as-sort-order="first" delimiter=", " delimiter-precedes-last="always"/>
|
|
30
|
+
</names>
|
|
31
|
+
</macro>
|
|
32
|
+
<macro name="issued">
|
|
33
|
+
<group prefix=" " suffix=".">
|
|
34
|
+
<choose>
|
|
35
|
+
<if type="patent">
|
|
36
|
+
<date variable="issued">
|
|
37
|
+
<date-part name="month" suffix=" "/>
|
|
38
|
+
<date-part name="year"/>
|
|
39
|
+
</date>
|
|
40
|
+
</if>
|
|
41
|
+
<else>
|
|
42
|
+
<date variable="issued">
|
|
43
|
+
<date-part name="year"/>
|
|
44
|
+
</date>
|
|
45
|
+
</else>
|
|
46
|
+
</choose>
|
|
47
|
+
</group>
|
|
48
|
+
</macro>
|
|
49
|
+
<macro name="chapter-specifics">
|
|
50
|
+
<choose>
|
|
51
|
+
<if type="chapter paper-conference" match="any">
|
|
52
|
+
<label variable="page" form="short" plural="never" prefix=", " suffix=" "/>
|
|
53
|
+
<text variable="page"/>
|
|
54
|
+
<text term="in" text-case="capitalize-first" prefix=". " suffix=" " font-style="italic"/>
|
|
55
|
+
<names variable="editor" delimiter=", " suffix=", ">
|
|
56
|
+
<name initialize-with="." delimiter=", " delimiter-precedes-last="always" and="text"/>
|
|
57
|
+
<label form="short" prefix=" (" suffix=".)" strip-periods="true"/>
|
|
58
|
+
</names>
|
|
59
|
+
</if>
|
|
60
|
+
</choose>
|
|
61
|
+
</macro>
|
|
62
|
+
<macro name="patent-specifics">
|
|
63
|
+
<text variable="number" prefix=". U.S. Patent "/>
|
|
64
|
+
</macro>
|
|
65
|
+
<macro name="container-title">
|
|
66
|
+
<choose>
|
|
67
|
+
<if type="bill book graphic legal_case motion_picture report song chapter paper-conference" match="any">
|
|
68
|
+
<text variable="container-title"/>
|
|
69
|
+
</if>
|
|
70
|
+
<else>
|
|
71
|
+
<text variable="container-title" form="short" prefix=". "/>
|
|
72
|
+
</else>
|
|
73
|
+
</choose>
|
|
74
|
+
</macro>
|
|
75
|
+
<macro name="edition">
|
|
76
|
+
<choose>
|
|
77
|
+
<if is-numeric="edition">
|
|
78
|
+
<group delimiter=" " prefix=", ">
|
|
79
|
+
<number variable="edition" form="ordinal"/>
|
|
80
|
+
<text term="edition" form="short" suffix="." strip-periods="true"/>
|
|
81
|
+
</group>
|
|
82
|
+
</if>
|
|
83
|
+
<else>
|
|
84
|
+
<text variable="edition" suffix="."/>
|
|
85
|
+
</else>
|
|
86
|
+
</choose>
|
|
87
|
+
</macro>
|
|
88
|
+
<macro name="publisher">
|
|
89
|
+
<group delimiter=", " prefix=". ">
|
|
90
|
+
<text variable="genre"/>
|
|
91
|
+
<text variable="publisher"/>
|
|
92
|
+
<text variable="publisher-place"/>
|
|
93
|
+
</group>
|
|
94
|
+
</macro>
|
|
95
|
+
<macro name="locators">
|
|
96
|
+
<choose>
|
|
97
|
+
<if type="article-journal">
|
|
98
|
+
<group prefix=" " delimiter=":">
|
|
99
|
+
<text variable="volume" font-weight="bold"/>
|
|
100
|
+
<text variable="page"/>
|
|
101
|
+
</group>
|
|
102
|
+
</if>
|
|
103
|
+
</choose>
|
|
104
|
+
</macro>
|
|
105
|
+
<citation collapse="citation-number">
|
|
106
|
+
<sort>
|
|
107
|
+
<key variable="citation-number"/>
|
|
108
|
+
</sort>
|
|
109
|
+
<layout prefix="(" suffix=")" delimiter=", ">
|
|
110
|
+
<text variable="citation-number"/>
|
|
111
|
+
</layout>
|
|
112
|
+
</citation>
|
|
113
|
+
<bibliography entry-spacing="0" second-field-align="flush">
|
|
114
|
+
<sort>
|
|
115
|
+
<key variable="author"/>
|
|
116
|
+
<key variable="title"/>
|
|
117
|
+
</sort>
|
|
118
|
+
<layout suffix=".">
|
|
119
|
+
<text variable="citation-number" suffix=". "/>
|
|
120
|
+
<text macro="author"/>
|
|
121
|
+
<text macro="issued"/>
|
|
122
|
+
<text variable="title" prefix=" "/>
|
|
123
|
+
<text macro="chapter-specifics"/>
|
|
124
|
+
<text macro="patent-specifics"/>
|
|
125
|
+
<text macro="container-title"/>
|
|
126
|
+
<text macro="edition"/>
|
|
127
|
+
<text macro="publisher"/>
|
|
128
|
+
<text macro="locators"/>
|
|
129
|
+
</layout>
|
|
130
|
+
</bibliography>
|
|
131
|
+
</style>
|
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
+
<style xmlns="http://purl.org/net/xbiblio/csl" class="in-text" version="1.0">
|
|
3
|
+
<info>
|
|
4
|
+
<title>BibTex generic citation style</title>
|
|
5
|
+
<id>http://www.zotero.org/styles/bibtex</id>
|
|
6
|
+
<link href="http://www.bibtex.org/" rel="self"/>
|
|
7
|
+
<author>
|
|
8
|
+
<name>Markus Schaffner</name>
|
|
9
|
+
</author>
|
|
10
|
+
<contributor>
|
|
11
|
+
<name>Richard Karnesky</name>
|
|
12
|
+
<email>karnesky+zotero@gmail.com</email>
|
|
13
|
+
<uri>http://arc.nucapt.northwestern.edu/Richard_Karnesky</uri>
|
|
14
|
+
</contributor>
|
|
15
|
+
<category field="generic-base"/>
|
|
16
|
+
<updated>2008-10-05T18:42:42+00:00</updated>
|
|
17
|
+
</info>
|
|
18
|
+
<macro name="zotero2bibtexType">
|
|
19
|
+
<choose>
|
|
20
|
+
<if type="bill book graphic legal_case motion_picture report song" match="any">
|
|
21
|
+
<text value="book"/>
|
|
22
|
+
</if>
|
|
23
|
+
<else-if type="chapter paper-conference" match="any">
|
|
24
|
+
<text value="inbook"/>
|
|
25
|
+
</else-if>
|
|
26
|
+
<else-if type="article article-journal article-magazine article-newspaper" match="any">
|
|
27
|
+
<text value="article"/>
|
|
28
|
+
</else-if>
|
|
29
|
+
<else-if type="thesis" match="any">
|
|
30
|
+
<text value="phdthesis"/>
|
|
31
|
+
</else-if>
|
|
32
|
+
<else-if type="manuscript" match="any">
|
|
33
|
+
<text value="unpublished"/>
|
|
34
|
+
</else-if>
|
|
35
|
+
<else-if type="paper-conference" match="any">
|
|
36
|
+
<text value="inproceedings"/>
|
|
37
|
+
</else-if>
|
|
38
|
+
<else-if type="report" match="any">
|
|
39
|
+
<text value="techreport"/>
|
|
40
|
+
</else-if>
|
|
41
|
+
<else>
|
|
42
|
+
<text value="misc"/>
|
|
43
|
+
</else>
|
|
44
|
+
</choose>
|
|
45
|
+
</macro>
|
|
46
|
+
<macro name="citeKey">
|
|
47
|
+
<group delimiter="_">
|
|
48
|
+
<text macro="author-short" text-case="lowercase"/>
|
|
49
|
+
<text macro="issued-year"/>
|
|
50
|
+
</group>
|
|
51
|
+
</macro>
|
|
52
|
+
<macro name="author-short">
|
|
53
|
+
<names variable="author">
|
|
54
|
+
<name form="short" delimiter="_" delimiter-precedes-last="always"/>
|
|
55
|
+
<substitute>
|
|
56
|
+
<names variable="editor"/>
|
|
57
|
+
<names variable="translator"/>
|
|
58
|
+
<choose>
|
|
59
|
+
<if type="bill book graphic legal_case motion_picture report song" match="any">
|
|
60
|
+
<text variable="title" form="short"/>
|
|
61
|
+
</if>
|
|
62
|
+
<else>
|
|
63
|
+
<text variable="title" form="short"/>
|
|
64
|
+
</else>
|
|
65
|
+
</choose>
|
|
66
|
+
</substitute>
|
|
67
|
+
</names>
|
|
68
|
+
</macro>
|
|
69
|
+
<macro name="issued-year">
|
|
70
|
+
<date variable="issued">
|
|
71
|
+
<date-part name="year"/>
|
|
72
|
+
</date>
|
|
73
|
+
</macro>
|
|
74
|
+
<macro name="issued-month">
|
|
75
|
+
<date variable="issued">
|
|
76
|
+
<date-part name="month" form="short" strip-periods="true"/>
|
|
77
|
+
</date>
|
|
78
|
+
</macro>
|
|
79
|
+
<macro name="author">
|
|
80
|
+
<names variable="author">
|
|
81
|
+
<name sort-separator=", " delimiter=" and " delimiter-precedes-last="always" name-as-sort-order="all"/>
|
|
82
|
+
<label form="long" text-case="capitalize-first"/>
|
|
83
|
+
</names>
|
|
84
|
+
</macro>
|
|
85
|
+
<macro name="editor-translator">
|
|
86
|
+
<names variable="editor translator" delimiter=", ">
|
|
87
|
+
<name sort-separator=", " delimiter=" and " delimiter-precedes-last="always" name-as-sort-order="all"/>
|
|
88
|
+
<label form="long" text-case="capitalize-first"/>
|
|
89
|
+
</names>
|
|
90
|
+
</macro>
|
|
91
|
+
<macro name="title">
|
|
92
|
+
<text variable="title"/>
|
|
93
|
+
</macro>
|
|
94
|
+
<macro name="number">
|
|
95
|
+
<text variable="issue"/>
|
|
96
|
+
<text variable="number"/>
|
|
97
|
+
</macro>
|
|
98
|
+
<macro name="container-title">
|
|
99
|
+
<choose>
|
|
100
|
+
<if type="chapter paper-conference" match="any">
|
|
101
|
+
<text variable="container-title" prefix=" booktitle={" suffix="}"/>
|
|
102
|
+
</if>
|
|
103
|
+
<else>
|
|
104
|
+
<text variable="container-title" prefix=" journal={" suffix="}"/>
|
|
105
|
+
</else>
|
|
106
|
+
</choose>
|
|
107
|
+
</macro>
|
|
108
|
+
<macro name="publisher">
|
|
109
|
+
<choose>
|
|
110
|
+
<if type="thesis">
|
|
111
|
+
<text variable="publisher" prefix=" school={" suffix="}"/>
|
|
112
|
+
</if>
|
|
113
|
+
<else-if type="report">
|
|
114
|
+
<text variable="publisher" prefix=" institution={" suffix="}"/>
|
|
115
|
+
</else-if>
|
|
116
|
+
<else>
|
|
117
|
+
<text variable="publisher" prefix=" publisher={" suffix="}"/>
|
|
118
|
+
</else>
|
|
119
|
+
</choose>
|
|
120
|
+
</macro>
|
|
121
|
+
<macro name="pages">
|
|
122
|
+
<text variable="page"/>
|
|
123
|
+
</macro>
|
|
124
|
+
<macro name="edition">
|
|
125
|
+
<text variable="edition"/>
|
|
126
|
+
</macro>
|
|
127
|
+
<citation et-al-min="10" et-al-use-first="10" et-al-subsequent-min="10" et-al-subsequent-use-first="10" disambiguate-add-year-suffix="true" disambiguate-add-names="false" disambiguate-add-givenname="false" collapse="year">
|
|
128
|
+
<sort>
|
|
129
|
+
<key macro="author"/>
|
|
130
|
+
<key variable="issued"/>
|
|
131
|
+
</sort>
|
|
132
|
+
<layout delimiter="_">
|
|
133
|
+
<text macro="citeKey"/>
|
|
134
|
+
</layout>
|
|
135
|
+
</citation>
|
|
136
|
+
<bibliography hanging-indent="false" et-al-min="10" et-al-use-first="10">
|
|
137
|
+
<sort>
|
|
138
|
+
<key macro="author"/>
|
|
139
|
+
<key variable="issued"/>
|
|
140
|
+
</sort>
|
|
141
|
+
<layout>
|
|
142
|
+
<text macro="zotero2bibtexType" prefix=" @" suffix=""/>
|
|
143
|
+
<group prefix="{" suffix="}" delimiter=", ">
|
|
144
|
+
<text macro="citeKey"/>
|
|
145
|
+
<text variable="publisher-place" prefix=" place={" suffix="}"/>
|
|
146
|
+
<!--Fix This-->
|
|
147
|
+
<text variable="chapter-number" prefix=" chapter={" suffix="}"/>
|
|
148
|
+
<!--Fix This-->
|
|
149
|
+
<text macro="edition" prefix=" edition={" suffix="}"/>
|
|
150
|
+
<!--Is this in CSL? <text variable="type" prefix=" type={" suffix="}" />-->
|
|
151
|
+
<text variable="collection-title" prefix=" series={" suffix="}"/>
|
|
152
|
+
<text macro="title" prefix=" title={" suffix="}"/>
|
|
153
|
+
<text variable="volume" prefix=" volume={" suffix="}"/>
|
|
154
|
+
<!--Not in CSL<text variable="rights" prefix=" rights={" suffix="}" />-->
|
|
155
|
+
<text variable="ISBN" prefix=" ISBN={" suffix="}"/>
|
|
156
|
+
<!--Not in CSL <text variable="ISSN" prefix=" ISSN={" suffix="}" />-->
|
|
157
|
+
<!--Not in CSL <text variable="LCCN" prefix=" callNumber={" suffix="}" />-->
|
|
158
|
+
<text variable="archive_location" prefix=" archiveLocation={" suffix="}"/>
|
|
159
|
+
<text variable="URL" prefix=" url={" suffix="}"/>
|
|
160
|
+
<text variable="DOI" prefix=" DOI={" suffix="}"/>
|
|
161
|
+
<text variable="abstract" prefix=" abstractNote={" suffix="}"/>
|
|
162
|
+
<text variable="note" prefix=" note={" suffix="}"/>
|
|
163
|
+
<text macro="number" prefix=" number={" suffix="}"/>
|
|
164
|
+
<text macro="container-title"/>
|
|
165
|
+
<text macro="publisher"/>
|
|
166
|
+
<text macro="author" prefix=" author={" suffix="}"/>
|
|
167
|
+
<text macro="editor-translator" prefix=" editor={" suffix="}"/>
|
|
168
|
+
<text macro="issued-year" prefix=" year={" suffix="}"/>
|
|
169
|
+
<text macro="issued-month" prefix=" month={" suffix="}"/>
|
|
170
|
+
<text macro="pages" prefix=" pages={" suffix="}"/>
|
|
171
|
+
<text variable="collection-title" prefix=" collection={" suffix="}"/>
|
|
172
|
+
</group>
|
|
173
|
+
</layout>
|
|
174
|
+
</bibliography>
|
|
175
|
+
</style>
|