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