pageproof 0.1.0
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.
- package/LICENSE +21 -0
- package/README.md +90 -0
- package/THIRD_PARTY_NOTICES.md +74 -0
- package/assets/SKILL.md +58 -0
- package/assets/_paged.css +82 -0
- package/assets/chicago.csl +6006 -0
- package/assets/default.html +496 -0
- package/assets/doublespaced.css +8 -0
- package/assets/european-journal-of-international-law.csl +404 -0
- package/assets/favicon.svg +5 -0
- package/assets/footnotes-inline.lua +56 -0
- package/assets/latex.css +142 -0
- package/assets/msword.css +100 -0
- package/assets/numbered.css +75 -0
- package/assets/vendor/mathjax/LICENSE +202 -0
- package/assets/vendor/mathjax/sre/mathmaps/af.json +146 -0
- package/assets/vendor/mathjax/sre/mathmaps/base.json +140 -0
- package/assets/vendor/mathjax/sre/mathmaps/ca.json +140 -0
- package/assets/vendor/mathjax/sre/mathmaps/da.json +140 -0
- package/assets/vendor/mathjax/sre/mathmaps/de.json +146 -0
- package/assets/vendor/mathjax/sre/mathmaps/en.json +158 -0
- package/assets/vendor/mathjax/sre/mathmaps/es.json +140 -0
- package/assets/vendor/mathjax/sre/mathmaps/euro.json +32 -0
- package/assets/vendor/mathjax/sre/mathmaps/fr.json +146 -0
- package/assets/vendor/mathjax/sre/mathmaps/hi.json +146 -0
- package/assets/vendor/mathjax/sre/mathmaps/it.json +146 -0
- package/assets/vendor/mathjax/sre/mathmaps/ko.json +146 -0
- package/assets/vendor/mathjax/sre/mathmaps/nb.json +146 -0
- package/assets/vendor/mathjax/sre/mathmaps/nemeth.json +125 -0
- package/assets/vendor/mathjax/sre/mathmaps/nn.json +146 -0
- package/assets/vendor/mathjax/sre/mathmaps/sv.json +146 -0
- package/assets/vendor/mathjax/sre/speech-worker.js +1 -0
- package/assets/vendor/mathjax/tex-mml-chtml-nofont.js +18 -0
- package/assets/vendor/mathjax-fonts/LICENSE +202 -0
- package/assets/vendor/mathjax-fonts/mathjax-tex-font/chtml/woff2/mjx-tex-b.woff2 +0 -0
- package/assets/vendor/mathjax-fonts/mathjax-tex-font/chtml/woff2/mjx-tex-bi.woff2 +0 -0
- package/assets/vendor/mathjax-fonts/mathjax-tex-font/chtml/woff2/mjx-tex-brk.woff2 +0 -0
- package/assets/vendor/mathjax-fonts/mathjax-tex-font/chtml/woff2/mjx-tex-c.woff2 +0 -0
- package/assets/vendor/mathjax-fonts/mathjax-tex-font/chtml/woff2/mjx-tex-cb.woff2 +0 -0
- package/assets/vendor/mathjax-fonts/mathjax-tex-font/chtml/woff2/mjx-tex-f.woff2 +0 -0
- package/assets/vendor/mathjax-fonts/mathjax-tex-font/chtml/woff2/mjx-tex-fb.woff2 +0 -0
- package/assets/vendor/mathjax-fonts/mathjax-tex-font/chtml/woff2/mjx-tex-i.woff2 +0 -0
- package/assets/vendor/mathjax-fonts/mathjax-tex-font/chtml/woff2/mjx-tex-lo.woff2 +0 -0
- package/assets/vendor/mathjax-fonts/mathjax-tex-font/chtml/woff2/mjx-tex-m.woff2 +0 -0
- package/assets/vendor/mathjax-fonts/mathjax-tex-font/chtml/woff2/mjx-tex-mi.woff2 +0 -0
- package/assets/vendor/mathjax-fonts/mathjax-tex-font/chtml/woff2/mjx-tex-n.woff2 +0 -0
- package/assets/vendor/mathjax-fonts/mathjax-tex-font/chtml/woff2/mjx-tex-ob.woff2 +0 -0
- package/assets/vendor/mathjax-fonts/mathjax-tex-font/chtml/woff2/mjx-tex-os.woff2 +0 -0
- package/assets/vendor/mathjax-fonts/mathjax-tex-font/chtml/woff2/mjx-tex-s3.woff2 +0 -0
- package/assets/vendor/mathjax-fonts/mathjax-tex-font/chtml/woff2/mjx-tex-s4.woff2 +0 -0
- package/assets/vendor/mathjax-fonts/mathjax-tex-font/chtml/woff2/mjx-tex-so.woff2 +0 -0
- package/assets/vendor/mathjax-fonts/mathjax-tex-font/chtml/woff2/mjx-tex-ss.woff2 +0 -0
- package/assets/vendor/mathjax-fonts/mathjax-tex-font/chtml/woff2/mjx-tex-ssb.woff2 +0 -0
- package/assets/vendor/mathjax-fonts/mathjax-tex-font/chtml/woff2/mjx-tex-ssi.woff2 +0 -0
- package/assets/vendor/mathjax-fonts/mathjax-tex-font/chtml/woff2/mjx-tex-v.woff2 +0 -0
- package/assets/vendor/mathjax-fonts/mathjax-tex-font/chtml/woff2/mjx-tex-zero.woff2 +0 -0
- package/assets/vendor/mathjax-fonts/mathjax-tex-font/chtml.js +1 -0
- package/assets/vendor/mathjax-fonts/mathjax-tex-font/package.json +88 -0
- package/assets/vendor/paged.polyfill.js +33251 -0
- package/bin/mdpreview.js +8 -0
- package/bin/pageproof.js +8 -0
- package/package.json +42 -0
- package/src/assets.js +246 -0
- package/src/cli.js +166 -0
- package/src/lifecycle.js +445 -0
- package/src/pandoc.js +346 -0
- package/src/server.js +228 -0
- package/src/util.js +43 -0
|
@@ -0,0 +1,404 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
+
<style xmlns="http://purl.org/net/xbiblio/csl" class="note" version="1.0" et-al-min="4" et-al-use-first="1" initialize-with="." demote-non-dropping-particle="sort-only" default-locale="en-GB">
|
|
3
|
+
<info>
|
|
4
|
+
<title>European Journal of International Law</title>
|
|
5
|
+
<title-short>EJIL</title-short>
|
|
6
|
+
<id>http://www.zotero.org/styles/european-journal-of-international-law</id>
|
|
7
|
+
<link href="http://www.zotero.org/styles/european-journal-of-international-law" rel="self"/>
|
|
8
|
+
<link href="http://www.zotero.org/styles/vienna-legal" rel="template"/>
|
|
9
|
+
<link href="https://ejil.org/about/Stylesheet_EJIL_2018.pdf" rel="documentation"/>
|
|
10
|
+
<author>
|
|
11
|
+
<name>Catherine Brendow</name>
|
|
12
|
+
<email>catherine.brendow@graduateinstitute.ch</email>
|
|
13
|
+
</author>
|
|
14
|
+
<contributor>
|
|
15
|
+
<name>Patrick O'Brien</name>
|
|
16
|
+
</contributor>
|
|
17
|
+
<category citation-format="note"/>
|
|
18
|
+
<category field="law"/>
|
|
19
|
+
<issn>0938-5428</issn>
|
|
20
|
+
<summary>Prepared according the style sheet for authors preparing texts for the Collected Courses of the Academy of European Law and/or European Journal of International Law</summary>
|
|
21
|
+
<updated>2025-11-10T11:44:16+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
|
+
<locale xml:lang="en">
|
|
25
|
+
<terms>
|
|
26
|
+
<term name="editor" form="short">
|
|
27
|
+
<single>ed.</single>
|
|
28
|
+
<multiple>eds</multiple>
|
|
29
|
+
</term>
|
|
30
|
+
</terms>
|
|
31
|
+
</locale>
|
|
32
|
+
<macro name="editor">
|
|
33
|
+
<names variable="editor" delimiter=", ">
|
|
34
|
+
<name and="text" delimiter-precedes-last="never" initialize-with=". "/>
|
|
35
|
+
<label form="short" prefix=" (" suffix=")"/>
|
|
36
|
+
</names>
|
|
37
|
+
</macro>
|
|
38
|
+
<macro name="author">
|
|
39
|
+
<names variable="author">
|
|
40
|
+
<name form="short" and="text" delimiter-precedes-last="never" initialize-with="" sort-separator=""/>
|
|
41
|
+
<label form="short" prefix=" (" suffix=")"/>
|
|
42
|
+
<substitute>
|
|
43
|
+
<names variable="editor"/>
|
|
44
|
+
</substitute>
|
|
45
|
+
</names>
|
|
46
|
+
</macro>
|
|
47
|
+
<macro name="author-bibliography">
|
|
48
|
+
<names variable="author">
|
|
49
|
+
<name and="text" delimiter-precedes-last="never" initialize-with="." name-as-sort-order="all" sort-separator=" "/>
|
|
50
|
+
<label form="short" prefix=" (" suffix=")"/>
|
|
51
|
+
<substitute>
|
|
52
|
+
<names variable="editor"/>
|
|
53
|
+
</substitute>
|
|
54
|
+
</names>
|
|
55
|
+
</macro>
|
|
56
|
+
<macro name="author-long">
|
|
57
|
+
<names variable="author">
|
|
58
|
+
<name and="text" delimiter-precedes-last="never" initialize-with=". "/>
|
|
59
|
+
<label form="short" prefix=" (" suffix=")"/>
|
|
60
|
+
<substitute>
|
|
61
|
+
<names variable="editor"/>
|
|
62
|
+
</substitute>
|
|
63
|
+
</names>
|
|
64
|
+
</macro>
|
|
65
|
+
<macro name="edition">
|
|
66
|
+
<choose>
|
|
67
|
+
<if match="any" is-numeric="edition">
|
|
68
|
+
<group delimiter=" ">
|
|
69
|
+
<number variable="edition" form="ordinal"/>
|
|
70
|
+
<label variable="edition" form="short"/>
|
|
71
|
+
</group>
|
|
72
|
+
</if>
|
|
73
|
+
<else>
|
|
74
|
+
<text variable="edition"/>
|
|
75
|
+
</else>
|
|
76
|
+
</choose>
|
|
77
|
+
</macro>
|
|
78
|
+
<macro name="thesis">
|
|
79
|
+
<choose>
|
|
80
|
+
<if type="thesis" match="any">
|
|
81
|
+
<group prefix="(" suffix=")" delimiter=" ">
|
|
82
|
+
<text variable="genre" suffix=" thesis, "/>
|
|
83
|
+
<choose>
|
|
84
|
+
<if variable="URL" match="none">
|
|
85
|
+
<group>
|
|
86
|
+
<text term="available at"/>
|
|
87
|
+
<text variable="publisher" prefix=" "/>
|
|
88
|
+
<text variable="publisher-place" prefix=", "/>
|
|
89
|
+
</group>
|
|
90
|
+
</if>
|
|
91
|
+
<else>
|
|
92
|
+
<group>
|
|
93
|
+
<text macro="publisher" prefix=" "/>
|
|
94
|
+
<text term="available at" prefix="/" suffix=" "/>
|
|
95
|
+
<text variable="URL"/>
|
|
96
|
+
</group>
|
|
97
|
+
</else>
|
|
98
|
+
</choose>
|
|
99
|
+
</group>
|
|
100
|
+
</if>
|
|
101
|
+
</choose>
|
|
102
|
+
</macro>
|
|
103
|
+
<macro name="volume">
|
|
104
|
+
<number suffix=" " variable="number-of-volumes"/>
|
|
105
|
+
<text term="volume" form="short" plural="true" text-case="capitalize-first"/>
|
|
106
|
+
</macro>
|
|
107
|
+
<macro name="URL">
|
|
108
|
+
<choose>
|
|
109
|
+
<if type="legislation bill article-journal" match="none">
|
|
110
|
+
<group delimiter=" ">
|
|
111
|
+
<text term="available at"/>
|
|
112
|
+
<text variable="URL"/>
|
|
113
|
+
</group>
|
|
114
|
+
</if>
|
|
115
|
+
</choose>
|
|
116
|
+
</macro>
|
|
117
|
+
<macro name="locator">
|
|
118
|
+
<choose>
|
|
119
|
+
<if match="any" variable="locator">
|
|
120
|
+
<group delimiter=" ">
|
|
121
|
+
<text term="at"/>
|
|
122
|
+
<text variable="locator"/>
|
|
123
|
+
</group>
|
|
124
|
+
</if>
|
|
125
|
+
</choose>
|
|
126
|
+
</macro>
|
|
127
|
+
<macro name="web">
|
|
128
|
+
<group delimiter=", ">
|
|
129
|
+
<text variable="title" text-case="title" font-style="italic"/>
|
|
130
|
+
<text variable="container-title" text-case="title"/>
|
|
131
|
+
<date form="text" variable="issued"/>
|
|
132
|
+
<text macro="URL"/>
|
|
133
|
+
</group>
|
|
134
|
+
</macro>
|
|
135
|
+
<macro name="publisher">
|
|
136
|
+
<group delimiter=", ">
|
|
137
|
+
<text variable="publisher"/>
|
|
138
|
+
<text variable="publisher-place"/>
|
|
139
|
+
</group>
|
|
140
|
+
</macro>
|
|
141
|
+
<citation collapse="year">
|
|
142
|
+
<sort>
|
|
143
|
+
<key macro="author"/>
|
|
144
|
+
<key variable="issued"/>
|
|
145
|
+
</sort>
|
|
146
|
+
<layout delimiter="; " suffix=".">
|
|
147
|
+
<choose>
|
|
148
|
+
<if position="first">
|
|
149
|
+
<choose>
|
|
150
|
+
<if type="book motion_picture report" match="any">
|
|
151
|
+
<group delimiter=", ">
|
|
152
|
+
<text macro="author-long"/>
|
|
153
|
+
<text variable="authority" prefix=" "/>
|
|
154
|
+
<text variable="title" text-case="title" font-style="italic"/>
|
|
155
|
+
<text variable="genre"/>
|
|
156
|
+
<number variable="number"/>
|
|
157
|
+
<group delimiter=" ">
|
|
158
|
+
<text macro="volume"/>
|
|
159
|
+
<group delimiter=", " prefix="(" suffix=")">
|
|
160
|
+
<text macro="edition"/>
|
|
161
|
+
<date form="text" variable="issued"/>
|
|
162
|
+
</group>
|
|
163
|
+
</group>
|
|
164
|
+
<text macro="URL"/>
|
|
165
|
+
<text macro="locator"/>
|
|
166
|
+
</group>
|
|
167
|
+
</if>
|
|
168
|
+
<else-if type="legal_case" match="any">
|
|
169
|
+
<group delimiter=", ">
|
|
170
|
+
<text macro="author-long"/>
|
|
171
|
+
<text variable="authority" prefix=" "/>
|
|
172
|
+
<text variable="title" text-case="title" font-style="italic"/>
|
|
173
|
+
<text variable="genre"/>
|
|
174
|
+
<number variable="number"/>
|
|
175
|
+
<text macro="volume"/>
|
|
176
|
+
<text macro="edition"/>
|
|
177
|
+
<date form="text" variable="issued"/>
|
|
178
|
+
<text variable="container-title" text-case="title"/>
|
|
179
|
+
<text variable="page-first" prefix=" "/>
|
|
180
|
+
<text macro="URL"/>
|
|
181
|
+
<text macro="locator" prefix=", "/>
|
|
182
|
+
</group>
|
|
183
|
+
</else-if>
|
|
184
|
+
<else-if type="chapter paper-conference" match="any">
|
|
185
|
+
<group delimiter=", ">
|
|
186
|
+
<text macro="author"/>
|
|
187
|
+
<text variable="title" text-case="title" quotes="true"/>
|
|
188
|
+
<group delimiter=" ">
|
|
189
|
+
<text term="in"/>
|
|
190
|
+
<text macro="editor"/>
|
|
191
|
+
<text variable="container-title" text-case="title" font-style="italic"/>
|
|
192
|
+
</group>
|
|
193
|
+
<group delimiter=" ">
|
|
194
|
+
<text term="volume" form="short"/>
|
|
195
|
+
<text variable="volume"/>
|
|
196
|
+
</group>
|
|
197
|
+
<text variable="edition"/>
|
|
198
|
+
<group delimiter=" ">
|
|
199
|
+
<date variable="issued">
|
|
200
|
+
<date-part name="year" prefix="(" suffix=")"/>
|
|
201
|
+
</date>
|
|
202
|
+
<text variable="page-first"/>
|
|
203
|
+
</group>
|
|
204
|
+
<text macro="locator"/>
|
|
205
|
+
</group>
|
|
206
|
+
</else-if>
|
|
207
|
+
<else-if type="article-journal article-magazine interview personal_communication speech" match="any">
|
|
208
|
+
<group delimiter=", ">
|
|
209
|
+
<text macro="author"/>
|
|
210
|
+
<text variable="title" text-case="title" quotes="true"/>
|
|
211
|
+
<group delimiter=" ">
|
|
212
|
+
<text variable="volume"/>
|
|
213
|
+
<text variable="container-title" text-case="title" font-style="italic"/>
|
|
214
|
+
<date variable="issued" prefix="(" suffix=")">
|
|
215
|
+
<date-part name="year"/>
|
|
216
|
+
</date>
|
|
217
|
+
<text variable="page-first"/>
|
|
218
|
+
</group>
|
|
219
|
+
<text variable="edition"/>
|
|
220
|
+
<text macro="URL"/>
|
|
221
|
+
<text macro="locator"/>
|
|
222
|
+
</group>
|
|
223
|
+
</else-if>
|
|
224
|
+
<else-if type="webpage post-weblog post article-newspaper" match="any">
|
|
225
|
+
<group delimiter=", ">
|
|
226
|
+
<text macro="author-long"/>
|
|
227
|
+
<text macro="web"/>
|
|
228
|
+
</group>
|
|
229
|
+
</else-if>
|
|
230
|
+
<else-if type="thesis" match="any">
|
|
231
|
+
<text macro="author-long" suffix=", "/>
|
|
232
|
+
<text variable="title" text-case="title" quotes="true" suffix=" "/>
|
|
233
|
+
<date date-parts="year" form="text" variable="issued" prefix="(" suffix=") "/>
|
|
234
|
+
<text macro="thesis"/>
|
|
235
|
+
<text macro="locator"/>
|
|
236
|
+
</else-if>
|
|
237
|
+
<else>
|
|
238
|
+
<group delimiter=", ">
|
|
239
|
+
<text macro="author-long"/>
|
|
240
|
+
<text variable="title" text-case="title"/>
|
|
241
|
+
<number variable="number"/>
|
|
242
|
+
<group delimiter=", ">
|
|
243
|
+
<text variable="container-title" text-case="title" prefix=" "/>
|
|
244
|
+
<group delimiter=" ">
|
|
245
|
+
<text term="volume" form="short"/>
|
|
246
|
+
<text variable="volume"/>
|
|
247
|
+
</group>
|
|
248
|
+
<text variable="issue"/>
|
|
249
|
+
<date form="text" date-parts="year-month-day" variable="issued"/>
|
|
250
|
+
</group>
|
|
251
|
+
<group>
|
|
252
|
+
<label variable="locator" form="short"/>
|
|
253
|
+
<text variable="locator" prefix=" "/>
|
|
254
|
+
</group>
|
|
255
|
+
</group>
|
|
256
|
+
</else>
|
|
257
|
+
</choose>
|
|
258
|
+
</if>
|
|
259
|
+
<else-if position="ibid-with-locator">
|
|
260
|
+
<group delimiter=", ">
|
|
261
|
+
<text term="ibid" form="long" font-style="italic" text-case="capitalize-first"/>
|
|
262
|
+
<group delimiter=" ">
|
|
263
|
+
<text term="at"/>
|
|
264
|
+
<text variable="locator"/>
|
|
265
|
+
</group>
|
|
266
|
+
</group>
|
|
267
|
+
</else-if>
|
|
268
|
+
<else-if position="ibid">
|
|
269
|
+
<text term="ibid" form="long" font-style="italic" text-case="capitalize-first"/>
|
|
270
|
+
</else-if>
|
|
271
|
+
<else-if position="subsequent">
|
|
272
|
+
<group delimiter=", ">
|
|
273
|
+
<text macro="author"/>
|
|
274
|
+
<group delimiter=" ">
|
|
275
|
+
<text value="supra" font-style="italic"/>
|
|
276
|
+
<text value="note"/>
|
|
277
|
+
<text variable="first-reference-note-number"/>
|
|
278
|
+
</group>
|
|
279
|
+
<group>
|
|
280
|
+
<text term="at" suffix=" "/>
|
|
281
|
+
<text variable="locator"/>
|
|
282
|
+
</group>
|
|
283
|
+
</group>
|
|
284
|
+
</else-if>
|
|
285
|
+
</choose>
|
|
286
|
+
</layout>
|
|
287
|
+
</citation>
|
|
288
|
+
<bibliography hanging-indent="true">
|
|
289
|
+
<sort>
|
|
290
|
+
<key macro="author-bibliography"/>
|
|
291
|
+
<key variable="title"/>
|
|
292
|
+
</sort>
|
|
293
|
+
<layout suffix=".">
|
|
294
|
+
<choose>
|
|
295
|
+
<if type="book report motion_picture" match="any">
|
|
296
|
+
<group delimiter=", ">
|
|
297
|
+
<text variable="authority"/>
|
|
298
|
+
<text macro="author-bibliography"/>
|
|
299
|
+
<text variable="title" text-case="title" font-style="italic"/>
|
|
300
|
+
<text variable="genre"/>
|
|
301
|
+
<number variable="number"/>
|
|
302
|
+
<group delimiter=" ">
|
|
303
|
+
<text macro="volume"/>
|
|
304
|
+
<group delimiter=", " prefix="(" suffix=")">
|
|
305
|
+
<text macro="edition"/>
|
|
306
|
+
<date date-parts="year" form="text" variable="issued"/>
|
|
307
|
+
</group>
|
|
308
|
+
</group>
|
|
309
|
+
<text macro="URL"/>
|
|
310
|
+
</group>
|
|
311
|
+
</if>
|
|
312
|
+
<else-if type="legal_case" match="any">
|
|
313
|
+
<group delimiter=", ">
|
|
314
|
+
<text variable="authority"/>
|
|
315
|
+
<text macro="author-bibliography"/>
|
|
316
|
+
<text variable="title" text-case="title" font-style="italic"/>
|
|
317
|
+
<text variable="genre"/>
|
|
318
|
+
<number variable="number"/>
|
|
319
|
+
<text macro="volume"/>
|
|
320
|
+
<date form="text" variable="issued"/>
|
|
321
|
+
<text variable="container-title" text-case="title"/>
|
|
322
|
+
<text variable="page-first" prefix=" "/>
|
|
323
|
+
<text macro="edition"/>
|
|
324
|
+
<text macro="URL"/>
|
|
325
|
+
</group>
|
|
326
|
+
</else-if>
|
|
327
|
+
<else-if type="chapter paper-conference" match="any">
|
|
328
|
+
<group delimiter=", ">
|
|
329
|
+
<names variable="author">
|
|
330
|
+
<name form="short"/>
|
|
331
|
+
</names>
|
|
332
|
+
<text variable="title" text-case="title" quotes="true"/>
|
|
333
|
+
<group delimiter=" ">
|
|
334
|
+
<text term="in"/>
|
|
335
|
+
<text macro="editor"/>
|
|
336
|
+
</group>
|
|
337
|
+
<group delimiter=" ">
|
|
338
|
+
<text term="volume" form="short"/>
|
|
339
|
+
<text variable="volume"/>
|
|
340
|
+
</group>
|
|
341
|
+
<text variable="edition"/>
|
|
342
|
+
<group delimiter=" ">
|
|
343
|
+
<text variable="container-title" text-case="title" font-style="italic"/>
|
|
344
|
+
<date variable="issued">
|
|
345
|
+
<date-part name="year" prefix="(" suffix=")"/>
|
|
346
|
+
</date>
|
|
347
|
+
<text variable="page-first"/>
|
|
348
|
+
</group>
|
|
349
|
+
</group>
|
|
350
|
+
</else-if>
|
|
351
|
+
<else-if type="article-journal article-magazine article-newspaper interview manuscript map personal_communication speech" match="any">
|
|
352
|
+
<group delimiter=", ">
|
|
353
|
+
<names variable="author">
|
|
354
|
+
<name form="short" and="text"/>
|
|
355
|
+
</names>
|
|
356
|
+
<text variable="title" text-case="title" quotes="true"/>
|
|
357
|
+
<group delimiter=" ">
|
|
358
|
+
<text variable="volume"/>
|
|
359
|
+
<text variable="container-title" text-case="title" font-style="italic"/>
|
|
360
|
+
<date variable="issued" prefix="(" suffix=")">
|
|
361
|
+
<date-part name="year"/>
|
|
362
|
+
</date>
|
|
363
|
+
<text variable="page-first"/>
|
|
364
|
+
</group>
|
|
365
|
+
<text variable="edition"/>
|
|
366
|
+
<text macro="URL"/>
|
|
367
|
+
</group>
|
|
368
|
+
</else-if>
|
|
369
|
+
<else-if type="webpage post-weblog post" match="any">
|
|
370
|
+
<group delimiter=", ">
|
|
371
|
+
<text macro="author-bibliography"/>
|
|
372
|
+
<text macro="web"/>
|
|
373
|
+
</group>
|
|
374
|
+
</else-if>
|
|
375
|
+
<else-if type="thesis" match="any">
|
|
376
|
+
<group delimiter=", ">
|
|
377
|
+
<text macro="author-bibliography"/>
|
|
378
|
+
<group delimiter=" ">
|
|
379
|
+
<text variable="title" text-case="title" quotes="true"/>
|
|
380
|
+
<date date-parts="year" form="text" variable="issued" prefix="(" suffix=")"/>
|
|
381
|
+
<text macro="thesis"/>
|
|
382
|
+
</group>
|
|
383
|
+
</group>
|
|
384
|
+
</else-if>
|
|
385
|
+
<else>
|
|
386
|
+
<group delimiter=", ">
|
|
387
|
+
<text macro="author-bibliography"/>
|
|
388
|
+
<text variable="title" text-case="title"/>
|
|
389
|
+
<number variable="number"/>
|
|
390
|
+
<group delimiter=", ">
|
|
391
|
+
<text variable="container-title" text-case="title"/>
|
|
392
|
+
<group delimiter=" ">
|
|
393
|
+
<text term="volume" form="short"/>
|
|
394
|
+
<text variable="volume"/>
|
|
395
|
+
</group>
|
|
396
|
+
<text variable="issue"/>
|
|
397
|
+
<date form="text" date-parts="year-month-day" variable="issued"/>
|
|
398
|
+
</group>
|
|
399
|
+
</group>
|
|
400
|
+
</else>
|
|
401
|
+
</choose>
|
|
402
|
+
</layout>
|
|
403
|
+
</bibliography>
|
|
404
|
+
</style>
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64" role="img" aria-label="mdpreview">
|
|
2
|
+
<rect width="64" height="64" rx="10" fill="#3f3f3f"/>
|
|
3
|
+
<rect x="18" y="-10" width="28" height="34" rx="2" fill="#f7f7f2"/>
|
|
4
|
+
<rect x="18" y="40" width="28" height="34" rx="2" fill="#f7f7f2"/>
|
|
5
|
+
</svg>
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
local metadata_footnote_class = 'mdpreview-metadata-footnote'
|
|
2
|
+
|
|
3
|
+
local function has_class(attr, class)
|
|
4
|
+
for _, value in ipairs(attr.classes) do
|
|
5
|
+
if value == class then
|
|
6
|
+
return true
|
|
7
|
+
end
|
|
8
|
+
end
|
|
9
|
+
return false
|
|
10
|
+
end
|
|
11
|
+
|
|
12
|
+
local function add_class(attr, class)
|
|
13
|
+
if not has_class(attr, class) then
|
|
14
|
+
table.insert(attr.classes, class)
|
|
15
|
+
end
|
|
16
|
+
return attr
|
|
17
|
+
end
|
|
18
|
+
|
|
19
|
+
function Note(note)
|
|
20
|
+
return pandoc.Span(pandoc.utils.blocks_to_inlines(note.content), pandoc.Attr('', {'footnote'}))
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
function Meta(meta)
|
|
24
|
+
local function mark_metadata_note(span)
|
|
25
|
+
if has_class(span.attr, 'footnote') then
|
|
26
|
+
span.attr = add_class(span.attr, metadata_footnote_class)
|
|
27
|
+
return span
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
|
|
31
|
+
local function mark_metadata_value(value)
|
|
32
|
+
if type(value) ~= 'table' then
|
|
33
|
+
return value
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
if type(value.walk) == 'function' then
|
|
37
|
+
return value:walk({ Span = mark_metadata_note })
|
|
38
|
+
end
|
|
39
|
+
|
|
40
|
+
if pandoc.utils.type(value) == 'List' then
|
|
41
|
+
for index, item in ipairs(value) do
|
|
42
|
+
value[index] = mark_metadata_value(item)
|
|
43
|
+
end
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
return value
|
|
47
|
+
end
|
|
48
|
+
|
|
49
|
+
for _, key in ipairs({ 'title', 'author', 'date' }) do
|
|
50
|
+
if meta[key] then
|
|
51
|
+
meta[key] = mark_metadata_value(meta[key])
|
|
52
|
+
end
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
return meta
|
|
56
|
+
end
|
package/assets/latex.css
ADDED
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
/* mdpreview-style: LaTeX-like document theme with Computer Modern-style typography. */
|
|
2
|
+
:root {
|
|
3
|
+
color: black;
|
|
4
|
+
font-family: "MJX-TEX-N", "MJXTEX", "CMU Serif", "Computer Modern Serif",
|
|
5
|
+
"Computer Modern Roman", "Latin Modern Roman", "Latin Modern Roman 10",
|
|
6
|
+
"CMR10", "STIX Two Text", "STIXGeneral", "Times New Roman", serif;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
header {
|
|
10
|
+
margin: 0 0 24pt;
|
|
11
|
+
text-align: center;
|
|
12
|
+
break-after: avoid;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
header .document-title {
|
|
16
|
+
margin: 0 0 12pt;
|
|
17
|
+
font-family: inherit;
|
|
18
|
+
font-size: 22pt;
|
|
19
|
+
font-weight: normal;
|
|
20
|
+
line-height: 1.2;
|
|
21
|
+
color: black;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
header .document-author,
|
|
25
|
+
header .document-date {
|
|
26
|
+
margin: 0 0 6pt;
|
|
27
|
+
font-size: 10pt;
|
|
28
|
+
line-height: 1.2;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
html {
|
|
32
|
+
font-size: 10pt;
|
|
33
|
+
line-height: 1.2;
|
|
34
|
+
font-family: "MJX-TEX-N", "MJXTEX", "CMU Serif", "Computer Modern Serif",
|
|
35
|
+
"Computer Modern Roman", "Latin Modern Roman", "Latin Modern Roman 10",
|
|
36
|
+
"CMR10", "STIX Two Text", "STIXGeneral", "Times New Roman", serif;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
h1,
|
|
40
|
+
h2,
|
|
41
|
+
h3 {
|
|
42
|
+
margin: 0;
|
|
43
|
+
padding-top: 0;
|
|
44
|
+
font-family: inherit;
|
|
45
|
+
font-weight: bold;
|
|
46
|
+
line-height: 1.2;
|
|
47
|
+
color: black;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
h1 {
|
|
51
|
+
margin: 18pt 0 10pt;
|
|
52
|
+
font-size: 14.4pt;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
h2 {
|
|
56
|
+
margin: 16pt 0 8pt;
|
|
57
|
+
font-size: 12pt;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
h3 {
|
|
61
|
+
margin: 14pt 0 6pt;
|
|
62
|
+
font-size: 10pt;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
p {
|
|
66
|
+
margin: 0;
|
|
67
|
+
text-indent: 15pt;
|
|
68
|
+
text-align: justify;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
header + p,
|
|
72
|
+
h1 + p,
|
|
73
|
+
h2 + p,
|
|
74
|
+
h3 + p,
|
|
75
|
+
blockquote p,
|
|
76
|
+
li p {
|
|
77
|
+
text-indent: 0;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
blockquote {
|
|
81
|
+
margin: 8pt 24pt;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
ol,
|
|
85
|
+
ul {
|
|
86
|
+
margin-top: 8pt;
|
|
87
|
+
margin-bottom: 8pt;
|
|
88
|
+
padding-left: 24pt;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
li {
|
|
92
|
+
margin-bottom: 0;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
table {
|
|
96
|
+
margin: 12pt auto;
|
|
97
|
+
border-collapse: collapse;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
caption {
|
|
101
|
+
margin-bottom: 6pt;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
th,
|
|
105
|
+
td {
|
|
106
|
+
padding: 2pt 6pt;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
th {
|
|
110
|
+
font-weight: bold;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
code,
|
|
114
|
+
pre {
|
|
115
|
+
font-family: "CMU Typewriter Text", "Latin Modern Mono", "Courier New",
|
|
116
|
+
monospace;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
pre {
|
|
120
|
+
margin: 8pt 0;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
@page {
|
|
124
|
+
@bottom-center {
|
|
125
|
+
font-family: "MJX-TEX-N", "MJXTEX", "CMU Serif", "Computer Modern Serif",
|
|
126
|
+
"Computer Modern Roman", "Latin Modern Roman", "Latin Modern Roman 10",
|
|
127
|
+
"CMR10", "STIX Two Text", "STIXGeneral", "Times New Roman", serif;
|
|
128
|
+
font-size: 10pt;
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.footnote {
|
|
133
|
+
font-size: 8pt;
|
|
134
|
+
line-height: 1.15;
|
|
135
|
+
padding: 0.15em 0;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
.csl-entry {
|
|
139
|
+
margin-bottom: 0;
|
|
140
|
+
text-indent: -15pt;
|
|
141
|
+
padding-left: 15pt;
|
|
142
|
+
}
|