summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2020-12-17 23:50:10 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2020-12-17 23:50:10 -0800
commitec3c244381ad767c2c8ac9e4328e8c8ea2406ffa (patch)
treea116e5bde6395f0084d2adc8d950b1238c856eea
parentea3841573fe83d8e101d70cbd78a1d6aa4bd6a21 (diff)
downloadpandoc-templates-ec3c244381ad767c2c8ac9e4328e8c8ea2406ffa.tar.gz
pandoc-templates-ec3c244381ad767c2c8ac9e4328e8c8ea2406ffa.zip
Updated templates for pandoc 2.11.3
-rw-r--r--affiliations.jats38
-rw-r--r--article.jats_publishing7
-rw-r--r--default.epub22
-rw-r--r--default.epub32
-rw-r--r--default.jats_articleauthoring7
-rw-r--r--default.latex14
6 files changed, 57 insertions, 13 deletions
diff --git a/affiliations.jats b/affiliations.jats
new file mode 100644
index 0000000..93238d2
--- /dev/null
+++ b/affiliations.jats
@@ -0,0 +1,38 @@
1$--
2$-- Affiliations
3$--
4$for(affiliation)$
5<aff id="aff-$affiliation.id$">
6$-- wrap affiliation if it has a known institution identifier
7$if(affiliation.group)$
8<institution content-type="group">$affiliation.group$</institution>
9$endif$
10$if(affiliation.department)$
11<institution content-type="dept">$affiliation.department$</institution>
12$endif$
13<institution-wrap>
14$if(affiliation.organization)$
15<institution>$affiliation.organization$</institution>
16$else$
17<institution>$affiliation.name$</institution>
18$endif$
19$if(affiliation.isni)$
20<institution-id institution-id-type="ISNI">$affiliation.isni$</institution-id>
21$endif$
22$if(affiliation.ringgold)$
23<institution-id institution-id-type="Ringgold">$affiliation.ringgold$</institution-id>
24$endif$
25$if(affiliation.ror)$
26<institution-id institution-id-type="ROR">$affiliation.ror$</institution-id>
27$endif$
28$for(affiliation.pid)$
29<institution-id institution-id-type="$affiliation.pid.type$">$affiliation.pid.id$</institution-id>
30$endfor$
31</institution-wrap>$if(affiliation.street-address)$,
32$for(affiliation.street-address)$
33<addr-line>$affiliation.street-address$</addr-line>$sep$,
34$endfor$
35$else$$if(affiliation.city)$, <city>$affiliation.city$</city>$endif$$endif$$if(affiliation.country)$,
36<country$if(affiliation.country-code)$ country="$affiliation.country-code$"$endif$>$affiliation.country$</country>$endif$
37</aff>
38$endfor$
diff --git a/article.jats_publishing b/article.jats_publishing
index b64425f..4bdb3f2 100644
--- a/article.jats_publishing
+++ b/article.jats_publishing
@@ -101,14 +101,15 @@ $endif$
101$if(author.email)$ 101$if(author.email)$
102<email>$author.email$</email> 102<email>$author.email$</email>
103$endif$ 103$endif$
104$if(author.aff-id)$ 104$for(author.affiliation)$
105<xref ref-type="aff" rid="aff-$contrib.aff-id$"/> 105<xref ref-type="aff" rid="aff-$author.affiliation$"/>
106$endif$ 106$endfor$
107$if(author.cor-id)$ 107$if(author.cor-id)$
108<xref ref-type="corresp" rid="cor-$author.cor-id$"><sup>*</sup></xref> 108<xref ref-type="corresp" rid="cor-$author.cor-id$"><sup>*</sup></xref>
109$endif$ 109$endif$
110</contrib> 110</contrib>
111$endfor$ 111$endfor$
112${ affiliations.jats() }
112</contrib-group> 113</contrib-group>
113$endif$ 114$endif$
114$if(article.author-notes)$ 115$if(article.author-notes)$
diff --git a/default.epub2 b/default.epub2
index f440134..685d102 100644
--- a/default.epub2
+++ b/default.epub2
@@ -48,7 +48,7 @@ $endif$
48$else$ 48$else$
49$if(coverpage)$ 49$if(coverpage)$
50<div id="cover-image"> 50<div id="cover-image">
51<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="100%" height="100%" viewBox="0 0 $cover-image-width$ $cover-image-height$" preserveAspectRatio="none"> 51<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="100%" height="100%" viewBox="0 0 $cover-image-width$ $cover-image-height$" preserveAspectRatio="xMidYMid">
52<image width="$cover-image-width$" height="$cover-image-height$" xlink:href="../media/$cover-image$" /> 52<image width="$cover-image-width$" height="$cover-image-height$" xlink:href="../media/$cover-image$" />
53</svg> 53</svg>
54</div> 54</div>
diff --git a/default.epub3 b/default.epub3
index 4f5bd66..fc4fa76 100644
--- a/default.epub3
+++ b/default.epub3
@@ -49,7 +49,7 @@ $endif$
49$else$ 49$else$
50$if(coverpage)$ 50$if(coverpage)$
51<div id="cover-image"> 51<div id="cover-image">
52<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="100%" height="100%" viewBox="0 0 $cover-image-width$ $cover-image-height$" preserveAspectRatio="none"> 52<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="100%" height="100%" viewBox="0 0 $cover-image-width$ $cover-image-height$" preserveAspectRatio="xMidYMid">
53<image width="$cover-image-width$" height="$cover-image-height$" xlink:href="../media/$cover-image$" /> 53<image width="$cover-image-width$" height="$cover-image-height$" xlink:href="../media/$cover-image$" />
54</svg> 54</svg>
55</div> 55</div>
diff --git a/default.jats_articleauthoring b/default.jats_articleauthoring
index f86bb2d..94c9295 100644
--- a/default.jats_articleauthoring
+++ b/default.jats_articleauthoring
@@ -34,14 +34,15 @@ $endif$
34$if(author.email)$ 34$if(author.email)$
35<email>$author.email$</email> 35<email>$author.email$</email>
36$endif$ 36$endif$
37$if(author.aff-id)$ 37$for(author.affiliation)$
38<xref ref-type="aff" rid="aff-$contrib.aff-id$"/> 38<xref ref-type="aff" rid="aff-$author.affiliation$"/>
39$endif$ 39$endfor$
40$if(author.cor-id)$ 40$if(author.cor-id)$
41<xref ref-type="corresp" rid="cor-$author.cor-id$"><sup>*</sup></xref> 41<xref ref-type="corresp" rid="cor-$author.cor-id$"><sup>*</sup></xref>
42$endif$ 42$endif$
43</contrib> 43</contrib>
44$endfor$ 44$endfor$
45${ affiliations.jats() }
45</contrib-group> 46</contrib-group>
46$endif$ 47$endif$
47$if(copyright)$ 48$if(copyright)$
diff --git a/default.latex b/default.latex
index aad9ee3..1696615 100644
--- a/default.latex
+++ b/default.latex
@@ -89,6 +89,7 @@ $endif$
89$if(beamerarticle)$ 89$if(beamerarticle)$
90\usepackage{beamerarticle} % needs to be loaded first 90\usepackage{beamerarticle} % needs to be loaded first
91$endif$ 91$endif$
92\usepackage{amsmath,amssymb}
92$if(fontfamily)$ 93$if(fontfamily)$
93\usepackage[$for(fontfamilyoptions)$$fontfamilyoptions$$sep$,$endfor$]{$fontfamily$} 94\usepackage[$for(fontfamilyoptions)$$fontfamilyoptions$$sep$,$endfor$]{$fontfamily$}
94$else$ 95$else$
@@ -97,17 +98,14 @@ $endif$
97$if(linestretch)$ 98$if(linestretch)$
98\usepackage{setspace} 99\usepackage{setspace}
99$endif$ 100$endif$
100\usepackage{amsmath}
101\usepackage{ifxetex,ifluatex} 101\usepackage{ifxetex,ifluatex}
102\ifnum 0\ifxetex 1\fi\ifluatex 1\fi=0 % if pdftex 102\ifnum 0\ifxetex 1\fi\ifluatex 1\fi=0 % if pdftex
103 \usepackage[$if(fontenc)$$fontenc$$else$T1$endif$]{fontenc} 103 \usepackage[$if(fontenc)$$fontenc$$else$T1$endif$]{fontenc}
104 \usepackage[utf8]{inputenc} 104 \usepackage[utf8]{inputenc}
105 \usepackage{textcomp} % provide euro and other symbols 105 \usepackage{textcomp} % provide euro and other symbols
106 \usepackage{amssymb}
107\else % if luatex or xetex 106\else % if luatex or xetex
108$if(mathspec)$ 107$if(mathspec)$
109 \ifxetex 108 \ifxetex
110 \usepackage{amssymb}
111 \usepackage{mathspec} 109 \usepackage{mathspec}
112 \else 110 \else
113 \usepackage{unicode-math} 111 \usepackage{unicode-math}
@@ -256,7 +254,7 @@ $if(highlighting-macros)$
256$highlighting-macros$ 254$highlighting-macros$
257$endif$ 255$endif$
258$if(tables)$ 256$if(tables)$
259\usepackage{longtable,booktabs} 257\usepackage{longtable,booktabs,array}
260\usepackage{calc} % for calculating minipage widths 258\usepackage{calc} % for calculating minipage widths
261$if(beamer)$ 259$if(beamer)$
262\usepackage{caption} 260\usepackage{caption}
@@ -336,7 +334,10 @@ $for(polyglossia-otherlangs)$
336 \setotherlanguage[$for(polyglossia-otherlangs.options)$$polyglossia-otherlangs.options$$sep$,$endfor$]{$polyglossia-otherlangs.name$} 334 \setotherlanguage[$for(polyglossia-otherlangs.options)$$polyglossia-otherlangs.options$$sep$,$endfor$]{$polyglossia-otherlangs.name$}
337$endfor$ 335$endfor$
338\else 336\else
339 \usepackage[shorthands=off,$for(babel-otherlangs)$$babel-otherlangs$,$endfor$main=$babel-lang$]{babel} 337 \usepackage[$for(babel-otherlangs)$$babel-otherlangs$,$endfor$main=$babel-lang$]{babel}
338% get rid of language-specific shorthands (see #6817):
339\let\LanguageShortHands\languageshorthands
340\def\languageshorthands#1{}
340$if(babel-newcommands)$ 341$if(babel-newcommands)$
341 $babel-newcommands$ 342 $babel-newcommands$
342$endif$ 343$endif$
@@ -390,6 +391,9 @@ $if(csl-refs)$
390\newcommand{\CSLRightInline}[1]{\parbox[t]{\linewidth - \csllabelwidth}{#1}\break} 391\newcommand{\CSLRightInline}[1]{\parbox[t]{\linewidth - \csllabelwidth}{#1}\break}
391\newcommand{\CSLIndent}[1]{\hspace{\cslhangindent}#1} 392\newcommand{\CSLIndent}[1]{\hspace{\cslhangindent}#1}
392$endif$ 393$endif$
394$if(csquotes)$
395\usepackage{csquotes}
396$endif$
393 397
394$if(title)$ 398$if(title)$
395\title{$title$$if(thanks)$\thanks{$thanks$}$endif$} 399\title{$title$$if(thanks)$\thanks{$thanks$}$endif$}