xl1 0.1.3 → 0.1.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,1101 @@
1
+ %%
2
+ % Copyright (c) 2017 - 2023, Pascal Wagler;
3
+ % Copyright (c) 2014 - 2023, John MacFarlane
4
+ %
5
+ % All rights reserved.
6
+ %
7
+ % Redistribution and use in source and binary forms, with or without
8
+ % modification, are permitted provided that the following conditions
9
+ % are met:
10
+ %
11
+ % - Redistributions of source code must retain the above copyright
12
+ % notice, this list of conditions and the following disclaimer.
13
+ %
14
+ % - Redistributions in binary form must reproduce the above copyright
15
+ % notice, this list of conditions and the following disclaimer in the
16
+ % documentation and/or other materials provided with the distribution.
17
+ %
18
+ % - Neither the name of John MacFarlane nor the names of other
19
+ % contributors may be used to endorse or promote products derived
20
+ % from this software without specific prior written permission.
21
+ %
22
+ % THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
23
+ % "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
24
+ % LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
25
+ % FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
26
+ % COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
27
+ % INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
28
+ % BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
29
+ % LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
30
+ % CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
31
+ % LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
32
+ % ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
33
+ % POSSIBILITY OF SUCH DAMAGE.
34
+ %%
35
+
36
+ %%
37
+ % This is the Eisvogel pandoc LaTeX template.
38
+ %
39
+ % For usage information and examples visit the official GitHub page:
40
+ % https://github.com/Wandmalfarbe/pandoc-latex-template
41
+ %%
42
+
43
+ % Options for packages loaded elsewhere
44
+ \PassOptionsToPackage{unicode$for(hyperrefoptions)$,$hyperrefoptions$$endfor$}{hyperref}
45
+ \PassOptionsToPackage{hyphens}{url}
46
+ \PassOptionsToPackage{dvipsnames,svgnames,x11names,table}{xcolor}
47
+ $if(CJKmainfont)$
48
+ \PassOptionsToPackage{space}{xeCJK}
49
+ $endif$
50
+ %
51
+ \documentclass[
52
+ $if(fontsize)$
53
+ $fontsize$,
54
+ $endif$
55
+ $if(papersize)$
56
+ $papersize$paper,
57
+ $else$
58
+ paper=a4,
59
+ $endif$
60
+ $if(beamer)$
61
+ ignorenonframetext,
62
+ $if(handout)$
63
+ handout,
64
+ $endif$
65
+ $if(aspectratio)$
66
+ aspectratio=$aspectratio$,
67
+ $endif$
68
+ $endif$
69
+ $for(classoption)$
70
+ $classoption$$sep$,
71
+ $endfor$
72
+ ,captions=tableheading
73
+ ]{$if(beamer)$$documentclass$$else$$if(book)$scrbook$else$scrartcl$endif$$endif$}
74
+ $if(beamer)$
75
+ $if(background-image)$
76
+ \usebackgroundtemplate{%
77
+ \includegraphics[width=\paperwidth]{$background-image$}%
78
+ }
79
+ % In beamer background-image does not work well when other images are used, so this is the workaround
80
+ \pgfdeclareimage[width=\paperwidth,height=\paperheight]{background}{$background-image$}
81
+ \usebackgroundtemplate{\pgfuseimage{background}}
82
+ $endif$
83
+ \usepackage{pgfpages}
84
+ \setbeamertemplate{caption}[numbered]
85
+ \setbeamertemplate{caption label separator}{: }
86
+ \setbeamercolor{caption name}{fg=normal text.fg}
87
+ \beamertemplatenavigationsymbols$if(navigation)$$navigation$$else$empty$endif$
88
+ $for(beameroption)$
89
+ \setbeameroption{$beameroption$}
90
+ $endfor$
91
+ % Prevent slide breaks in the middle of a paragraph
92
+ \widowpenalties 1 10000
93
+ \raggedbottom
94
+ $if(section-titles)$
95
+ \setbeamertemplate{part page}{
96
+ \centering
97
+ \begin{beamercolorbox}[sep=16pt,center]{part title}
98
+ \usebeamerfont{part title}\insertpart\par
99
+ \end{beamercolorbox}
100
+ }
101
+ \setbeamertemplate{section page}{
102
+ \centering
103
+ \begin{beamercolorbox}[sep=12pt,center]{part title}
104
+ \usebeamerfont{section title}\insertsection\par
105
+ \end{beamercolorbox}
106
+ }
107
+ \setbeamertemplate{subsection page}{
108
+ \centering
109
+ \begin{beamercolorbox}[sep=8pt,center]{part title}
110
+ \usebeamerfont{subsection title}\insertsubsection\par
111
+ \end{beamercolorbox}
112
+ }
113
+ \AtBeginPart{
114
+ \frame{\partpage}
115
+ }
116
+ \AtBeginSection{
117
+ \ifbibliography
118
+ \else
119
+ \frame{\sectionpage}
120
+ \fi
121
+ }
122
+ \AtBeginSubsection{
123
+ \frame{\subsectionpage}
124
+ }
125
+ $endif$
126
+ $endif$
127
+ $if(beamerarticle)$
128
+ \usepackage{beamerarticle} % needs to be loaded first
129
+ $endif$
130
+ \usepackage{amsmath,amssymb}
131
+ $if(linestretch)$
132
+ \usepackage{setspace}
133
+ $else$
134
+ % Use setspace anyway because we change the default line spacing.
135
+ % The spacing is changed early to affect the titlepage and the TOC.
136
+ \usepackage{setspace}
137
+ \setstretch{1.2}
138
+ $endif$
139
+ \usepackage{iftex}
140
+ \ifPDFTeX
141
+ \usepackage[$if(fontenc)$$fontenc$$else$T1$endif$]{fontenc}
142
+ \usepackage[utf8]{inputenc}
143
+ \usepackage{textcomp} % provide euro and other symbols
144
+ \else % if luatex or xetex
145
+ $if(mathspec)$
146
+ \ifXeTeX
147
+ \usepackage{mathspec} % this also loads fontspec
148
+ \else
149
+ \usepackage{unicode-math} % this also loads fontspec
150
+ \fi
151
+ $else$
152
+ \usepackage{unicode-math} % this also loads fontspec
153
+ $endif$
154
+ \defaultfontfeatures{Scale=MatchLowercase}$-- must come before Beamer theme
155
+ \defaultfontfeatures[\rmfamily]{Ligatures=TeX,Scale=1}
156
+ \fi
157
+ $if(fontfamily)$
158
+ $else$
159
+ $-- Set default font before Beamer theme so the theme can override it
160
+ \usepackage{lmodern}
161
+ $endif$
162
+ $-- Set Beamer theme before user font settings so they can override theme
163
+ $if(beamer)$
164
+ $if(theme)$
165
+ \usetheme[$for(themeoptions)$$themeoptions$$sep$,$endfor$]{$theme$}
166
+ $endif$
167
+ $if(colortheme)$
168
+ \usecolortheme{$colortheme$}
169
+ $endif$
170
+ $if(fonttheme)$
171
+ \usefonttheme{$fonttheme$}
172
+ $endif$
173
+ $if(mainfont)$
174
+ \usefonttheme{serif} % use mainfont rather than sansfont for slide text
175
+ $endif$
176
+ $if(innertheme)$
177
+ \useinnertheme{$innertheme$}
178
+ $endif$
179
+ $if(outertheme)$
180
+ \useoutertheme{$outertheme$}
181
+ $endif$
182
+ $endif$
183
+ $-- User font settings (must come after default font and Beamer theme)
184
+ $if(fontfamily)$
185
+ \usepackage[$for(fontfamilyoptions)$$fontfamilyoptions$$sep$,$endfor$]{$fontfamily$}
186
+ $endif$
187
+ \ifPDFTeX\else
188
+ % xetex/luatex font selection
189
+ $if(mainfont)$
190
+ \setmainfont[$for(mainfontoptions)$$mainfontoptions$$sep$,$endfor$]{$mainfont$}
191
+ $endif$
192
+ $if(sansfont)$
193
+ \setsansfont[$for(sansfontoptions)$$sansfontoptions$$sep$,$endfor$]{$sansfont$}
194
+ $endif$
195
+ $if(monofont)$
196
+ \setmonofont[$for(monofontoptions)$$monofontoptions$$sep$,$endfor$]{$monofont$}
197
+ $endif$
198
+ $for(fontfamilies)$
199
+ \newfontfamily{$fontfamilies.name$}[$for(fontfamilies.options)$$fontfamilies.options$$sep$,$endfor$]{$fontfamilies.font$}
200
+ $endfor$
201
+ $if(mathfont)$
202
+ $if(mathspec)$
203
+ \ifXeTeX
204
+ \setmathfont(Digits,Latin,Greek)[$for(mathfontoptions)$$mathfontoptions$$sep$,$endfor$]{$mathfont$}
205
+ \else
206
+ \setmathfont[$for(mathfontoptions)$$mathfontoptions$$sep$,$endfor$]{$mathfont$}
207
+ \fi
208
+ $else$
209
+ \setmathfont[$for(mathfontoptions)$$mathfontoptions$$sep$,$endfor$]{$mathfont$}
210
+ $endif$
211
+ $endif$
212
+ $if(CJKmainfont)$
213
+ \ifXeTeX
214
+ \usepackage{xeCJK}
215
+ \setCJKmainfont[$for(CJKoptions)$$CJKoptions$$sep$,$endfor$]{$CJKmainfont$}
216
+ $if(CJKsansfont)$
217
+ \setCJKsansfont[$for(CJKoptions)$$CJKoptions$$sep$,$endfor$]{$CJKsansfont$}
218
+ $endif$
219
+ $if(CJKmonofont)$
220
+ \setCJKmonofont[$for(CJKoptions)$$CJKoptions$$sep$,$endfor$]{$CJKmonofont$}
221
+ $endif$
222
+ \fi
223
+ $endif$
224
+ $if(luatexjapresetoptions)$
225
+ \ifLuaTeX
226
+ \usepackage[$for(luatexjapresetoptions)$$luatexjapresetoptions$$sep$,$endfor$]{luatexja-preset}
227
+ \fi
228
+ $endif$
229
+ $if(CJKmainfont)$
230
+ \ifLuaTeX
231
+ \usepackage[$for(luatexjafontspecoptions)$$luatexjafontspecoptions$$sep$,$endfor$]{luatexja-fontspec}
232
+ \setmainjfont[$for(CJKoptions)$$CJKoptions$$sep$,$endfor$]{$CJKmainfont$}
233
+ \fi
234
+ $endif$
235
+ \fi
236
+ $if(zero-width-non-joiner)$
237
+ %% Support for zero-width non-joiner characters.
238
+ \makeatletter
239
+ \def\zerowidthnonjoiner{%
240
+ % Prevent ligatures and adjust kerning, but still support hyphenating.
241
+ \texorpdfstring{%
242
+ \TextOrMath{\nobreak\discretionary{-}{}{\kern.03em}%
243
+ \ifvmode\else\nobreak\hskip\z@skip\fi}{}%
244
+ }{}%
245
+ }
246
+ \makeatother
247
+ \ifPDFTeX
248
+ \DeclareUnicodeCharacter{200C}{\zerowidthnonjoiner}
249
+ \else
250
+ \catcode`^^^^200c=\active
251
+ \protected\def ^^^^200c{\zerowidthnonjoiner}
252
+ \fi
253
+ %% End of ZWNJ support
254
+ $endif$
255
+ % Use upquote if available, for straight quotes in verbatim environments
256
+ \IfFileExists{upquote.sty}{\usepackage{upquote}}{}
257
+ \IfFileExists{microtype.sty}{% use microtype if available
258
+ \usepackage[$for(microtypeoptions)$$microtypeoptions$$sep$,$endfor$]{microtype}
259
+ \UseMicrotypeSet[protrusion]{basicmath} % disable protrusion for tt fonts
260
+ }{}
261
+ $if(indent)$
262
+ $else$
263
+ \makeatletter
264
+ \@ifundefined{KOMAClassName}{% if non-KOMA class
265
+ \IfFileExists{parskip.sty}{%
266
+ \usepackage{parskip}
267
+ }{% else
268
+ \setlength{\parindent}{0pt}
269
+ \setlength{\parskip}{6pt plus 2pt minus 1pt}}
270
+ }{% if KOMA class
271
+ \KOMAoptions{parskip=half}}
272
+ \makeatother
273
+ $endif$
274
+ $if(verbatim-in-note)$
275
+ \usepackage{fancyvrb}
276
+ $endif$
277
+ \usepackage{xcolor}
278
+ \definecolor{default-linkcolor}{HTML}{A50000}
279
+ \definecolor{default-filecolor}{HTML}{A50000}
280
+ \definecolor{default-citecolor}{HTML}{4077C0}
281
+ \definecolor{default-urlcolor}{HTML}{4077C0}
282
+ $if(footnotes-pretty)$
283
+ % load footmisc in order to customize footnotes (footmisc has to be loaded before hyperref, cf. https://tex.stackexchange.com/a/169124/144087)
284
+ \usepackage[hang,flushmargin,bottom,multiple]{footmisc}
285
+ \setlength{\footnotemargin}{0.8em} % set space between footnote nr and text
286
+ \setlength{\footnotesep}{\baselineskip} % set space between multiple footnotes
287
+ \setlength{\skip\footins}{0.3cm} % set space between page content and footnote
288
+ \setlength{\footskip}{0.9cm} % set space between footnote and page bottom
289
+ $endif$
290
+ $if(geometry)$
291
+ $if(beamer)$
292
+ \geometry{$for(geometry)$$geometry$$sep$,$endfor$}
293
+ $else$
294
+ \usepackage[$for(geometry)$$geometry$$sep$,$endfor$]{geometry}
295
+ $endif$
296
+ $else$
297
+ $if(beamer)$
298
+ $else$
299
+ \usepackage[margin=2.5cm,includehead=true,includefoot=true,centering,$for(geometry)$$geometry$$sep$,$endfor$]{geometry}
300
+ $endif$
301
+ $endif$
302
+ $if(titlepage-logo)$
303
+ \usepackage[export]{adjustbox}
304
+ \usepackage{graphicx}
305
+ $endif$
306
+ $if(beamer)$
307
+ \newif\ifbibliography
308
+ $endif$
309
+ $if(listings)$
310
+ \usepackage{listings}
311
+ \newcommand{\passthrough}[1]{#1}
312
+ \lstset{defaultdialect=[5.3]Lua}
313
+ \lstset{defaultdialect=[x86masm]Assembler}
314
+ $endif$
315
+ $if(listings-no-page-break)$
316
+ \usepackage{etoolbox}
317
+ \BeforeBeginEnvironment{lstlisting}{\par\noindent\begin{minipage}{\linewidth}}
318
+ \AfterEndEnvironment{lstlisting}{\end{minipage}\par\addvspace{\topskip}}
319
+ $endif$
320
+ $if(lhs)$
321
+ \lstnewenvironment{code}{\lstset{language=Haskell,basicstyle=\small\ttfamily}}{}
322
+ $endif$
323
+ $if(highlighting-macros)$
324
+ $highlighting-macros$
325
+
326
+ % Workaround/bugfix from jannick0.
327
+ % See https://github.com/jgm/pandoc/issues/4302#issuecomment-360669013)
328
+ % or https://github.com/Wandmalfarbe/pandoc-latex-template/issues/2
329
+ %
330
+ % Redefine the verbatim environment 'Highlighting' to break long lines (with
331
+ % the help of fvextra). Redefinition is necessary because it is unlikely that
332
+ % pandoc includes fvextra in the default template.
333
+ \usepackage{fvextra}
334
+ \DefineVerbatimEnvironment{Highlighting}{Verbatim}{breaklines,fontsize=$if(code-block-font-size)$$code-block-font-size$$else$\small$endif$,commandchars=\\\{\}}
335
+
336
+ $endif$
337
+ $if(tables)$
338
+ \usepackage{longtable,booktabs,array}
339
+ $if(multirow)$
340
+ \usepackage{multirow}
341
+ $endif$
342
+ \usepackage{calc} % for calculating minipage widths
343
+ $if(beamer)$
344
+ \usepackage{caption}
345
+ % Make caption package work with longtable
346
+ \makeatletter
347
+ \def\fnum@table{\tablename~\thetable}
348
+ \makeatother
349
+ $else$
350
+ % Correct order of tables after \paragraph or \subparagraph
351
+ \usepackage{etoolbox}
352
+ \makeatletter
353
+ \patchcmd\longtable{\par}{\if@noskipsec\mbox{}\fi\par}{}{}
354
+ \makeatother
355
+ % Allow footnotes in longtable head/foot
356
+ \IfFileExists{footnotehyper.sty}{\usepackage{footnotehyper}}{\usepackage{footnote}}
357
+ \makesavenoteenv{longtable}
358
+ $endif$
359
+ $endif$
360
+ % add backlinks to footnote references, cf. https://tex.stackexchange.com/questions/302266/make-footnote-clickable-both-ways
361
+ $if(footnotes-disable-backlinks)$
362
+ $else$
363
+ \usepackage{footnotebackref}
364
+ $endif$
365
+ $if(graphics)$
366
+ \usepackage{graphicx}
367
+ \makeatletter
368
+ \newsavebox\pandoc@box
369
+ \newcommand*\pandocbounded[1]{% scales image to fit in text height/width
370
+ \sbox\pandoc@box{#1}%
371
+ \Gscale@div\@tempa{\textheight}{\dimexpr\ht\pandoc@box+\dp\pandoc@box\relax}%
372
+ \Gscale@div\@tempb{\linewidth}{\wd\pandoc@box}%
373
+ \ifdim\@tempb\p@<\@tempa\p@\let\@tempa\@tempb\fi% select the smaller of both
374
+ \ifdim\@tempa\p@<\p@\scalebox{\@tempa}{\usebox\pandoc@box}%
375
+ \else\usebox{\pandoc@box}%
376
+ \fi%
377
+ }
378
+ % Set default figure placement to htbp
379
+ % Make use of float-package and set default placement for figures to H.
380
+ % The option H means 'PUT IT HERE' (as opposed to the standard h option which means 'You may put it here if you like').
381
+ \usepackage{float}
382
+ \floatplacement{figure}{$if(float-placement-figure)$$float-placement-figure$$else$H$endif$}
383
+ \makeatother
384
+ $endif$
385
+ $if(svg)$
386
+ \usepackage{svg}
387
+ $endif$
388
+ $if(strikeout)$
389
+ $-- also used for underline
390
+ \ifLuaTeX
391
+ \usepackage{luacolor}
392
+ \usepackage[soul]{lua-ul}
393
+ \else
394
+ \usepackage{soul}
395
+ $if(CJKmainfont)$
396
+ \ifXeTeX
397
+ % soul's \st doesn't work for CJK:
398
+ \usepackage{xeCJKfntef}
399
+ \renewcommand{\st}[1]{\sout{#1}}
400
+ \fi
401
+ $endif$
402
+ \fi
403
+ $endif$
404
+ \setlength{\emergencystretch}{3em} % prevent overfull lines
405
+ \providecommand{\tightlist}{%
406
+ \setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}}
407
+ $if(numbersections)$
408
+ \setcounter{secnumdepth}{$if(secnumdepth)$$secnumdepth$$else$5$endif$}
409
+ $else$
410
+ \setcounter{secnumdepth}{-\maxdimen} % remove section numbering
411
+ $endif$
412
+ $if(subfigure)$
413
+ \usepackage{subcaption}
414
+ $endif$
415
+ $if(beamer)$
416
+ $else$
417
+ $if(block-headings)$
418
+ % Make \paragraph and \subparagraph free-standing
419
+ \ifx\paragraph\undefined\else
420
+ \let\oldparagraph\paragraph
421
+ \renewcommand{\paragraph}[1]{\oldparagraph{#1}\mbox{}}
422
+ \fi
423
+ \ifx\subparagraph\undefined\else
424
+ \let\oldsubparagraph\subparagraph
425
+ \renewcommand{\subparagraph}[1]{\oldsubparagraph{#1}\mbox{}}
426
+ \fi
427
+ $endif$
428
+ $endif$
429
+ $if(pagestyle)$
430
+ \pagestyle{$pagestyle$}
431
+ $endif$
432
+ $if(csl-refs)$
433
+ % definitions for citeproc citations
434
+ \NewDocumentCommand\citeproctext{}{}
435
+ \NewDocumentCommand\citeproc{mm}{%
436
+ \begingroup\def\citeproctext{#2}\cite{#1}\endgroup}
437
+ \makeatletter
438
+ % allow citations to break across lines
439
+ \let\@cite@ofmt\@firstofone
440
+ % avoid brackets around text for \cite:
441
+ \def\@biblabel#1{}
442
+ \def\@cite#1#2{{#1\if@tempswa , #2\fi}}
443
+ \makeatother
444
+ \newlength{\cslhangindent}
445
+ \setlength{\cslhangindent}{1.5em}
446
+ \newlength{\csllabelwidth}
447
+ \setlength{\csllabelwidth}{3em}
448
+ \newenvironment{CSLReferences}[2] % #1 hanging-indent, #2 entry-spacing
449
+ {\begin{list}{}{%
450
+ \setlength{\itemindent}{0pt}
451
+ \setlength{\leftmargin}{0pt}
452
+ \setlength{\parsep}{0pt}
453
+ % turn on hanging indent if param 1 is 1
454
+ \ifodd #1
455
+ \setlength{\leftmargin}{\cslhangindent}
456
+ \setlength{\itemindent}{-1\cslhangindent}
457
+ \fi
458
+ % set entry spacing
459
+ \setlength{\itemsep}{#2\baselineskip}}}
460
+ {\end{list}}
461
+ \usepackage{calc}
462
+ \newcommand{\CSLBlock}[1]{\hfill\break\parbox[t]{\linewidth}{\strut\ignorespaces#1\strut}}
463
+ \newcommand{\CSLLeftMargin}[1]{\parbox[t]{\csllabelwidth}{\strut#1\strut}}
464
+ \newcommand{\CSLRightInline}[1]{\parbox[t]{\linewidth - \csllabelwidth}{\strut#1\strut}}
465
+ \newcommand{\CSLIndent}[1]{\hspace{\cslhangindent}#1}
466
+ $endif$
467
+ $if(lang)$
468
+ \ifLuaTeX
469
+ \usepackage[bidi=basic]{babel}
470
+ \else
471
+ \usepackage[bidi=default]{babel}
472
+ \fi
473
+ $if(babel-lang)$
474
+ \babelprovide[main,import]{$babel-lang$}
475
+ $if(mainfont)$
476
+ \ifPDFTeX
477
+ \else
478
+ \babelfont{rm}[$for(mainfontoptions)$$mainfontoptions$$sep$,$endfor$]{$mainfont$}
479
+ \fi
480
+ $endif$
481
+ $endif$
482
+ $for(babel-otherlangs)$
483
+ \babelprovide[import]{$babel-otherlangs$}
484
+ $endfor$
485
+ $for(babelfonts/pairs)$
486
+ \babelfont[$babelfonts.key$]{rm}{$babelfonts.value$}
487
+ $endfor$
488
+ % get rid of language-specific shorthands (see #6817):
489
+ \let\LanguageShortHands\languageshorthands
490
+ \def\languageshorthands#1{}
491
+ $endif$
492
+ $for(header-includes)$
493
+ $header-includes$
494
+ $endfor$
495
+ \ifLuaTeX
496
+ \usepackage{selnolig} % disable illegal ligatures
497
+ \fi
498
+ $if(dir)$
499
+ \ifPDFTeX
500
+ \TeXXeTstate=1
501
+ \newcommand{\RL}[1]{\beginR #1\endR}
502
+ \newcommand{\LR}[1]{\beginL #1\endL}
503
+ \newenvironment{RTL}{\beginR}{\endR}
504
+ \newenvironment{LTR}{\beginL}{\endL}
505
+ \fi
506
+ $endif$
507
+ $if(natbib)$
508
+ \usepackage[$natbiboptions$]{natbib}
509
+ \bibliographystyle{$if(biblio-style)$$biblio-style$$else$plainnat$endif$}
510
+ $endif$
511
+ $if(biblatex)$
512
+ \usepackage[$if(biblio-style)$style=$biblio-style$,$endif$$for(biblatexoptions)$$biblatexoptions$$sep$,$endfor$]{biblatex}
513
+ $for(bibliography)$
514
+ \addbibresource{$bibliography$}
515
+ $endfor$
516
+ $endif$
517
+ $if(nocite-ids)$
518
+ \nocite{$for(nocite-ids)$$it$$sep$, $endfor$}
519
+ $endif$
520
+ $if(csquotes)$
521
+ \usepackage{csquotes}
522
+ $endif$
523
+ \IfFileExists{bookmark.sty}{\usepackage{bookmark}}{\usepackage{hyperref}}
524
+ \IfFileExists{xurl.sty}{\usepackage{xurl}}{} % add URL line breaks if available
525
+ \urlstyle{$if(urlstyle)$$urlstyle$$else$same$endif$}
526
+ $if(links-as-notes)$
527
+ % Make links footnotes instead of hotlinks:
528
+ \DeclareRobustCommand{\href}[2]{#2\footnote{\url{#1}}}
529
+ $endif$
530
+ $if(verbatim-in-note)$
531
+ \VerbatimFootnotes % allow verbatim text in footnotes
532
+ $endif$
533
+ \hypersetup{
534
+ $if(title-meta)$
535
+ pdftitle={$title-meta$},
536
+ $endif$
537
+ $if(author-meta)$
538
+ pdfauthor={$author-meta$},
539
+ $endif$
540
+ $if(lang)$
541
+ pdflang={$lang$},
542
+ $endif$
543
+ $if(subject)$
544
+ pdfsubject={$subject$},
545
+ $endif$
546
+ $if(keywords)$
547
+ pdfkeywords={$for(keywords)$$keywords$$sep$, $endfor$},
548
+ $endif$
549
+ $if(colorlinks)$
550
+ colorlinks=true,
551
+ linkcolor={$if(linkcolor)$$linkcolor$$else$default-linkcolor$endif$},
552
+ filecolor={$if(filecolor)$$filecolor$$else$default-filecolor$endif$},
553
+ citecolor={$if(citecolor)$$citecolor$$else$default-citecolor$endif$},
554
+ urlcolor={$if(urlcolor)$$urlcolor$$else$default-urlcolor$endif$},
555
+ $else$
556
+ hidelinks,
557
+ $endif$
558
+ breaklinks=true,
559
+ pdfcreator={LaTeX via pandoc with the Eisvogel template}}
560
+ $if(title)$
561
+ \title{$title$$if(thanks)$\thanks{$thanks$}$endif$}
562
+ $endif$
563
+ $if(subtitle)$
564
+ $if(beamer)$
565
+ $else$
566
+ \usepackage{etoolbox}
567
+ \makeatletter
568
+ \providecommand{\subtitle}[1]{% add subtitle to \maketitle
569
+ \apptocmd{\@title}{\par {\large #1 \par}}{}{}
570
+ }
571
+ \makeatother
572
+ $endif$
573
+ \subtitle{$subtitle$}
574
+ $endif$
575
+ \author{$for(author)$$author$$sep$ \and $endfor$}
576
+ \date{$date$}
577
+ $if(beamer)$
578
+ $if(institute)$
579
+ \institute{$for(institute)$$institute$$sep$ \and $endfor$}
580
+ $endif$
581
+ $if(titlegraphic)$
582
+ \titlegraphic{\includegraphics{$titlegraphic$}}
583
+ $endif$
584
+ $if(logo)$
585
+ \logo{\includegraphics{$logo$}}
586
+ $endif$
587
+ $endif$
588
+
589
+
590
+
591
+ %%
592
+ %% added
593
+ %%
594
+
595
+ $if(page-background)$
596
+ \usepackage[pages=all]{background}
597
+ $endif$
598
+
599
+ %
600
+ % for the background color of the title page
601
+ %
602
+ $if(titlepage)$
603
+ \usepackage{pagecolor}
604
+ \usepackage{afterpage}
605
+ $if(titlepage-background)$
606
+ \usepackage{tikz}
607
+ $endif$
608
+ $if(geometry)$
609
+ $else$
610
+ \usepackage[margin=2.5cm,includehead=true,includefoot=true,centering]{geometry}
611
+ $endif$
612
+ $endif$
613
+
614
+ %
615
+ % break urls
616
+ %
617
+ \PassOptionsToPackage{hyphens}{url}
618
+
619
+ %
620
+ % When using babel or polyglossia with biblatex, loading csquotes is recommended
621
+ % to ensure that quoted texts are typeset according to the rules of your main language.
622
+ %
623
+ \usepackage{csquotes}
624
+
625
+ %
626
+ % captions
627
+ %
628
+ \definecolor{caption-color}{HTML}{777777}
629
+ $if(beamer)$
630
+ $else$
631
+ \usepackage[font={stretch=1.2}, textfont={color=caption-color}, position=top, skip=4mm, labelfont=bf, singlelinecheck=false, justification=$if(caption-justification)$$caption-justification$$else$raggedright$endif$]{caption}
632
+ \setcapindent{0em}
633
+ $endif$
634
+
635
+ %
636
+ % blockquote
637
+ %
638
+ \definecolor{blockquote-border}{RGB}{221,221,221}
639
+ \definecolor{blockquote-text}{RGB}{119,119,119}
640
+ \usepackage{mdframed}
641
+ \newmdenv[rightline=false,bottomline=false,topline=false,linewidth=3pt,linecolor=blockquote-border,skipabove=\parskip]{customblockquote}
642
+ \renewenvironment{quote}{\begin{customblockquote}\list{}{\rightmargin=0em\leftmargin=0em}%
643
+ \item\relax\color{blockquote-text}\ignorespaces}{\unskip\unskip\endlist\end{customblockquote}}
644
+
645
+ %
646
+ % Source Sans Pro as the default font family
647
+ % Source Code Pro for monospace text
648
+ %
649
+ % 'default' option sets the default
650
+ % font family to Source Sans Pro, not \sfdefault.
651
+ %
652
+ \ifnum 0\ifxetex 1\fi\ifluatex 1\fi=0 % if pdftex
653
+ $if(fontfamily)$
654
+ $else$
655
+ \usepackage[default]{sourcesanspro}
656
+ \usepackage{sourcecodepro}
657
+ $endif$
658
+ \else % if not pdftex
659
+ $if(mainfont)$
660
+ $else$
661
+ \usepackage[default]{sourcesanspro}
662
+ \usepackage{sourcecodepro}
663
+
664
+ % XeLaTeX specific adjustments for straight quotes: https://tex.stackexchange.com/a/354887
665
+ % This issue is already fixed (see https://github.com/silkeh/latex-sourcecodepro/pull/5) but the
666
+ % fix is still unreleased.
667
+ % TODO: Remove this workaround when the new version of sourcecodepro is released on CTAN.
668
+ \ifxetex
669
+ \makeatletter
670
+ \defaultfontfeatures[\ttfamily]
671
+ { Numbers = \sourcecodepro@figurestyle,
672
+ Scale = \SourceCodePro@scale,
673
+ Extension = .otf }
674
+ \setmonofont
675
+ [ UprightFont = *-\sourcecodepro@regstyle,
676
+ ItalicFont = *-\sourcecodepro@regstyle It,
677
+ BoldFont = *-\sourcecodepro@boldstyle,
678
+ BoldItalicFont = *-\sourcecodepro@boldstyle It ]
679
+ {SourceCodePro}
680
+ \makeatother
681
+ \fi
682
+ $endif$
683
+ \fi
684
+
685
+ %
686
+ % heading color
687
+ %
688
+ \definecolor{heading-color}{RGB}{40,40,40}
689
+ $if(beamer)$
690
+ $else$
691
+ \addtokomafont{section}{\color{heading-color}}
692
+ $endif$
693
+ % When using the classes report, scrreprt, book,
694
+ % scrbook or memoir, uncomment the following line.
695
+ %\addtokomafont{chapter}{\color{heading-color}}
696
+
697
+ %
698
+ % variables for title, author and date
699
+ %
700
+ $if(beamer)$
701
+ $else$
702
+ \usepackage{titling}
703
+ \title{$title$}
704
+ \author{$for(author)$$author$$sep$, $endfor$}
705
+ \date{$date$}
706
+ $endif$
707
+
708
+ %
709
+ % tables
710
+ %
711
+ $if(tables)$
712
+
713
+ \definecolor{table-row-color}{HTML}{F5F5F5}
714
+ \definecolor{table-rule-color}{HTML}{999999}
715
+
716
+ %\arrayrulecolor{black!40}
717
+ \arrayrulecolor{table-rule-color} % color of \toprule, \midrule, \bottomrule
718
+ \setlength\heavyrulewidth{0.3ex} % thickness of \toprule, \bottomrule
719
+ \renewcommand{\arraystretch}{1.3} % spacing (padding)
720
+
721
+ $if(table-use-row-colors)$
722
+ % Unfortunately the colored cells extend beyond the edge of the
723
+ % table because pandoc uses @-expressions (@{}) like so:
724
+ %
725
+ % \begin{longtable}[]{@{}ll@{}}
726
+ % \end{longtable}
727
+ %
728
+ % https://en.wikibooks.org/wiki/LaTeX/Tables#.40-expressions
729
+ \usepackage{etoolbox}
730
+ \AtBeginEnvironment{longtable}{\rowcolors{2}{}{table-row-color!100}}
731
+ \preto{\toprule}{\hiderowcolors}{}{}
732
+ \appto{\endhead}{\showrowcolors}{}{}
733
+ \appto{\endfirsthead}{\showrowcolors}{}{}
734
+ $endif$
735
+ $endif$
736
+
737
+ %
738
+ % remove paragraph indentation
739
+ %
740
+ \setlength{\parindent}{0pt}
741
+ \setlength{\parskip}{6pt plus 2pt minus 1pt}
742
+ \setlength{\emergencystretch}{3em} % prevent overfull lines
743
+
744
+ %
745
+ %
746
+ % Listings
747
+ %
748
+ %
749
+
750
+ $if(listings)$
751
+
752
+ %
753
+ % general listing colors
754
+ %
755
+ \definecolor{listing-background}{HTML}{F7F7F7}
756
+ \definecolor{listing-rule}{HTML}{B3B2B3}
757
+ \definecolor{listing-numbers}{HTML}{B3B2B3}
758
+ \definecolor{listing-text-color}{HTML}{000000}
759
+ \definecolor{listing-keyword}{HTML}{435489}
760
+ \definecolor{listing-keyword-2}{HTML}{1284CA} % additional keywords
761
+ \definecolor{listing-keyword-3}{HTML}{9137CB} % additional keywords
762
+ \definecolor{listing-identifier}{HTML}{435489}
763
+ \definecolor{listing-string}{HTML}{00999A}
764
+ \definecolor{listing-comment}{HTML}{8E8E8E}
765
+
766
+ \lstdefinestyle{eisvogel_listing_style}{
767
+ language = java,
768
+ $if(listings-disable-line-numbers)$
769
+ xleftmargin = 0.6em,
770
+ framexleftmargin = 0.4em,
771
+ $else$
772
+ numbers = left,
773
+ xleftmargin = 2.7em,
774
+ framexleftmargin = 2.5em,
775
+ $endif$
776
+ backgroundcolor = \color{listing-background},
777
+ basicstyle = \color{listing-text-color}\linespread{1.0}%
778
+ \lst@ifdisplaystyle%
779
+ $if(code-block-font-size)$$code-block-font-size$$else$\small$endif$%
780
+ \fi\ttfamily{},
781
+ breaklines = true,
782
+ frame = single,
783
+ framesep = 0.19em,
784
+ rulecolor = \color{listing-rule},
785
+ frameround = ffff,
786
+ tabsize = 4,
787
+ numberstyle = \color{listing-numbers},
788
+ aboveskip = 1.0em,
789
+ belowskip = 0.1em,
790
+ abovecaptionskip = 0em,
791
+ belowcaptionskip = 1.0em,
792
+ keywordstyle = {\color{listing-keyword}\bfseries},
793
+ keywordstyle = {[2]\color{listing-keyword-2}\bfseries},
794
+ keywordstyle = {[3]\color{listing-keyword-3}\bfseries\itshape},
795
+ sensitive = true,
796
+ identifierstyle = \color{listing-identifier},
797
+ commentstyle = \color{listing-comment},
798
+ stringstyle = \color{listing-string},
799
+ showstringspaces = false,
800
+ escapeinside = {/*@}{@*/}, % Allow LaTeX inside these special comments
801
+ literate =
802
+ {á}{{\'a}}1 {é}{{\'e}}1 {í}{{\'i}}1 {ó}{{\'o}}1 {ú}{{\'u}}1
803
+ {Á}{{\'A}}1 {É}{{\'E}}1 {Í}{{\'I}}1 {Ó}{{\'O}}1 {Ú}{{\'U}}1
804
+ {à}{{\`a}}1 {è}{{\`e}}1 {ì}{{\`i}}1 {ò}{{\`o}}1 {ù}{{\`u}}1
805
+ {À}{{\`A}}1 {È}{{\`E}}1 {Ì}{{\`I}}1 {Ò}{{\`O}}1 {Ù}{{\`U}}1
806
+ {ä}{{\"a}}1 {ë}{{\"e}}1 {ï}{{\"i}}1 {ö}{{\"o}}1 {ü}{{\"u}}1
807
+ {Ä}{{\"A}}1 {Ë}{{\"E}}1 {Ï}{{\"I}}1 {Ö}{{\"O}}1 {Ü}{{\"U}}1
808
+ {â}{{\^a}}1 {ê}{{\^e}}1 {î}{{\^i}}1 {ô}{{\^o}}1 {û}{{\^u}}1
809
+ {Â}{{\^A}}1 {Ê}{{\^E}}1 {Î}{{\^I}}1 {Ô}{{\^O}}1 {Û}{{\^U}}1
810
+ {œ}{{\oe}}1 {Œ}{{\OE}}1 {æ}{{\ae}}1 {Æ}{{\AE}}1 {ß}{{\ss}}1
811
+ {ç}{{\c c}}1 {Ç}{{\c C}}1 {ø}{{\o}}1 {å}{{\r a}}1 {Å}{{\r A}}1
812
+ {€}{{\EUR}}1 {£}{{\pounds}}1 {«}{{\guillemotleft}}1
813
+ {»}{{\guillemotright}}1 {ñ}{{\~n}}1 {Ñ}{{\~N}}1 {¿}{{?`}}1
814
+ {…}{{\ldots}}1 {≥}{{>=}}1 {≤}{{<=}}1 {„}{{\glqq}}1 {“}{{\grqq}}1
815
+ {”}{{''}}1
816
+ }
817
+ \lstset{style=eisvogel_listing_style}
818
+
819
+ %
820
+ % Java (Java SE 12, 2019-06-22)
821
+ %
822
+ \lstdefinelanguage{Java}{
823
+ morekeywords={
824
+ % normal keywords (without data types)
825
+ abstract,assert,break,case,catch,class,continue,default,
826
+ do,else,enum,exports,extends,final,finally,for,if,implements,
827
+ import,instanceof,interface,module,native,new,package,private,
828
+ protected,public,requires,return,static,strictfp,super,switch,
829
+ synchronized,this,throw,throws,transient,try,volatile,while,
830
+ % var is an identifier
831
+ var
832
+ },
833
+ morekeywords={[2] % data types
834
+ % primitive data types
835
+ boolean,byte,char,double,float,int,long,short,
836
+ % String
837
+ String,
838
+ % primitive wrapper types
839
+ Boolean,Byte,Character,Double,Float,Integer,Long,Short
840
+ % number types
841
+ Number,AtomicInteger,AtomicLong,BigDecimal,BigInteger,DoubleAccumulator,DoubleAdder,LongAccumulator,LongAdder,Short,
842
+ % other
843
+ Object,Void,void
844
+ },
845
+ morekeywords={[3] % literals
846
+ % reserved words for literal values
847
+ null,true,false,
848
+ },
849
+ sensitive,
850
+ morecomment = [l]//,
851
+ morecomment = [s]{/*}{*/},
852
+ morecomment = [s]{/**}{*/},
853
+ morestring = [b]",
854
+ morestring = [b]',
855
+ }
856
+
857
+ \lstdefinelanguage{XML}{
858
+ morestring = [b]",
859
+ moredelim = [s][\bfseries\color{listing-keyword}]{<}{\ },
860
+ moredelim = [s][\bfseries\color{listing-keyword}]{</}{>},
861
+ moredelim = [l][\bfseries\color{listing-keyword}]{/>},
862
+ moredelim = [l][\bfseries\color{listing-keyword}]{>},
863
+ morecomment = [s]{<?}{?>},
864
+ morecomment = [s]{<!--}{-->},
865
+ commentstyle = \color{listing-comment},
866
+ stringstyle = \color{listing-string},
867
+ identifierstyle = \color{listing-identifier}
868
+ }
869
+ $endif$
870
+
871
+ %
872
+ % header and footer
873
+ %
874
+ $if(beamer)$
875
+ $else$
876
+ $if(disable-header-and-footer)$
877
+ $else$
878
+ \usepackage[headsepline,footsepline]{scrlayer-scrpage}
879
+
880
+ \newpairofpagestyles{eisvogel-header-footer}{
881
+ \clearpairofpagestyles
882
+ \ihead*{$if(header-left)$$header-left$$else$$title$$endif$}
883
+ \chead*{$if(header-center)$$header-center$$else$$endif$}
884
+ \ohead*{$if(header-right)$$header-right$$else$$date$$endif$}
885
+ \ifoot*{$if(footer-left)$$footer-left$$else$$for(author)$$author$$sep$, $endfor$$endif$}
886
+ \cfoot*{$if(footer-center)$$footer-center$$else$$endif$}
887
+ \ofoot*{$if(footer-right)$$footer-right$$else$\thepage$endif$}
888
+ \addtokomafont{pageheadfoot}{\upshape}
889
+ }
890
+ \pagestyle{eisvogel-header-footer}
891
+
892
+ $if(book)$
893
+ \deftripstyle{ChapterStyle}{}{}{}{}{\pagemark}{}
894
+ \renewcommand*{\chapterpagestyle}{ChapterStyle}
895
+ $endif$
896
+
897
+ $if(page-background)$
898
+ \backgroundsetup{
899
+ scale=1,
900
+ color=black,
901
+ opacity=$if(page-background-opacity)$$page-background-opacity$$else$0.2$endif$,
902
+ angle=0,
903
+ contents={%
904
+ \includegraphics[width=\paperwidth,height=\paperheight]{$page-background$}
905
+ }%
906
+ }
907
+ $endif$
908
+ $endif$
909
+ $endif$
910
+
911
+ %%
912
+ %% end added
913
+ %%
914
+
915
+ \begin{document}
916
+
917
+ %%
918
+ %% begin titlepage
919
+ %%
920
+ $if(beamer)$
921
+ $else$
922
+ $if(titlepage)$
923
+ \begin{titlepage}
924
+ $if(titlepage-background)$
925
+ \newgeometry{top=2cm, right=4cm, bottom=3cm, left=4cm}
926
+ $else$
927
+ \newgeometry{left=6cm}
928
+ $endif$
929
+ $if(titlepage-color)$
930
+ \definecolor{titlepage-color}{HTML}{$titlepage-color$}
931
+ \newpagecolor{titlepage-color}\afterpage{\restorepagecolor}
932
+ $endif$
933
+ $if(titlepage-background)$
934
+ \tikz[remember picture,overlay] \node[inner sep=0pt] at (current page.center){\includegraphics[width=\paperwidth,height=\paperheight]{$titlepage-background$}};
935
+ $endif$
936
+ \newcommand{\colorRule}[3][black]{\textcolor[HTML]{#1}{\rule{#2}{#3}}}
937
+ \begin{flushleft}
938
+ \noindent
939
+ \\[-1em]
940
+ \color[HTML]{$if(titlepage-text-color)$$titlepage-text-color$$else$5F5F5F$endif$}
941
+ \makebox[0pt][l]{\colorRule[$if(titlepage-rule-color)$$titlepage-rule-color$$else$435488$endif$]{1.3\textwidth}{$if(titlepage-rule-height)$$titlepage-rule-height$$else$4$endif$pt}}
942
+ \par
943
+ \noindent
944
+
945
+ $if(titlepage-background)$
946
+ % The titlepage with a background image has other text spacing and text size
947
+ {
948
+ \setstretch{2}
949
+ \vfill
950
+ \vskip -8em
951
+ \noindent {\huge \textbf{\textsf{$title$}}}
952
+ $if(subtitle)$
953
+ \vskip 1em
954
+ {\Large \textsf{$subtitle$}}
955
+ $endif$
956
+ \vskip 2em
957
+ \noindent {\Large \textsf{$for(author)$$author$$sep$, $endfor$} \vskip 0.6em \textsf{$date$}}
958
+ \vfill
959
+ }
960
+ $else$
961
+ {
962
+ \setstretch{1.4}
963
+ \vfill
964
+ \noindent {\huge \textbf{\textsf{$title$}}}
965
+ $if(subtitle)$
966
+ \vskip 1em
967
+ {\Large \textsf{$subtitle$}}
968
+ $endif$
969
+ \vskip 2em
970
+ \noindent {\Large \textsf{$for(author)$$author$$sep$, $endfor$}}
971
+ \vfill
972
+ }
973
+ $endif$
974
+
975
+ $if(titlepage-logo)$
976
+ \noindent
977
+ \includegraphics[width=$if(logo-width)$$logo-width$$else$35mm$endif$, left]{$titlepage-logo$}
978
+ $endif$
979
+
980
+ $if(titlepage-background)$
981
+ $else$
982
+ \textsf{$date$}
983
+ $endif$
984
+ \end{flushleft}
985
+ \end{titlepage}
986
+ \restoregeometry
987
+ \pagenumbering{arabic}
988
+ $endif$
989
+ $endif$
990
+
991
+ %%
992
+ %% end titlepage
993
+ %%
994
+
995
+ $if(has-frontmatter)$
996
+ \frontmatter
997
+ $endif$
998
+ $if(title)$
999
+ $if(beamer)$
1000
+ \frame{\titlepage}
1001
+ % don't generate the default title
1002
+ % $else$
1003
+ % \maketitle
1004
+ $endif$
1005
+ $if(abstract)$
1006
+ \begin{abstract}
1007
+ $abstract$
1008
+ \end{abstract}
1009
+ $endif$
1010
+ $endif$
1011
+
1012
+ $if(first-chapter)$
1013
+ \setcounter{chapter}{$first-chapter$}
1014
+ \addtocounter{chapter}{-1}
1015
+ $endif$
1016
+
1017
+ $for(include-before)$
1018
+ $include-before$
1019
+
1020
+ $endfor$
1021
+ $if(toc)$
1022
+ $if(toc-title)$
1023
+ \renewcommand*\contentsname{$toc-title$}
1024
+ $endif$
1025
+ $if(beamer)$
1026
+ \begin{frame}[allowframebreaks]
1027
+ $if(toc-title)$
1028
+ \frametitle{$toc-title$}
1029
+ $endif$
1030
+ \tableofcontents[hideallsubsections]
1031
+ \end{frame}
1032
+ $if(toc-own-page)$
1033
+ \newpage
1034
+ $endif$
1035
+ $else$
1036
+ {
1037
+ $if(colorlinks)$
1038
+ \hypersetup{linkcolor=$if(toccolor)$$toccolor$$else$$endif$}
1039
+ $endif$
1040
+ \setcounter{tocdepth}{$toc-depth$}
1041
+ \tableofcontents
1042
+ $if(toc-own-page)$
1043
+ \newpage
1044
+ $endif$
1045
+ }
1046
+ $endif$
1047
+ $endif$
1048
+ $if(lof)$
1049
+ \listoffigures
1050
+ $endif$
1051
+ $if(lot)$
1052
+ \listoftables
1053
+ $endif$
1054
+ $if(linestretch)$
1055
+ \setstretch{$linestretch$}
1056
+ $endif$
1057
+ $if(has-frontmatter)$
1058
+ \mainmatter
1059
+ $endif$
1060
+ $body$
1061
+
1062
+ $if(has-frontmatter)$
1063
+ \backmatter
1064
+ $endif$
1065
+ $if(natbib)$
1066
+ $if(bibliography)$
1067
+ $if(biblio-title)$
1068
+ $if(has-chapters)$
1069
+ \renewcommand\bibname{$biblio-title$}
1070
+ $else$
1071
+ \renewcommand\refname{$biblio-title$}
1072
+ $endif$
1073
+ $endif$
1074
+ $if(beamer)$
1075
+ \begin{frame}[allowframebreaks]{$biblio-title$}
1076
+ \bibliographytrue
1077
+ $endif$
1078
+ \bibliography{$for(bibliography)$$bibliography$$sep$,$endfor$}
1079
+ $if(beamer)$
1080
+ \end{frame}
1081
+ $endif$
1082
+
1083
+ $endif$
1084
+ $endif$
1085
+ $if(biblatex)$
1086
+ $if(beamer)$
1087
+ \begin{frame}[allowframebreaks]{$biblio-title$}
1088
+ \bibliographytrue
1089
+ \printbibliography[heading=none]
1090
+ \end{frame}
1091
+ $else$
1092
+ \printbibliography$if(biblio-title)$[title=$biblio-title$]$endif$
1093
+ $endif$
1094
+
1095
+ $endif$
1096
+ $for(include-after)$
1097
+ $include-after$
1098
+
1099
+ $endfor$
1100
+
1101
+ \end{document}