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,178 @@
|
|
|
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>Modern Language Association</title>
|
|
5
|
+
<id>http://www.zotero.org/styles/mla</id>
|
|
6
|
+
<link href="http://www.zotero.org/styles/mla" rel="self"/>
|
|
7
|
+
<author>
|
|
8
|
+
<name>Simon Kornblith</name>
|
|
9
|
+
<email>simon@simonster.com</email>
|
|
10
|
+
</author>
|
|
11
|
+
<contributor>
|
|
12
|
+
<name> modified by Christian Werthschulte</name>
|
|
13
|
+
<email>Christian.Werthschulte@rub.de</email>
|
|
14
|
+
</contributor>
|
|
15
|
+
<category field="generic-base"/>
|
|
16
|
+
<category citation-format="author-date"/>
|
|
17
|
+
<updated>2008-08-14T19:52:55+00:00</updated>
|
|
18
|
+
</info>
|
|
19
|
+
<macro name="editor-translator">
|
|
20
|
+
<names variable="editor translator" delimiter=". ">
|
|
21
|
+
<label form="verb-short" text-case="capitalize-first" suffix=". " strip-periods="true"/>
|
|
22
|
+
<name and="symbol" delimiter=", "/>
|
|
23
|
+
</names>
|
|
24
|
+
</macro>
|
|
25
|
+
<macro name="author">
|
|
26
|
+
<names variable="author">
|
|
27
|
+
<name name-as-sort-order="first" and="text" sort-separator=", " delimiter=", " delimiter-precedes-last="always"/>
|
|
28
|
+
<label form="short" prefix=", " suffix="." strip-periods="true"/>
|
|
29
|
+
<substitute>
|
|
30
|
+
<names variable="editor"/>
|
|
31
|
+
<names variable="translator"/>
|
|
32
|
+
<text macro="title"/>
|
|
33
|
+
</substitute>
|
|
34
|
+
</names>
|
|
35
|
+
</macro>
|
|
36
|
+
<macro name="author-short">
|
|
37
|
+
<names variable="author">
|
|
38
|
+
<name form="short" and="symbol" delimiter=", " initialize-with=". "/>
|
|
39
|
+
<substitute>
|
|
40
|
+
<names variable="editor"/>
|
|
41
|
+
<names variable="translator"/>
|
|
42
|
+
<text macro="title-short"/>
|
|
43
|
+
</substitute>
|
|
44
|
+
</names>
|
|
45
|
+
</macro>
|
|
46
|
+
<macro name="access">
|
|
47
|
+
<group delimiter=" ">
|
|
48
|
+
<date variable="accessed">
|
|
49
|
+
<date-part name="day" suffix=" "/>
|
|
50
|
+
<date-part name="month" form="short" suffix=" "/>
|
|
51
|
+
<date-part name="year"/>
|
|
52
|
+
</date>
|
|
53
|
+
<text variable="URL" prefix="<" suffix=">"/>
|
|
54
|
+
</group>
|
|
55
|
+
</macro>
|
|
56
|
+
<macro name="title">
|
|
57
|
+
<choose>
|
|
58
|
+
<if type="bill book graphic legal_case motion_picture report song" match="any">
|
|
59
|
+
<text variable="title" font-style="italic"/>
|
|
60
|
+
</if>
|
|
61
|
+
<else>
|
|
62
|
+
<text variable="title" quotes="true"/>
|
|
63
|
+
</else>
|
|
64
|
+
</choose>
|
|
65
|
+
</macro>
|
|
66
|
+
<macro name="title-short">
|
|
67
|
+
<choose>
|
|
68
|
+
<if type="bill book graphic legal_case motion_picture report song" match="any">
|
|
69
|
+
<text variable="title" form="short" font-style="italic"/>
|
|
70
|
+
</if>
|
|
71
|
+
<else>
|
|
72
|
+
<text variable="title" form="short" quotes="true"/>
|
|
73
|
+
</else>
|
|
74
|
+
</choose>
|
|
75
|
+
</macro>
|
|
76
|
+
<macro name="edition">
|
|
77
|
+
<choose>
|
|
78
|
+
<if is-numeric="edition">
|
|
79
|
+
<group delimiter=" ">
|
|
80
|
+
<number variable="edition" form="ordinal"/>
|
|
81
|
+
<text term="edition" form="short" suffix="." strip-periods="true"/>
|
|
82
|
+
</group>
|
|
83
|
+
</if>
|
|
84
|
+
<else>
|
|
85
|
+
<text variable="edition"/>
|
|
86
|
+
</else>
|
|
87
|
+
</choose>
|
|
88
|
+
</macro>
|
|
89
|
+
<macro name="publisher-year">
|
|
90
|
+
<group delimiter=", ">
|
|
91
|
+
<group delimiter=": ">
|
|
92
|
+
<text variable="publisher-place"/>
|
|
93
|
+
<text variable="publisher"/>
|
|
94
|
+
</group>
|
|
95
|
+
<date variable="issued">
|
|
96
|
+
<date-part name="year"/>
|
|
97
|
+
</date>
|
|
98
|
+
</group>
|
|
99
|
+
</macro>
|
|
100
|
+
<citation et-al-min="4" et-al-use-first="1" disambiguate-add-names="true" disambiguate-add-givenname="true">
|
|
101
|
+
<layout prefix="(" suffix=")" delimiter="; ">
|
|
102
|
+
<group delimiter=" ">
|
|
103
|
+
<choose>
|
|
104
|
+
<if variable="author editor translator" match="any">
|
|
105
|
+
<group delimiter=", ">
|
|
106
|
+
<text macro="author-short"/>
|
|
107
|
+
<choose>
|
|
108
|
+
<if disambiguate="true">
|
|
109
|
+
<text macro="title-short"/>
|
|
110
|
+
</if>
|
|
111
|
+
</choose>
|
|
112
|
+
</group>
|
|
113
|
+
</if>
|
|
114
|
+
<else>
|
|
115
|
+
<text macro="title-short"/>
|
|
116
|
+
</else>
|
|
117
|
+
</choose>
|
|
118
|
+
<text variable="locator"/>
|
|
119
|
+
</group>
|
|
120
|
+
</layout>
|
|
121
|
+
</citation>
|
|
122
|
+
<bibliography hanging-indent="true" et-al-min="4" et-al-use-first="1" line-spacing="2" subsequent-author-substitute="---">
|
|
123
|
+
<sort>
|
|
124
|
+
<key macro="author"/>
|
|
125
|
+
<key variable="title"/>
|
|
126
|
+
</sort>
|
|
127
|
+
<layout>
|
|
128
|
+
<text macro="author" suffix="."/>
|
|
129
|
+
<text macro="title" prefix=" " suffix="."/>
|
|
130
|
+
<choose>
|
|
131
|
+
<if type="bill book graphic legal_case motion_picture report song" match="any">
|
|
132
|
+
<text macro="edition" prefix=" " suffix="."/>
|
|
133
|
+
<text macro="editor-translator" prefix=" " suffix="."/>
|
|
134
|
+
<text macro="publisher-year" prefix=" " suffix="."/>
|
|
135
|
+
</if>
|
|
136
|
+
<else-if type="chapter paper-conference" match="any">
|
|
137
|
+
<group>
|
|
138
|
+
<text variable="container-title" font-style="italic" prefix=" " suffix="."/>
|
|
139
|
+
<text macro="edition" prefix=" " suffix="."/>
|
|
140
|
+
<text macro="editor-translator" prefix=" " suffix="."/>
|
|
141
|
+
<text macro="publisher-year" prefix=" " suffix="."/>
|
|
142
|
+
</group>
|
|
143
|
+
<text variable="page" prefix=" " suffix="."/>
|
|
144
|
+
</else-if>
|
|
145
|
+
<else>
|
|
146
|
+
<group prefix=" " suffix="." delimiter=": ">
|
|
147
|
+
<group delimiter=" ">
|
|
148
|
+
<text macro="editor-translator" suffix="."/>
|
|
149
|
+
<text variable="container-title" font-style="italic"/>
|
|
150
|
+
<choose>
|
|
151
|
+
<if type="article-journal">
|
|
152
|
+
<group delimiter=" ">
|
|
153
|
+
<group delimiter=".">
|
|
154
|
+
<text variable="volume"/>
|
|
155
|
+
<text variable="issue"/>
|
|
156
|
+
</group>
|
|
157
|
+
<date variable="issued" prefix="(" suffix=")">
|
|
158
|
+
<date-part name="year"/>
|
|
159
|
+
</date>
|
|
160
|
+
</group>
|
|
161
|
+
</if>
|
|
162
|
+
<else>
|
|
163
|
+
<date variable="issued">
|
|
164
|
+
<date-part name="day" suffix=" "/>
|
|
165
|
+
<date-part name="month" form="short" suffix=" "/>
|
|
166
|
+
<date-part name="year"/>
|
|
167
|
+
</date>
|
|
168
|
+
</else>
|
|
169
|
+
</choose>
|
|
170
|
+
</group>
|
|
171
|
+
<text variable="page"/>
|
|
172
|
+
</group>
|
|
173
|
+
</else>
|
|
174
|
+
</choose>
|
|
175
|
+
<text prefix=" " suffix="." macro="access"/>
|
|
176
|
+
</layout>
|
|
177
|
+
</bibliography>
|
|
178
|
+
</style>
|
|
@@ -0,0 +1,189 @@
|
|
|
1
|
+
<style
|
|
2
|
+
xmlns="http://purl.org/net/xbiblio/csl"
|
|
3
|
+
class="in-text"
|
|
4
|
+
xml:lang="en">
|
|
5
|
+
<info>
|
|
6
|
+
<title>Modern Language Association</title>
|
|
7
|
+
<id>http://www.zotero.org/styles/mla</id>
|
|
8
|
+
<link href="http://www.zotero.org/styles/mla" />
|
|
9
|
+
<author>
|
|
10
|
+
<name>Simon Kornblith</name>
|
|
11
|
+
<email>simon@simonster.com</email>
|
|
12
|
+
</author>
|
|
13
|
+
<contributor>
|
|
14
|
+
<name> modified by Christian Werthschulte</name>
|
|
15
|
+
<email>Christian.Werthschulte@rub.de</email>
|
|
16
|
+
</contributor>
|
|
17
|
+
<category term="generic-base" />
|
|
18
|
+
<category term="author-date" />
|
|
19
|
+
<updated />
|
|
20
|
+
</info>
|
|
21
|
+
<macro name="editor-translator">
|
|
22
|
+
<names delimiter=". " variable="editor translator">
|
|
23
|
+
<label form="verb-short" suffix=". " text-case="capitalize-first" />
|
|
24
|
+
<name and="symbol" delimiter=", " />
|
|
25
|
+
</names>
|
|
26
|
+
</macro>
|
|
27
|
+
<macro name="author">
|
|
28
|
+
<names variable="author">
|
|
29
|
+
<name and="text" delimiter=", " delimiter-precedes-last="always" name-as-sort-order="first" sort-separator=", " />
|
|
30
|
+
<label form="short" prefix=", " suffix="." />
|
|
31
|
+
<substitute>
|
|
32
|
+
<names variable="editor" />
|
|
33
|
+
<names variable="translator" />
|
|
34
|
+
<text macro="title" />
|
|
35
|
+
</substitute>
|
|
36
|
+
</names>
|
|
37
|
+
</macro>
|
|
38
|
+
<macro name="author-short">
|
|
39
|
+
<names variable="author">
|
|
40
|
+
<name and="symbol" delimiter=", " form="short" initialize-with=". " />
|
|
41
|
+
<substitute>
|
|
42
|
+
<names variable="editor" />
|
|
43
|
+
<names variable="translator" />
|
|
44
|
+
<text macro="title-short" />
|
|
45
|
+
</substitute>
|
|
46
|
+
</names>
|
|
47
|
+
</macro>
|
|
48
|
+
<macro name="access">
|
|
49
|
+
<group delimiter=" ">
|
|
50
|
+
<date variable="accessed">
|
|
51
|
+
<date-part name="day" suffix=" " />
|
|
52
|
+
<date-part form="short" name="month" strip-periods="false" suffix=" " />
|
|
53
|
+
<date-part name="year" />
|
|
54
|
+
</date>
|
|
55
|
+
<text prefix="<" suffix=">" variable="URL" />
|
|
56
|
+
</group>
|
|
57
|
+
</macro>
|
|
58
|
+
<macro name="title">
|
|
59
|
+
<choose>
|
|
60
|
+
<if type="book">
|
|
61
|
+
<text font-style="italic" variable="title" />
|
|
62
|
+
</if>
|
|
63
|
+
<else>
|
|
64
|
+
<text quotes="true" variable="title" />
|
|
65
|
+
</else>
|
|
66
|
+
</choose>
|
|
67
|
+
</macro>
|
|
68
|
+
<macro name="title-short">
|
|
69
|
+
<choose>
|
|
70
|
+
<if type="book">
|
|
71
|
+
<text font-style="italic" form="short" variable="title" />
|
|
72
|
+
</if>
|
|
73
|
+
<else>
|
|
74
|
+
<text form="short" quotes="true" variable="title" />
|
|
75
|
+
</else>
|
|
76
|
+
</choose>
|
|
77
|
+
</macro>
|
|
78
|
+
<macro name="edition">
|
|
79
|
+
<choose>
|
|
80
|
+
<if is-numeric="edition">
|
|
81
|
+
<group delimiter=" ">
|
|
82
|
+
<number form="ordinal" variable="edition" />
|
|
83
|
+
<text form="short" suffix="." term="edition" />
|
|
84
|
+
</group>
|
|
85
|
+
</if>
|
|
86
|
+
<else>
|
|
87
|
+
<text variable="edition" />
|
|
88
|
+
</else>
|
|
89
|
+
</choose>
|
|
90
|
+
</macro>
|
|
91
|
+
<macro name="publisher-year">
|
|
92
|
+
<group delimiter=", ">
|
|
93
|
+
<group delimiter=": ">
|
|
94
|
+
<text variable="publisher-place" />
|
|
95
|
+
<text variable="publisher" />
|
|
96
|
+
</group>
|
|
97
|
+
<date variable="issued">
|
|
98
|
+
<date-part name="year" />
|
|
99
|
+
</date>
|
|
100
|
+
</group>
|
|
101
|
+
</macro>
|
|
102
|
+
<citation
|
|
103
|
+
disambiguate-add-givenname="true"
|
|
104
|
+
disambiguate-add-names="true"
|
|
105
|
+
et-al-min="4"
|
|
106
|
+
et-al-use-first="1">
|
|
107
|
+
<layout delimiter="; " prefix="(" suffix=")">
|
|
108
|
+
<group delimiter=" ">
|
|
109
|
+
<choose>
|
|
110
|
+
<if match="any" variable="author editor translator">
|
|
111
|
+
<group delimiter=", ">
|
|
112
|
+
<text macro="author-short" />
|
|
113
|
+
<choose>
|
|
114
|
+
<if disambiguate="true">
|
|
115
|
+
<text macro="title-short" />
|
|
116
|
+
</if>
|
|
117
|
+
</choose>
|
|
118
|
+
</group>
|
|
119
|
+
</if>
|
|
120
|
+
<else>
|
|
121
|
+
<text macro="title-short" />
|
|
122
|
+
</else>
|
|
123
|
+
</choose>
|
|
124
|
+
<text variable="locator" />
|
|
125
|
+
</group>
|
|
126
|
+
</layout>
|
|
127
|
+
</citation>
|
|
128
|
+
<bibliography
|
|
129
|
+
et-al-min="4"
|
|
130
|
+
et-al-use-first="1"
|
|
131
|
+
hanging-indent="true"
|
|
132
|
+
line-spacing="2"
|
|
133
|
+
subsequent-author-substitute="---">
|
|
134
|
+
<sort>
|
|
135
|
+
<key macro="author" />
|
|
136
|
+
<key variable="title" />
|
|
137
|
+
</sort>
|
|
138
|
+
<layout>
|
|
139
|
+
<text macro="author" suffix="." />
|
|
140
|
+
<text macro="title" prefix=" " suffix="." />
|
|
141
|
+
<choose>
|
|
142
|
+
<if type="book">
|
|
143
|
+
<text macro="edition" prefix=" " suffix="." />
|
|
144
|
+
<text macro="editor-translator" prefix=" " suffix="." />
|
|
145
|
+
<text macro="publisher-year" prefix=" " suffix="." />
|
|
146
|
+
</if>
|
|
147
|
+
<else-if type="chapter">
|
|
148
|
+
<group>
|
|
149
|
+
<text font-style="italic" prefix=" " suffix="." variable="container-title" />
|
|
150
|
+
<text macro="edition" prefix=" " suffix="." />
|
|
151
|
+
<text macro="editor-translator" prefix=" " suffix="." />
|
|
152
|
+
<text macro="publisher-year" prefix=" " suffix="." />
|
|
153
|
+
</group>
|
|
154
|
+
<text prefix=" " suffix="." variable="page" />
|
|
155
|
+
</else-if>
|
|
156
|
+
<else>
|
|
157
|
+
<group delimiter=": " prefix=" " suffix=".">
|
|
158
|
+
<group delimiter=" ">
|
|
159
|
+
<text macro="editor-translator" suffix="." />
|
|
160
|
+
<text font-style="italic" variable="container-title" />
|
|
161
|
+
<choose>
|
|
162
|
+
<if type="article-journal">
|
|
163
|
+
<group delimiter=" ">
|
|
164
|
+
<group delimiter=".">
|
|
165
|
+
<text variable="volume" />
|
|
166
|
+
<text variable="issue" />
|
|
167
|
+
</group>
|
|
168
|
+
<date prefix="(" suffix=")" variable="issued">
|
|
169
|
+
<date-part name="year" />
|
|
170
|
+
</date>
|
|
171
|
+
</group>
|
|
172
|
+
</if>
|
|
173
|
+
<else>
|
|
174
|
+
<date variable="issued">
|
|
175
|
+
<date-part name="day" suffix=" " />
|
|
176
|
+
<date-part form="short" name="month" strip-periods="false" suffix=" " />
|
|
177
|
+
<date-part name="year" />
|
|
178
|
+
</date>
|
|
179
|
+
</else>
|
|
180
|
+
</choose>
|
|
181
|
+
</group>
|
|
182
|
+
<text variable="page" />
|
|
183
|
+
</group>
|
|
184
|
+
</else>
|
|
185
|
+
</choose>
|
|
186
|
+
<text macro="access" prefix=" " suffix="." />
|
|
187
|
+
</layout>
|
|
188
|
+
</bibliography>
|
|
189
|
+
</style>
|
|
@@ -0,0 +1,81 @@
|
|
|
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>Nature Journal</title>
|
|
5
|
+
<id>http://www.zotero.org/styles/nature</id>
|
|
6
|
+
<link href="http://www.zotero.org/styles/nature" rel="self"/>
|
|
7
|
+
<author>
|
|
8
|
+
<name>Michael Berkowitz</name>
|
|
9
|
+
<email>mberkowi@gmu.edu</email>
|
|
10
|
+
</author>
|
|
11
|
+
<category field="biology"/>
|
|
12
|
+
<category field="generic-base"/>
|
|
13
|
+
<category citation-format="numeric"/>
|
|
14
|
+
<updated>2008-04-01T17:46:55+00:00</updated>
|
|
15
|
+
</info>
|
|
16
|
+
<macro name="title">
|
|
17
|
+
<choose>
|
|
18
|
+
<if type="bill book graphic legal_case motion_picture report song" match="any">
|
|
19
|
+
<text variable="title" font-style="italic"/>
|
|
20
|
+
</if>
|
|
21
|
+
<else>
|
|
22
|
+
<text variable="title"/>
|
|
23
|
+
</else>
|
|
24
|
+
</choose>
|
|
25
|
+
</macro>
|
|
26
|
+
<macro name="author">
|
|
27
|
+
<names variable="author">
|
|
28
|
+
<name sort-separator=", " delimiter=", " and="symbol" initialize-with="." delimiter-precedes-last="never" name-as-sort-order="all"/>
|
|
29
|
+
</names>
|
|
30
|
+
</macro>
|
|
31
|
+
<macro name="access">
|
|
32
|
+
<choose>
|
|
33
|
+
<if variable="volume"/>
|
|
34
|
+
<else-if variable="DOI">
|
|
35
|
+
<text variable="DOI" prefix="doi:"/>
|
|
36
|
+
</else-if>
|
|
37
|
+
<else-if variable="URL">
|
|
38
|
+
<text term="at" suffix=" "/>
|
|
39
|
+
<text variable="URL" prefix="<" suffix=">"/>
|
|
40
|
+
</else-if>
|
|
41
|
+
</choose>
|
|
42
|
+
</macro>
|
|
43
|
+
<macro name="issuance">
|
|
44
|
+
<choose>
|
|
45
|
+
<if type="bill book graphic legal_case motion_picture report song" match="any">
|
|
46
|
+
<group prefix="(" suffix=").">
|
|
47
|
+
<text variable="publisher" suffix=": "/>
|
|
48
|
+
<text variable="publisher-place" suffix=", "/>
|
|
49
|
+
<date variable="issued">
|
|
50
|
+
<date-part name="year"/>
|
|
51
|
+
</date>
|
|
52
|
+
</group>
|
|
53
|
+
</if>
|
|
54
|
+
<else>
|
|
55
|
+
<date prefix="(" suffix=")." variable="issued">
|
|
56
|
+
<date-part name="year"/>
|
|
57
|
+
</date>
|
|
58
|
+
</else>
|
|
59
|
+
</choose>
|
|
60
|
+
</macro>
|
|
61
|
+
<citation collapse="citation-number">
|
|
62
|
+
<sort>
|
|
63
|
+
<key variable="citation-number"/>
|
|
64
|
+
</sort>
|
|
65
|
+
<layout vertical-align="sup" delimiter=",">
|
|
66
|
+
<text variable="citation-number"/>
|
|
67
|
+
</layout>
|
|
68
|
+
</citation>
|
|
69
|
+
<bibliography et-al-min="4" et-al-use-first="1" second-field-align="flush" entry-spacing="0">
|
|
70
|
+
<layout>
|
|
71
|
+
<text variable="citation-number" suffix="."/>
|
|
72
|
+
<text macro="author"/>
|
|
73
|
+
<text macro="title" prefix=" " suffix=". "/>
|
|
74
|
+
<text variable="container-title" font-style="italic" suffix=" " form="short"/>
|
|
75
|
+
<text variable="volume" suffix=", " font-weight="bold"/>
|
|
76
|
+
<text variable="page"/>
|
|
77
|
+
<text macro="issuance"/>
|
|
78
|
+
<text macro="access"/>
|
|
79
|
+
</layout>
|
|
80
|
+
</bibliography>
|
|
81
|
+
</style>
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
<style
|
|
2
|
+
xmlns="http://purl.org/net/xbiblio/csl"
|
|
3
|
+
class="in-text"
|
|
4
|
+
xml:lang="en">
|
|
5
|
+
<info>
|
|
6
|
+
<title>Nature Journal</title>
|
|
7
|
+
<id>http://www.zotero.org/styles/nature</id>
|
|
8
|
+
<link href="http://www.zotero.org/styles/nature" />
|
|
9
|
+
<author>
|
|
10
|
+
<name>Michael Berkowitz</name>
|
|
11
|
+
<email>mberkowi@gmu.edu</email>
|
|
12
|
+
</author>
|
|
13
|
+
<category term="biology" />
|
|
14
|
+
<category term="generic-base" />
|
|
15
|
+
<category term="numeric" />
|
|
16
|
+
<updated />
|
|
17
|
+
</info>
|
|
18
|
+
<macro name="title">
|
|
19
|
+
<choose>
|
|
20
|
+
<if type="book">
|
|
21
|
+
<text font-style="italic" variable="title" />
|
|
22
|
+
</if>
|
|
23
|
+
<else>
|
|
24
|
+
<text variable="title" />
|
|
25
|
+
</else>
|
|
26
|
+
</choose>
|
|
27
|
+
</macro>
|
|
28
|
+
<macro name="author">
|
|
29
|
+
<names variable="author">
|
|
30
|
+
<name and="symbol" delimiter=", " delimiter-precedes-last="never" initialize-with="." name-as-sort-order="all" sort-separator=", " />
|
|
31
|
+
</names>
|
|
32
|
+
</macro>
|
|
33
|
+
<macro name="access">
|
|
34
|
+
<choose>
|
|
35
|
+
<if variable="volume" />
|
|
36
|
+
<else-if variable="DOI">
|
|
37
|
+
<text prefix="doi:" variable="DOI" />
|
|
38
|
+
</else-if>
|
|
39
|
+
<else-if variable="URL">
|
|
40
|
+
<text term="at" />
|
|
41
|
+
<text prefix=" <" suffix=">" variable="URL" />
|
|
42
|
+
</else-if>
|
|
43
|
+
</choose>
|
|
44
|
+
</macro>
|
|
45
|
+
<macro name="issuance">
|
|
46
|
+
<choose>
|
|
47
|
+
<if type="book">
|
|
48
|
+
<group prefix="(" suffix=").">
|
|
49
|
+
<text suffix=": " variable="publisher" />
|
|
50
|
+
<text suffix=", " variable="publisher-place" />
|
|
51
|
+
<date variable="issued">
|
|
52
|
+
<date-part name="year" />
|
|
53
|
+
</date>
|
|
54
|
+
</group>
|
|
55
|
+
</if>
|
|
56
|
+
<else>
|
|
57
|
+
<date prefix="(" suffix=")." variable="issued">
|
|
58
|
+
<date-part name="year" />
|
|
59
|
+
</date>
|
|
60
|
+
</else>
|
|
61
|
+
</choose>
|
|
62
|
+
</macro>
|
|
63
|
+
<citation
|
|
64
|
+
collapse="citation-number">
|
|
65
|
+
<sort>
|
|
66
|
+
<key variable="citation-number" />
|
|
67
|
+
</sort>
|
|
68
|
+
<layout delimiter="," vertical-align="sup">
|
|
69
|
+
<text variable="citation-number" />
|
|
70
|
+
</layout>
|
|
71
|
+
</citation>
|
|
72
|
+
<bibliography
|
|
73
|
+
entry-spacing="0"
|
|
74
|
+
et-al-min="4"
|
|
75
|
+
et-al-use-first="1"
|
|
76
|
+
second-field-align="true">
|
|
77
|
+
<layout>
|
|
78
|
+
<text suffix="." variable="citation-number" />
|
|
79
|
+
<text macro="author" />
|
|
80
|
+
<text macro="title" prefix=" " suffix=". " />
|
|
81
|
+
<text font-style="italic" form="short" suffix=" " variable="container-title" />
|
|
82
|
+
<text font-weight="bold" suffix=", " variable="volume" />
|
|
83
|
+
<text variable="page" />
|
|
84
|
+
<text macro="issuance" />
|
|
85
|
+
<text macro="access" />
|
|
86
|
+
</layout>
|
|
87
|
+
</bibliography>
|
|
88
|
+
</style>
|