pyeasyphd 0.4.42__py3-none-any.whl

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