summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2021-05-28 22:06:39 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2021-05-28 22:06:39 -0700
commit614de9963564f1201c52ae586122b30ee58c330e (patch)
tree9763b02bb863ee166044b51aba1355728f4c39e6
parent24030660f1d17272cadfa62497be182996e2fbe2 (diff)
downloadpandoc-templates-614de9963564f1201c52ae586122b30ee58c330e.tar.gz
pandoc-templates-614de9963564f1201c52ae586122b30ee58c330e.zip
Updated templates for pandoc 2.14
-rw-r--r--default.context10
-rw-r--r--default.dzslides2
-rw-r--r--default.latex132
-rw-r--r--default.revealjs16
-rw-r--r--default.s53
-rw-r--r--default.slideous7
-rw-r--r--default.slidy5
7 files changed, 112 insertions, 63 deletions
diff --git a/default.context b/default.context
index 1588406..df39130 100644
--- a/default.context
+++ b/default.context
@@ -51,6 +51,7 @@ $endif$
51 51
52% use microtypography 52% use microtypography
53\definefontfeature[default][default][script=latn, protrusion=quality, expansion=quality, itlc=yes, textitalics=yes, onum=yes, pnum=yes] 53\definefontfeature[default][default][script=latn, protrusion=quality, expansion=quality, itlc=yes, textitalics=yes, onum=yes, pnum=yes]
54\definefontfeature[default:tnum][default][tnum=yes, pnum=no]
54\definefontfeature[smallcaps][script=latn, protrusion=quality, expansion=quality, smcp=yes, onum=yes, pnum=yes] 55\definefontfeature[smallcaps][script=latn, protrusion=quality, expansion=quality, smcp=yes, onum=yes, pnum=yes]
55\setupalign[hz,hanging] 56\setupalign[hz,hanging]
56\setupitaliccorrection[global, always] 57\setupitaliccorrection[global, always]
@@ -97,6 +98,9 @@ $endif$
97\setupitemize[autointro] % prevent orphan list intro 98\setupitemize[autointro] % prevent orphan list intro
98\setupitemize[indentnext=no] 99\setupitemize[indentnext=no]
99 100
101\defineitemgroup[enumerate]
102\setupenumerate[each][fit][itemalign=left,distance=.5em,style={\feature[+][default:tnum]}]
103
100\setupfloat[figure][default={here,nonumber}] 104\setupfloat[figure][default={here,nonumber}]
101\setupfloat[table][default={here,nonumber}] 105\setupfloat[table][default={here,nonumber}]
102 106
@@ -160,12 +164,12 @@ $endfor$
160$if(toc)$ 164$if(toc)$
161\completecontent 165\completecontent
162$endif$ 166$endif$
163$if(lot)$
164\completelistoftables
165$endif$
166$if(lof)$ 167$if(lof)$
167\completelistoffigures 168\completelistoffigures
168$endif$ 169$endif$
170$if(lot)$
171\completelistoftables
172$endif$
169 173
170$body$ 174$body$
171 175
diff --git a/default.dzslides b/default.dzslides
index 11103ab..5e2749b 100644
--- a/default.dzslides
+++ b/default.dzslides
@@ -171,7 +171,7 @@ $if(subtitle)$
171 <h1 class="subtitle">$subtitle$</h1> 171 <h1 class="subtitle">$subtitle$</h1>
172$endif$ 172$endif$
173 <footer> 173 <footer>
174 $if(author)$<span class="author">$for(author)$$author$$sep$, $endfor$</span>$endif$ · $if(date)$<span class="date">$date$</span>$endif$ 174 $if(author)$<span class="author">$for(author)$$author$$sep$, $endfor$</span> · $endif$$if(institute)$<span class="institute">$for(institute)$$institute$$sep$, $endfor$</span> · $endif$$if(date)$<span class="date">$date$</span>$endif$
175 </footer> 175 </footer>
176</section> 176</section>
177$endif$ 177$endif$
diff --git a/default.latex b/default.latex
index 830bf80..60f9972 100644
--- a/default.latex
+++ b/default.latex
@@ -2,7 +2,7 @@
2\PassOptionsToPackage{unicode$for(hyperrefoptions)$,$hyperrefoptions$$endfor$}{hyperref} 2\PassOptionsToPackage{unicode$for(hyperrefoptions)$,$hyperrefoptions$$endfor$}{hyperref}
3\PassOptionsToPackage{hyphens}{url} 3\PassOptionsToPackage{hyphens}{url}
4$if(colorlinks)$ 4$if(colorlinks)$
5\PassOptionsToPackage{dvipsnames,svgnames*,x11names*}{xcolor} 5\PassOptionsToPackage{dvipsnames,svgnames,x11names}{xcolor}
6$endif$ 6$endif$
7$if(dir)$ 7$if(dir)$
8$if(latex-dir-rtl)$ 8$if(latex-dir-rtl)$
@@ -36,6 +36,35 @@ $for(classoption)$
36 $classoption$$sep$, 36 $classoption$$sep$,
37$endfor$ 37$endfor$
38]{$documentclass$} 38]{$documentclass$}
39$if(title)$
40\title{$title$$if(thanks)$\thanks{$thanks$}$endif$}
41$endif$
42$if(subtitle)$
43$if(beamer)$
44$else$
45\usepackage{etoolbox}
46\makeatletter
47\providecommand{\subtitle}[1]{% add subtitle to \maketitle
48 \apptocmd{\@title}{\par {\large #1 \par}}{}{}
49}
50\makeatother
51$endif$
52\subtitle{$subtitle$}
53$endif$
54\author{$for(author)$$author$$sep$ \and $endfor$}
55\date{$date$}
56$if(beamer)$
57$if(institute)$
58\institute{$for(institute)$$institute$$sep$ \and $endfor$}
59$endif$
60$if(titlegraphic)$
61\titlegraphic{\includegraphics{$titlegraphic$}}
62$endif$
63$if(logo)$
64\logo{\includegraphics{$logo$}}
65$endif$
66$endif$
67
39$if(beamer)$ 68$if(beamer)$
40$if(background-image)$ 69$if(background-image)$
41\usebackgroundtemplate{% 70\usebackgroundtemplate{%
@@ -156,6 +185,25 @@ $if(CJKmainfont)$
156 \fi 185 \fi
157$endif$ 186$endif$
158\fi 187\fi
188$if(zero-width-non-joiner)$
189%% Support for zero-width non-joiner characters.
190\makeatletter
191\def\zerowidthnonjoiner{%
192 % Prevent ligatures and adjust kerning, but still support hyphenating.
193 \texorpdfstring{%
194 \textormath{\nobreak\discretionary{-}{}{\kern.03em}%
195 \ifvmode\else\nobreak\hskip\z@skip\fi}{}%
196 }{}%
197}
198\makeatother
199\ifPDFTeX
200 \DeclareUnicodeCharacter{200C}{\zerowidthnonjoiner}
201\else
202 \catcode`^^^^200c=\active
203 \protected\def ^^^^200c{\zerowidthnonjoiner}
204\fi
205%% End of ZWNJ support
206$endif$
159$if(beamer)$ 207$if(beamer)$
160$if(theme)$ 208$if(theme)$
161\usetheme[$for(themeoptions)$$themeoptions$$sep$,$endfor$]{$theme$} 209\usetheme[$for(themeoptions)$$themeoptions$$sep$,$endfor$]{$theme$}
@@ -325,6 +373,31 @@ $endif$
325$if(pagestyle)$ 373$if(pagestyle)$
326\pagestyle{$pagestyle$} 374\pagestyle{$pagestyle$}
327$endif$ 375$endif$
376$if(csl-refs)$
377\newlength{\cslhangindent}
378\setlength{\cslhangindent}{1.5em}
379\newlength{\csllabelwidth}
380\setlength{\csllabelwidth}{3em}
381\newlength{\cslentryspacingunit} % times entry-spacing
382\setlength{\cslentryspacingunit}{\parskip}
383\newenvironment{CSLReferences}[2] % #1 hanging-ident, #2 entry spacing
384 {% don't indent paragraphs
385 \setlength{\parindent}{0pt}
386 % turn on hanging indent if param 1 is 1
387 \ifodd #1
388 \let\oldpar\par
389 \def\par{\hangindent=\cslhangindent\oldpar}
390 \fi
391 % set entry spacing
392 \setlength{\parskip}{#2\cslentryspacingunit}
393 }%
394 {}
395\usepackage{calc}
396\newcommand{\CSLBlock}[1]{#1\hfill\break}
397\newcommand{\CSLLeftMargin}[1]{\parbox[t]{\csllabelwidth}{#1}}
398\newcommand{\CSLRightInline}[1]{\parbox[t]{\linewidth - \csllabelwidth}{#1}\break}
399\newcommand{\CSLIndent}[1]{\hspace{\cslhangindent}#1}
400$endif$
328$for(header-includes)$ 401$for(header-includes)$
329$header-includes$ 402$header-includes$
330$endfor$ 403$endfor$
@@ -375,61 +448,10 @@ $endif$
375$if(nocite-ids)$ 448$if(nocite-ids)$
376\nocite{$for(nocite-ids)$$it$$sep$, $endfor$} 449\nocite{$for(nocite-ids)$$it$$sep$, $endfor$}
377$endif$ 450$endif$
378$if(csl-refs)$
379\newlength{\cslhangindent}
380\setlength{\cslhangindent}{1.5em}
381\newlength{\csllabelwidth}
382\setlength{\csllabelwidth}{3em}
383\newenvironment{CSLReferences}[2] % #1 hanging-ident, #2 entry spacing
384 {% don't indent paragraphs
385 \setlength{\parindent}{0pt}
386 % turn on hanging indent if param 1 is 1
387 \ifodd #1 \everypar{\setlength{\hangindent}{\cslhangindent}}\ignorespaces\fi
388 % set entry spacing
389 \ifnum #2 > 0
390 \setlength{\parskip}{#2\baselineskip}
391 \fi
392 }%
393 {}
394\usepackage{calc}
395\newcommand{\CSLBlock}[1]{#1\hfill\break}
396\newcommand{\CSLLeftMargin}[1]{\parbox[t]{\csllabelwidth}{#1}}
397\newcommand{\CSLRightInline}[1]{\parbox[t]{\linewidth - \csllabelwidth}{#1}\break}
398\newcommand{\CSLIndent}[1]{\hspace{\cslhangindent}#1}
399$endif$
400$if(csquotes)$ 451$if(csquotes)$
401\usepackage{csquotes} 452\usepackage{csquotes}
402$endif$ 453$endif$
403 454
404$if(title)$
405\title{$title$$if(thanks)$\thanks{$thanks$}$endif$}
406$endif$
407$if(subtitle)$
408$if(beamer)$
409$else$
410\usepackage{etoolbox}
411\makeatletter
412\providecommand{\subtitle}[1]{% add subtitle to \maketitle
413 \apptocmd{\@title}{\par {\large #1 \par}}{}{}
414}
415\makeatother
416$endif$
417\subtitle{$subtitle$}
418$endif$
419\author{$for(author)$$author$$sep$ \and $endfor$}
420\date{$date$}
421$if(beamer)$
422$if(institute)$
423\institute{$for(institute)$$institute$$sep$ \and $endfor$}
424$endif$
425$if(titlegraphic)$
426\titlegraphic{\includegraphics{$titlegraphic$}}
427$endif$
428$if(logo)$
429\logo{\includegraphics{$logo$}}
430$endif$
431$endif$
432
433\begin{document} 455\begin{document}
434$if(has-frontmatter)$ 456$if(has-frontmatter)$
435\frontmatter 457\frontmatter
@@ -472,12 +494,12 @@ $endif$
472} 494}
473$endif$ 495$endif$
474$endif$ 496$endif$
475$if(lot)$
476\listoftables
477$endif$
478$if(lof)$ 497$if(lof)$
479\listoffigures 498\listoffigures
480$endif$ 499$endif$
500$if(lot)$
501\listoftables
502$endif$
481$if(linestretch)$ 503$if(linestretch)$
482\setstretch{$linestretch$} 504\setstretch{$linestretch$}
483$endif$ 505$endif$
diff --git a/default.revealjs b/default.revealjs
index e6d6939..8a77674 100644
--- a/default.revealjs
+++ b/default.revealjs
@@ -52,6 +52,9 @@ $endif$
52$for(author)$ 52$for(author)$
53 <p class="author">$author$</p> 53 <p class="author">$author$</p>
54$endfor$ 54$endfor$
55$for(institute)$
56 <p class="institute">$institute$</p>
57$endfor$
55$if(date)$ 58$if(date)$
56 <p class="date">$date$</p> 59 <p class="date">$date$</p>
57$endif$ 60$endif$
@@ -59,7 +62,12 @@ $endif$
59$endif$ 62$endif$
60$if(toc)$ 63$if(toc)$
61<section id="$idprefix$TOC"> 64<section id="$idprefix$TOC">
65<nav role="doc-toc">
66$if(toc-title)$
67<h2 id="$idprefix$toc-title">$toc-title$</h2>
68$endif$
62$table-of-contents$ 69$table-of-contents$
70</nav>
63</section> 71</section>
64$endif$ 72$endif$
65 73
@@ -116,17 +124,17 @@ $if(showSlideNumber)$
116 // 'all', 'print', or 'speaker' 124 // 'all', 'print', or 'speaker'
117 showSlideNumber: '$showSlideNumber$', 125 showSlideNumber: '$showSlideNumber$',
118$endif$ 126$endif$
119$if(hash)$
120 // Add the current slide number to the URL hash so that reloading the 127 // Add the current slide number to the URL hash so that reloading the
121 // page/copying the URL will return you to the same slide 128 // page/copying the URL will return you to the same slide
122 hash: $hash$, 129 hash: $if(hash)$$hash$$else$true$endif$,
123$endif$
124$if(hashOneBasedIndex)$ 130$if(hashOneBasedIndex)$
125 // Start with 1 for the hash rather than 0 131 // Start with 1 for the hash rather than 0
126 hashOneBasedIndex: $hashOneBasedIndex$, 132 hashOneBasedIndex: $hashOneBasedIndex$,
127$endif$ 133$endif$
134$if(history)$
128 // Push each slide change to the browser history 135 // Push each slide change to the browser history
129 history: $if(history)$$history$$else$true$endif$, 136 history: $history$,
137$endif$
130$if(keyboard)$ 138$if(keyboard)$
131 // Enable keyboard shortcuts for navigation 139 // Enable keyboard shortcuts for navigation
132 keyboard: $keyboard$, 140 keyboard: $keyboard$,
diff --git a/default.s5 b/default.s5
index d761112..27e681f 100644
--- a/default.s5
+++ b/default.s5
@@ -61,6 +61,9 @@ $endif$
61$if(author)$ 61$if(author)$
62 <h3 class="author">$for(author)$$author$$sep$<br/>$endfor$</h3> 62 <h3 class="author">$for(author)$$author$$sep$<br/>$endfor$</h3>
63$endif$ 63$endif$
64$if(institute)$
65 <h3 class="institute">$for(institute)$$institute$$sep$<br/>$endfor$</h3>
66$endif$
64$if(date)$ 67$if(date)$
65 <h4 class="date">$date$</h4> 68 <h4 class="date">$date$</h4>
66$endif$ 69$endif$
diff --git a/default.slideous b/default.slideous
index ebf582d..70d144b 100644
--- a/default.slideous
+++ b/default.slideous
@@ -63,9 +63,16 @@ $if(title)$
63$if(subtitle)$ 63$if(subtitle)$
64 <h1 class="subtitle">$subtitle$</h1> 64 <h1 class="subtitle">$subtitle$</h1>
65$endif$ 65$endif$
66$if(author)$
66 <p class="author"> 67 <p class="author">
67$for(author)$$author$$sep$<br/>$endfor$ 68$for(author)$$author$$sep$<br/>$endfor$
68 </p> 69 </p>
70$endif$
71$if(institute)$
72 <p class="institute">
73$for(institute)$$institute$$sep$<br/>$endfor$
74 </p>
75$endif$
69$if(date)$ 76$if(date)$
70 <p class="date">$date$</p> 77 <p class="date">$date$</p>
71$endif$ 78$endif$
diff --git a/default.slidy b/default.slidy
index 6b97768..a4ac97f 100644
--- a/default.slidy
+++ b/default.slidy
@@ -52,6 +52,11 @@ $if(author)$
52$for(author)$$author$$sep$<br/>$endfor$ 52$for(author)$$author$$sep$<br/>$endfor$
53 </p> 53 </p>
54$endif$ 54$endif$
55$if(institute)$
56 <p class="institute">
57$for(institute)$$institute$$sep$<br/>$endfor$
58 </p>
59$endif$
55$if(date)$ 60$if(date)$
56 <p class="date">$date$</p> 61 <p class="date">$date$</p>
57$endif$ 62$endif$