pyeasyphd 0.3.13__py3-none-any.whl → 0.3.16__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.

Potentially problematic release.


This version of pyeasyphd might be problematic. Click here for more details.

Files changed (22) hide show
  1. pyeasyphd/main/basic_input.py +12 -14
  2. {pyeasyphd-0.3.13.dist-info → pyeasyphd-0.3.16.dist-info}/METADATA +2 -2
  3. {pyeasyphd-0.3.13.dist-info → pyeasyphd-0.3.16.dist-info}/RECORD +20 -22
  4. pyeasyphd/data/Templates/TEX/eisvogel.beamer +0 -700
  5. pyeasyphd/data/Templates/TEX/eisvogel.latex +0 -1040
  6. /pyeasyphd/data/{Templates/CSL → templates/csl}/apa-no-ampersand.csl +0 -0
  7. /pyeasyphd/data/{Templates/CSL → templates/csl}/apa.csl +0 -0
  8. /pyeasyphd/data/{Templates/CSL → templates/csl}/ieee.csl +0 -0
  9. /pyeasyphd/data/{Templates/TEX → templates/tex}/Article.tex +0 -0
  10. /pyeasyphd/data/{Templates/TEX → templates/tex}/Article_Header.tex +0 -0
  11. /pyeasyphd/data/{Templates/TEX → templates/tex}/Article_Tail.tex +0 -0
  12. /pyeasyphd/data/{Templates/TEX → templates/tex}/Beamer_Header.tex +0 -0
  13. /pyeasyphd/data/{Templates/TEX → templates/tex}/Beamer_Tail.tex +0 -0
  14. /pyeasyphd/data/{Templates/TEX → templates/tex}/Style.tex +0 -0
  15. /pyeasyphd/data/{Templates/TEX → templates/tex}/TEVC_Header.tex +0 -0
  16. /pyeasyphd/data/{Templates/TEX → templates/tex}/TEVC_Tail.tex +0 -0
  17. /pyeasyphd/data/{Templates/TEX → templates/tex}/eisvogel.tex +0 -0
  18. /pyeasyphd/data/{Templates/TEX → templates/tex}/math.tex +0 -0
  19. /pyeasyphd/data/{Templates/TEX → templates/tex}/math_commands.tex +0 -0
  20. /pyeasyphd/data/{Templates/TEX → templates/tex}/nextaimathmacros.sty +0 -0
  21. {pyeasyphd-0.3.13.dist-info → pyeasyphd-0.3.16.dist-info}/WHEEL +0 -0
  22. {pyeasyphd-0.3.13.dist-info → pyeasyphd-0.3.16.dist-info}/licenses/LICENSE +0 -0
@@ -1,1040 +0,0 @@
1
- %%
2
- % Copyright (c) 2017 - 2025, Pascal Wagler;
3
- % Copyright (c) 2014 - 2025, 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
- % Options for packages loaded elsewhere
43
- \PassOptionsToPackage{unicode$for(hyperrefoptions)$,$hyperrefoptions$$endfor$}{hyperref}
44
- \PassOptionsToPackage{hyphens}{url}
45
- \PassOptionsToPackage{dvipsnames,svgnames,x11names,table}{xcolor}
46
- $if(CJKmainfont)$
47
- \PassOptionsToPackage{space}{xeCJK}
48
- $endif$
49
- \documentclass[
50
- $for(babel-otherlangs)$
51
- $babel-otherlangs$,
52
- $endfor$
53
- $if(babel-lang)$
54
- $babel-lang$,
55
- $endif$
56
- $if(fontsize)$
57
- $fontsize$,
58
- $endif$
59
- $if(papersize)$
60
- $papersize$paper,
61
- $else$
62
- paper=a4,
63
- $endif$
64
- $for(classoption)$
65
- $classoption$$sep$,
66
- $endfor$
67
- ,captions=tableheading
68
- ]{$if(book)$scrbook$else$scrartcl$endif$}
69
- $if(beamerarticle)$
70
- \usepackage{beamerarticle} % needs to be loaded first
71
- $endif$
72
- \usepackage{xcolor}
73
- $if(footnotes-pretty)$
74
- % load footmisc in order to customize footnotes (footmisc has to be loaded before hyperref, cf. https://tex.stackexchange.com/a/169124/144087)
75
- \usepackage[hang,flushmargin,bottom,multiple]{footmisc}
76
- \setlength{\footnotemargin}{0.8em} % set space between footnote nr and text
77
- \setlength{\footnotesep}{\baselineskip} % set space between multiple footnotes
78
- \setlength{\skip\footins}{0.3cm} % set space between page content and footnote
79
- \setlength{\footskip}{0.9cm} % set space between footnote and page bottom
80
- $endif$
81
- $if(geometry)$
82
- \usepackage[$for(geometry)$$geometry$$sep$,$endfor$]{geometry}
83
- $else$
84
- \usepackage[margin=2.5cm,includehead=true,includefoot=true,centering,$for(geometry)$$geometry$$sep$,$endfor$]{geometry}
85
- $endif$
86
- \usepackage{amsmath,amssymb}
87
-
88
- $if(titlepage-logo)$
89
- \usepackage[export]{adjustbox}
90
- \usepackage{graphicx}
91
- $endif$
92
-
93
- % add backlinks to footnote references, cf. https://tex.stackexchange.com/questions/302266/make-footnote-clickable-both-ways
94
- $if(footnotes-disable-backlinks)$
95
- $else$
96
- \usepackage{footnotebackref}
97
- $endif$
98
- $--
99
- $-- section numbering
100
- $--
101
- $if(numbersections)$
102
- \setcounter{secnumdepth}{$if(secnumdepth)$$secnumdepth$$else$5$endif$}
103
- $else$
104
- \setcounter{secnumdepth}{-\maxdimen} % remove section numbering
105
- $endif$
106
- \usepackage{iftex}
107
- \ifPDFTeX
108
- \usepackage[$if(fontenc)$$fontenc$$else$T1$endif$]{fontenc}
109
- \usepackage[utf8]{inputenc}
110
- \usepackage{textcomp} % provide euro and other symbols
111
- \else % if luatex or xetex
112
- $if(mathspec)$
113
- \ifXeTeX
114
- \usepackage{mathspec} % this also loads fontspec
115
- \else
116
- \usepackage{unicode-math} % this also loads fontspec
117
- \fi
118
- $else$
119
- \usepackage{unicode-math} % this also loads fontspec
120
- $endif$
121
- \defaultfontfeatures{Scale=MatchLowercase}$-- must come before Beamer theme
122
- \defaultfontfeatures[\rmfamily]{Ligatures=TeX,Scale=1}
123
- \fi
124
- $if(fontfamily)$
125
- $else$
126
- $-- Set default font before Beamer theme so the theme can override it
127
- \usepackage{lmodern}
128
- $endif$
129
- $-- User font settings (must come after default font and Beamer theme)
130
- $if(fontfamily)$
131
- \usepackage[$for(fontfamilyoptions)$$fontfamilyoptions$$sep$,$endfor$]{$fontfamily$}
132
- $endif$
133
- \ifPDFTeX\else
134
- % xetex/luatex font selection
135
- $if(mainfont)$
136
- $if(mainfontfallback)$
137
- \ifLuaTeX
138
- \usepackage{luaotfload}
139
- \directlua{luaotfload.add_fallback("mainfontfallback",{
140
- $for(mainfontfallback)$"$mainfontfallback$"$sep$,$endfor$
141
- })}
142
- \fi
143
- $endif$
144
- \setmainfont[$for(mainfontoptions)$$mainfontoptions$$sep$,$endfor$$if(mainfontfallback)$,RawFeature={fallback=mainfontfallback}$endif$]{$mainfont$}
145
- $endif$
146
- $if(sansfont)$
147
- $if(sansfontfallback)$
148
- \ifLuaTeX
149
- \usepackage{luaotfload}
150
- \directlua{luaotfload.add_fallback("sansfontfallback",{
151
- $for(sansfontfallback)$"$sansfontfallback$"$sep$,$endfor$
152
- })}
153
- \fi
154
- $endif$
155
- \setsansfont[$for(sansfontoptions)$$sansfontoptions$$sep$,$endfor$$if(sansfontfallback)$,RawFeature={fallback=sansfontfallback}$endif$]{$sansfont$}
156
- $endif$
157
- $if(monofont)$
158
- $if(monofontfallback)$
159
- \ifLuaTeX
160
- \usepackage{luaotfload}
161
- \directlua{luaotfload.add_fallback("monofontfallback",{
162
- $for(monofontfallback)$"$monofontfallback$"$sep$,$endfor$
163
- })}
164
- \fi
165
- $endif$
166
- \setmonofont[$for(monofontoptions)$$monofontoptions$$sep$,$endfor$$if(monofontfallback)$,RawFeature={fallback=monofontfallback}$endif$]{$monofont$}
167
- $endif$
168
- $for(fontfamilies)$
169
- \newfontfamily{$fontfamilies.name$}[$for(fontfamilies.options)$$fontfamilies.options$$sep$,$endfor$]{$fontfamilies.font$}
170
- $endfor$
171
- $if(mathfont)$
172
- $if(mathspec)$
173
- \ifXeTeX
174
- \setmathfont(Digits,Latin,Greek)[$for(mathfontoptions)$$mathfontoptions$$sep$,$endfor$]{$mathfont$}
175
- \else
176
- \setmathfont[$for(mathfontoptions)$$mathfontoptions$$sep$,$endfor$]{$mathfont$}
177
- \fi
178
- $else$
179
- \setmathfont[$for(mathfontoptions)$$mathfontoptions$$sep$,$endfor$]{$mathfont$}
180
- $endif$
181
- $endif$
182
- $if(CJKmainfont)$
183
- \ifXeTeX
184
- \usepackage{xeCJK}
185
- \setCJKmainfont[$for(CJKoptions)$$CJKoptions$$sep$,$endfor$]{$CJKmainfont$}
186
- $if(CJKsansfont)$
187
- \setCJKsansfont[$for(CJKoptions)$$CJKoptions$$sep$,$endfor$]{$CJKsansfont$}
188
- $endif$
189
- $if(CJKmonofont)$
190
- \setCJKmonofont[$for(CJKoptions)$$CJKoptions$$sep$,$endfor$]{$CJKmonofont$}
191
- $endif$
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(zero-width-non-joiner)$
207
- %% Support for zero-width non-joiner characters.
208
- \makeatletter
209
- \def\zerowidthnonjoiner{%
210
- % Prevent ligatures and adjust kerning, but still support hyphenating.
211
- \texorpdfstring{%
212
- \TextOrMath{\nobreak\discretionary{-}{}{\kern.03em}%
213
- \ifvmode\else\nobreak\hskip\z@skip\fi}{}%
214
- }{}%
215
- }
216
- \makeatother
217
- \ifPDFTeX
218
- \DeclareUnicodeCharacter{200C}{\zerowidthnonjoiner}
219
- \else
220
- \catcode`^^^^200c=\active
221
- \protected\def ^^^^200c{\zerowidthnonjoiner}
222
- \fi
223
- %% End of ZWNJ support
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
-
232
- $if(linestretch)$
233
- \usepackage{setspace}
234
- $else$
235
- % Use setspace anyway because we change the default line spacing.
236
- % The spacing is changed early to affect the titlepage and the TOC.
237
- \usepackage{setspace}
238
- \setstretch{1.2}
239
- $endif$
240
- $--
241
- $-- paragraph formatting
242
- $--
243
- $if(indent)$
244
- $else$
245
- \makeatletter
246
- \@ifundefined{KOMAClassName}{% if non-KOMA class
247
- \IfFileExists{parskip.sty}{%
248
- \usepackage{parskip}
249
- }{% else
250
- \setlength{\parindent}{0pt}
251
- \setlength{\parskip}{6pt plus 2pt minus 1pt}}
252
- }{% if KOMA class
253
- \KOMAoptions{parskip=half}}
254
- \makeatother
255
- $endif$
256
- $if(beamer)$
257
- $else$
258
- $if(block-headings)$
259
- % Make \paragraph and \subparagraph free-standing
260
- \makeatletter
261
- \ifx\paragraph\undefined\else
262
- \let\oldparagraph\paragraph
263
- \renewcommand{\paragraph}{
264
- \@ifstar
265
- \xxxParagraphStar
266
- \xxxParagraphNoStar
267
- }
268
- \newcommand{\xxxParagraphStar}[1]{\oldparagraph*{#1}\mbox{}}
269
- \newcommand{\xxxParagraphNoStar}[1]{\oldparagraph{#1}\mbox{}}
270
- \fi
271
- \ifx\subparagraph\undefined\else
272
- \let\oldsubparagraph\subparagraph
273
- \renewcommand{\subparagraph}{
274
- \@ifstar
275
- \xxxSubParagraphStar
276
- \xxxSubParagraphNoStar
277
- }
278
- \newcommand{\xxxSubParagraphStar}[1]{\oldsubparagraph*{#1}\mbox{}}
279
- \newcommand{\xxxSubParagraphNoStar}[1]{\oldsubparagraph{#1}\mbox{}}
280
- \fi
281
- \makeatother
282
- $endif$
283
- $endif$
284
- $--
285
- $-- verbatim in notes
286
- $--
287
- $if(verbatim-in-note)$
288
- \usepackage{fancyvrb}
289
- $endif$
290
- $-- highlighting
291
- $if(listings)$
292
- \usepackage{listings}
293
- \newcommand{\passthrough}[1]{#1}
294
- \lstset{defaultdialect=[5.3]Lua}
295
- \lstset{defaultdialect=[x86masm]Assembler}
296
- $endif$
297
- $if(listings-no-page-break)$
298
- \usepackage{etoolbox}
299
- \BeforeBeginEnvironment{lstlisting}{\par\noindent\begin{minipage}{\linewidth}}
300
- \AfterEndEnvironment{lstlisting}{\end{minipage}\par\addvspace{\topskip}}
301
- $endif$
302
- $if(lhs)$
303
- \lstnewenvironment{code}{\lstset{language=Haskell,basicstyle=\small\ttfamily}}{}
304
- $endif$
305
- $if(highlighting-macros)$
306
- $highlighting-macros$
307
-
308
- % Workaround/bugfix from jannick0.
309
- % See https://github.com/jgm/pandoc/issues/4302#issuecomment-360669013)
310
- % or https://github.com/Wandmalfarbe/pandoc-latex-template/issues/2
311
- %
312
- % Redefine the verbatim environment 'Highlighting' to break long lines (with
313
- % the help of fvextra). Redefinition is necessary because it is unlikely that
314
- % pandoc includes fvextra in the default template.
315
- \usepackage{fvextra}
316
- \DefineVerbatimEnvironment{Highlighting}{Verbatim}{breaklines,fontsize=$if(code-block-font-size)$$code-block-font-size$$else$\small$endif$,commandchars=\\\{\}}
317
-
318
- $endif$
319
- $--
320
- $-- tables
321
- $--
322
- $if(tables)$
323
- \usepackage{longtable,booktabs,array}
324
- $if(multirow)$
325
- \usepackage{multirow}
326
- $endif$
327
- \usepackage{calc} % for calculating minipage widths
328
- $if(beamer)$
329
- \usepackage{caption}
330
- % Make caption package work with longtable
331
- \makeatletter
332
- \def\fnum@table{\tablename~\thetable}
333
- \makeatother
334
- $else$
335
- % Correct order of tables after \paragraph or \subparagraph
336
- \usepackage{etoolbox}
337
- \makeatletter
338
- \patchcmd\longtable{\par}{\if@noskipsec\mbox{}\fi\par}{}{}
339
- \makeatother
340
- % Allow footnotes in longtable head/foot
341
- \IfFileExists{footnotehyper.sty}{\usepackage{footnotehyper}}{\usepackage{footnote}}
342
- \makesavenoteenv{longtable}
343
- $endif$
344
- $endif$
345
- $--
346
- $-- graphics
347
- $--
348
- $if(graphics)$
349
- \usepackage{graphicx}
350
- \makeatletter
351
- \newsavebox\pandoc@box
352
- \newcommand*\pandocbounded[1]{% scales image to fit in text height/width
353
- \sbox\pandoc@box{#1}%
354
- \Gscale@div\@tempa{\textheight}{\dimexpr\ht\pandoc@box+\dp\pandoc@box\relax}%
355
- \Gscale@div\@tempb{\linewidth}{\wd\pandoc@box}%
356
- \ifdim\@tempb\p@<\@tempa\p@\let\@tempa\@tempb\fi% select the smaller of both
357
- \ifdim\@tempa\p@<\p@\scalebox{\@tempa}{\usebox\pandoc@box}%
358
- \else\usebox{\pandoc@box}%
359
- \fi%
360
- }
361
- % Set default figure placement to htbp
362
- % Make use of float-package and set default placement for figures to H.
363
- % The option H means 'PUT IT HERE' (as opposed to the standard h option which means 'You may put it here if you like').
364
- \usepackage{float}
365
- \floatplacement{figure}{$if(float-placement-figure)$$float-placement-figure$$else$H$endif$}
366
- \makeatother
367
- $endif$
368
- $if(svg)$
369
- \usepackage{svg}
370
- $endif$
371
- $--
372
- $-- strikeout/underline
373
- $--
374
- $if(strikeout)$
375
- \ifLuaTeX
376
- \usepackage{luacolor}
377
- \usepackage[soul]{lua-ul}
378
- \else
379
- \usepackage{soul}
380
- $if(beamer)$
381
- \makeatletter
382
- \let\HL\hl
383
- \renewcommand\hl{% fix for beamer highlighting
384
- \let\set@color\beamerorig@set@color
385
- \let\reset@color\beamerorig@reset@color
386
- \HL}
387
- \makeatother
388
- $endif$
389
- $if(CJKmainfont)$
390
- \ifXeTeX
391
- % soul's \st doesn't work for CJK:
392
- \usepackage{xeCJKfntef}
393
- \renewcommand{\st}[1]{\sout{#1}}
394
- \fi
395
- $endif$
396
- \fi
397
- $endif$
398
- $--
399
- $-- CSL citations
400
- $--
401
- $if(csl-refs)$
402
- % definitions for citeproc citations
403
- \NewDocumentCommand\citeproctext{}{}
404
- \NewDocumentCommand\citeproc{mm}{%
405
- \begingroup\def\citeproctext{#2}\cite{#1}\endgroup}
406
- \makeatletter
407
- % allow citations to break across lines
408
- \let\@cite@ofmt\@firstofone
409
- % avoid brackets around text for \cite:
410
- \def\@biblabel#1{}
411
- \def\@cite#1#2{{#1\if@tempswa , #2\fi}}
412
- \makeatother
413
- \newlength{\cslhangindent}
414
- \setlength{\cslhangindent}{1.5em}
415
- \newlength{\csllabelwidth}
416
- \setlength{\csllabelwidth}{3em}
417
- \newenvironment{CSLReferences}[2] % #1 hanging-indent, #2 entry-spacing
418
- {\begin{list}{}{%
419
- \setlength{\itemindent}{0pt}
420
- \setlength{\leftmargin}{0pt}
421
- \setlength{\parsep}{0pt}
422
- % turn on hanging indent if param 1 is 1
423
- \ifodd #1
424
- \setlength{\leftmargin}{\cslhangindent}
425
- \setlength{\itemindent}{-1\cslhangindent}
426
- \fi
427
- % set entry spacing
428
- \setlength{\itemsep}{#2\baselineskip}}}
429
- {\end{list}}
430
- \usepackage{calc}
431
- \newcommand{\CSLBlock}[1]{\hfill\break\parbox[t]{\linewidth}{\strut\ignorespaces#1\strut}}
432
- \newcommand{\CSLLeftMargin}[1]{\parbox[t]{\csllabelwidth}{\strut#1\strut}}
433
- \newcommand{\CSLRightInline}[1]{\parbox[t]{\linewidth - \csllabelwidth}{\strut#1\strut}}
434
- \newcommand{\CSLIndent}[1]{\hspace{\cslhangindent}#1}
435
- $endif$
436
- $--
437
- $-- Babel language support
438
- $--
439
- $if(lang)$
440
- \ifLuaTeX
441
- \usepackage[bidi=basic,shorthands=off,$for(babeloptions)$,$babeloptions$$endfor$]{babel}
442
- \else
443
- \usepackage[bidi=default,shorthands=off,$for(babeloptions)$,$babeloptions$$endfor$]{babel}
444
- \fi
445
- $if(babel-lang)$
446
- $if(mainfont)$
447
- \ifPDFTeX
448
- \else
449
- \babelfont{rm}[$for(mainfontoptions)$$mainfontoptions$$sep$,$endfor$$if(mainfontfallback)$,RawFeature={fallback=mainfontfallback}$endif$]{$mainfont$}
450
- \fi
451
- $endif$
452
- $endif$
453
- $for(babelfonts/pairs)$
454
- \babelfont[$babelfonts.key$]{rm}{$babelfonts.value$}
455
- $endfor$
456
- \ifLuaTeX
457
- \usepackage{selnolig} % disable illegal ligatures
458
- \fi
459
- $endif$
460
- $--
461
- $-- pagestyle
462
- $--
463
- $if(pagestyle)$
464
- \pagestyle{$pagestyle$}
465
- $endif$
466
- $--
467
- $-- prevent overfull lines
468
- $--
469
- \setlength{\emergencystretch}{3em} % prevent overfull lines
470
- $--
471
- $-- tight lists
472
- $--
473
- \providecommand{\tightlist}{%
474
- \setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}}
475
- $--
476
- $-- subfigure support
477
- $--
478
- $if(subfigure)$
479
- \usepackage{subcaption}
480
- $endif$
481
- $--
482
- $-- text direction support for pdftex
483
- $--
484
- $if(dir)$
485
- \ifPDFTeX
486
- \TeXXeTstate=1
487
- \newcommand{\RL}[1]{\beginR #1\endR}
488
- \newcommand{\LR}[1]{\beginL #1\endL}
489
- \newenvironment{RTL}{\beginR}{\endR}
490
- \newenvironment{LTR}{\beginL}{\endL}
491
- \fi
492
- $endif$
493
- $--
494
- $-- bibliography support support for natbib and biblatex
495
- $--
496
- $if(natbib)$
497
- \usepackage[$natbiboptions$]{natbib}
498
- \bibliographystyle{$if(biblio-style)$$biblio-style$$else$plainnat$endif$}
499
- $endif$
500
- $if(biblatex)$
501
- \usepackage[$if(biblio-style)$style=$biblio-style$,$endif$$for(biblatexoptions)$$biblatexoptions$$sep$,$endfor$]{biblatex}
502
- $for(bibliography)$
503
- \addbibresource{$bibliography$}
504
- $endfor$
505
- $endif$
506
- $--
507
- $-- csquotes
508
- $--
509
- $if(csquotes)$
510
- \usepackage[$for(csquotesoptions)$$csquotesoptions$$sep$,$endfor$]{csquotes}
511
- $endif$
512
- $for(header-includes)$
513
- $header-includes$
514
- $endfor$
515
- \usepackage{bookmark}
516
- \IfFileExists{xurl.sty}{\usepackage{xurl}}{} % add URL line breaks if available
517
- \urlstyle{$if(urlstyle)$$urlstyle$$else$same$endif$}
518
- $if(links-as-notes)$
519
- % Make links footnotes instead of hotlinks:
520
- \DeclareRobustCommand{\href}[2]{#2\footnote{\url{#1}}}
521
- $endif$
522
- $if(verbatim-in-note)$
523
- \VerbatimFootnotes % allow verbatim text in footnotes
524
- $endif$
525
- \definecolor{default-linkcolor}{HTML}{A50000}
526
- \definecolor{default-filecolor}{HTML}{A50000}
527
- \definecolor{default-citecolor}{HTML}{4077C0}
528
- \definecolor{default-urlcolor}{HTML}{4077C0}
529
-
530
- \hypersetup{
531
- $if(title-meta)$
532
- pdftitle={$title-meta$},
533
- $endif$
534
- $if(author-meta)$
535
- pdfauthor={$author-meta$},
536
- $endif$
537
- $if(lang)$
538
- pdflang={$lang$},
539
- $endif$
540
- $if(subject)$
541
- pdfsubject={$subject$},
542
- $endif$
543
- $if(keywords)$
544
- pdfkeywords={$for(keywords)$$keywords$$sep$, $endfor$},
545
- $endif$
546
- $if(colorlinks)$
547
- colorlinks=true,
548
- linkcolor={$if(linkcolor)$$linkcolor$$else$default-linkcolor$endif$},
549
- filecolor={$if(filecolor)$$filecolor$$else$default-filecolor$endif$},
550
- citecolor={$if(citecolor)$$citecolor$$else$default-citecolor$endif$},
551
- urlcolor={$if(urlcolor)$$urlcolor$$else$default-urlcolor$endif$},
552
- $else$
553
- $if(boxlinks)$
554
- $else$
555
- hidelinks,
556
- $endif$
557
- $endif$
558
- breaklinks=true,
559
- pdfcreator={LaTeX via pandoc with the Eisvogel template}}
560
-
561
- $if(title)$
562
- \title{$title$$if(thanks)$\thanks{$thanks$}$endif$}
563
- $endif$
564
- $if(subtitle)$
565
- \usepackage{etoolbox}
566
- \makeatletter
567
- \providecommand{\subtitle}[1]{% add subtitle to \maketitle
568
- \apptocmd{\@title}{\par {\large #1 \par}}{}{}
569
- }
570
- \makeatother
571
- \subtitle{$subtitle$}
572
- $endif$
573
- \author{$for(author)$$author$$sep$ \and $endfor$}
574
- \date{$date$}
575
-
576
- $if(page-background)$
577
- \usepackage[pages=all]{background}
578
- $endif$
579
-
580
- %
581
- % for the background color of the title page
582
- %
583
- $if(titlepage)$
584
- \usepackage{pagecolor}
585
- \usepackage{afterpage}
586
- $if(titlepage-background)$
587
- \usepackage{tikz}
588
- $endif$
589
- $if(geometry)$
590
- $else$
591
- \usepackage[margin=2.5cm,includehead=true,includefoot=true,centering]{geometry}
592
- $endif$
593
- $endif$
594
-
595
- %
596
- % break urls
597
- %
598
- \PassOptionsToPackage{hyphens}{url}
599
-
600
- %
601
- % When using babel or polyglossia with biblatex, loading csquotes is recommended
602
- % to ensure that quoted texts are typeset according to the rules of your main language.
603
- %
604
- \usepackage{csquotes}
605
-
606
- %
607
- % captions
608
- %
609
- \definecolor{caption-color}{HTML}{777777}
610
- \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}
611
- \setcapindent{0em}
612
-
613
- %
614
- % blockquote
615
- %
616
- \definecolor{blockquote-border}{RGB}{221,221,221}
617
- \definecolor{blockquote-text}{RGB}{119,119,119}
618
- \usepackage{mdframed}
619
- \newmdenv[rightline=false,bottomline=false,topline=false,linewidth=3pt,linecolor=blockquote-border,skipabove=\parskip]{customblockquote}
620
- \renewenvironment{quote}{\begin{customblockquote}\list{}{\rightmargin=0em\leftmargin=0em}%
621
- \item\relax\color{blockquote-text}\ignorespaces}{\unskip\unskip\endlist\end{customblockquote}}
622
-
623
- %
624
- % Source Sans Pro as the default font family
625
- % Source Code Pro for monospace text
626
- %
627
- % 'default' option sets the default
628
- % font family to Source Sans Pro, not \sfdefault.
629
- %
630
- \ifnum 0\ifxetex 1\fi\ifluatex 1\fi=0 % if pdftex
631
- $if(fontfamily)$
632
- $else$
633
- \usepackage[default]{sourcesanspro}
634
- \usepackage{sourcecodepro}
635
- $endif$
636
- \else % if not pdftex
637
- $if(mainfont)$
638
- $else$
639
- \usepackage[fallback]{xeCJK}
640
- \setCJKmainfont{Noto Serif SC}
641
- \setCJKfallbackfamilyfont{rm}{Noto Serif SC}
642
- \usepackage[default]{sourcesanspro}
643
- \usepackage{sourcecodepro}
644
-
645
- % XeLaTeX specific adjustments for straight quotes: https://tex.stackexchange.com/a/354887
646
- % This issue is already fixed (see https://github.com/silkeh/latex-sourcecodepro/pull/5) but the
647
- % fix is still unreleased.
648
- % TODO: Remove this workaround when the new version of sourcecodepro is released on CTAN.
649
- \ifxetex
650
- \makeatletter
651
- \defaultfontfeatures[\ttfamily]
652
- { Numbers = \sourcecodepro@figurestyle,
653
- Scale = \SourceCodePro@scale,
654
- Extension = .otf }
655
- \setmonofont
656
- [ UprightFont = *-\sourcecodepro@regstyle,
657
- ItalicFont = *-\sourcecodepro@regstyle It,
658
- BoldFont = *-\sourcecodepro@boldstyle,
659
- BoldItalicFont = *-\sourcecodepro@boldstyle It ]
660
- {SourceCodePro}
661
- \makeatother
662
- \fi
663
- $endif$
664
- \fi
665
-
666
- %
667
- % heading color
668
- %
669
- \definecolor{heading-color}{RGB}{40,40,40}
670
- \addtokomafont{section}{\color{heading-color}}
671
- % When using the classes report, scrreprt, book,
672
- % scrbook or memoir, uncomment the following line.
673
- %\addtokomafont{chapter}{\color{heading-color}}
674
-
675
- %
676
- % variables for title, author and date
677
- %
678
- \usepackage{titling}
679
- \title{$title$}
680
- \author{$for(author)$$author$$sep$, $endfor$}
681
- \date{$date$}
682
-
683
- %
684
- % tables
685
- %
686
- $if(tables)$
687
-
688
- \definecolor{table-row-color}{HTML}{F5F5F5}
689
- \definecolor{table-rule-color}{HTML}{999999}
690
-
691
- %\arrayrulecolor{black!40}
692
- \arrayrulecolor{table-rule-color} % color of \toprule, \midrule, \bottomrule
693
- \setlength\heavyrulewidth{0.3ex} % thickness of \toprule, \bottomrule
694
- \renewcommand{\arraystretch}{1.3} % spacing (padding)
695
-
696
- $if(table-use-row-colors)$
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
- \usepackage{etoolbox}
705
- \AtBeginEnvironment{longtable}{\rowcolors{2}{}{table-row-color!100}}
706
- \preto{\toprule}{\hiderowcolors}{}{}
707
- \appto{\endhead}{\showrowcolors}{}{}
708
- \appto{\endfirsthead}{\showrowcolors}{}{}
709
- $endif$
710
- $endif$
711
-
712
- %
713
- % remove paragraph indentation
714
- %
715
- \setlength{\parindent}{0pt}
716
- \setlength{\parskip}{6pt plus 2pt minus 1pt}
717
- \setlength{\emergencystretch}{3em} % prevent overfull lines
718
-
719
- %
720
- %
721
- % Listings
722
- %
723
- %
724
-
725
- $if(listings)$
726
-
727
- %
728
- % general listing colors
729
- %
730
- \definecolor{listing-background}{HTML}{F7F7F7}
731
- \definecolor{listing-rule}{HTML}{B3B2B3}
732
- \definecolor{listing-numbers}{HTML}{B3B2B3}
733
- \definecolor{listing-text-color}{HTML}{000000}
734
- \definecolor{listing-keyword}{HTML}{435489}
735
- \definecolor{listing-keyword-2}{HTML}{1284CA} % additional keywords
736
- \definecolor{listing-keyword-3}{HTML}{9137CB} % additional keywords
737
- \definecolor{listing-identifier}{HTML}{435489}
738
- \definecolor{listing-string}{HTML}{00999A}
739
- \definecolor{listing-comment}{HTML}{8E8E8E}
740
-
741
- \lstdefinestyle{eisvogel_listing_style}{
742
- language = java,
743
- $if(listings-disable-line-numbers)$
744
- xleftmargin = 0.6em,
745
- framexleftmargin = 0.4em,
746
- $else$
747
- numbers = left,
748
- xleftmargin = 2.7em,
749
- framexleftmargin = 2.5em,
750
- $endif$
751
- backgroundcolor = \color{listing-background},
752
- basicstyle = \color{listing-text-color}\linespread{1.0}%
753
- \lst@ifdisplaystyle%
754
- $if(code-block-font-size)$$code-block-font-size$$else$\small$endif$%
755
- \fi\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(disable-header-and-footer)$
850
- $else$
851
- \usepackage[headsepline,footsepline]{scrlayer-scrpage}
852
-
853
- \newpairofpagestyles{eisvogel-header-footer}{
854
- \clearpairofpagestyles
855
- \ihead*{$if(header-left)$$header-left$$else$$title$$endif$}
856
- \chead*{$if(header-center)$$header-center$$else$$endif$}
857
- \ohead*{$if(header-right)$$header-right$$else$$date$$endif$}
858
- \ifoot*{$if(footer-left)$$footer-left$$else$$for(author)$$author$$sep$, $endfor$$endif$}
859
- \cfoot*{$if(footer-center)$$footer-center$$else$$endif$}
860
- \ofoot*{$if(footer-right)$$footer-right$$else$\thepage$endif$}
861
- \addtokomafont{pageheadfoot}{\upshape}
862
- }
863
- \pagestyle{eisvogel-header-footer}
864
-
865
- $if(book)$
866
- \deftripstyle{ChapterStyle}{}{}{}{}{\pagemark}{}
867
- \renewcommand*{\chapterpagestyle}{ChapterStyle}
868
- $endif$
869
-
870
- $if(page-background)$
871
- \backgroundsetup{
872
- scale=1,
873
- color=black,
874
- opacity=$if(page-background-opacity)$$page-background-opacity$$else$0.2$endif$,
875
- angle=0,
876
- contents={%
877
- \includegraphics[width=\paperwidth,height=\paperheight]{$page-background$}
878
- }%
879
- }
880
- $endif$
881
- $endif$
882
-
883
- %
884
- % Define watermark
885
- %
886
- $if(watermark)$
887
- \usepackage{draftwatermark}
888
- \SetWatermarkText{$watermark$}
889
- \SetWatermarkScale{.5}
890
- $endif$
891
-
892
- \begin{document}
893
-
894
- $if(titlepage)$
895
- \begin{titlepage}
896
- $if(titlepage-background)$
897
- \newgeometry{top=2cm, right=4cm, bottom=3cm, left=4cm}
898
- $else$
899
- \newgeometry{left=6cm}
900
- $endif$
901
- $if(titlepage-color)$
902
- \definecolor{titlepage-color}{HTML}{$titlepage-color$}
903
- \newpagecolor{titlepage-color}\afterpage{\restorepagecolor}
904
- $endif$
905
- $if(titlepage-background)$
906
- \tikz[remember picture,overlay] \node[inner sep=0pt] at (current page.center){\includegraphics[width=\paperwidth,height=\paperheight]{$titlepage-background$}};
907
- $endif$
908
- \newcommand{\colorRule}[3][black]{\textcolor[HTML]{#1}{\rule{#2}{#3}}}
909
- \begin{flushleft}
910
- \noindent
911
- \\[-1em]
912
- \color[HTML]{$if(titlepage-text-color)$$titlepage-text-color$$else$5F5F5F$endif$}
913
- \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}}
914
- \par
915
- \noindent
916
-
917
- $if(titlepage-background)$
918
- % The titlepage with a background image has other text spacing and text size
919
- {
920
- \setstretch{2}
921
- \vfill
922
- \vskip -8em
923
- \noindent {\huge \textbf{\textsf{$title$}}}
924
- $if(subtitle)$
925
- \vskip 1em
926
- {\Large \textsf{$subtitle$}}
927
- $endif$
928
- \vskip 2em
929
- \noindent {\Large \textsf{$for(author)$$author$$sep$, $endfor$} \vskip 0.6em \textsf{$date$}}
930
- \vfill
931
- }
932
- $else$
933
- {
934
- \setstretch{1.4}
935
- \vfill
936
- \noindent {\huge \textbf{\textsf{$title$}}}
937
- $if(subtitle)$
938
- \vskip 1em
939
- {\Large \textsf{$subtitle$}}
940
- $endif$
941
- \vskip 2em
942
- \noindent {\Large \textsf{$for(author)$$author$$sep$, $endfor$}}
943
- \vfill
944
- }
945
- $endif$
946
-
947
- $if(titlepage-logo)$
948
- \noindent
949
- \includegraphics[width=$if(logo-width)$$logo-width$$else$35mm$endif$, left]{$titlepage-logo$}
950
- $endif$
951
-
952
- $if(titlepage-background)$
953
- $else$
954
- \textsf{$date$}
955
- $endif$
956
- \end{flushleft}
957
- \end{titlepage}
958
- \restoregeometry
959
- \pagenumbering{arabic}
960
- $endif$
961
-
962
- $if(has-frontmatter)$
963
- \frontmatter
964
- $endif$
965
- $if(title)$
966
- % don't generate the default title
967
- % \maketitle
968
- $if(abstract)$
969
- \begin{abstract}
970
- $abstract$
971
- \end{abstract}
972
- $endif$
973
- $endif$
974
-
975
- $if(first-chapter)$
976
- \setcounter{chapter}{$first-chapter$}
977
- \addtocounter{chapter}{-1}
978
- $endif$
979
-
980
- $for(include-before)$
981
- $include-before$
982
-
983
- $endfor$
984
- $if(toc)$
985
- $if(toc-title)$
986
- \renewcommand*\contentsname{$toc-title$}
987
- $endif$
988
- {
989
- $if(colorlinks)$
990
- \hypersetup{linkcolor=$if(toccolor)$$toccolor$$else$$endif$}
991
- $endif$
992
- \setcounter{tocdepth}{$toc-depth$}
993
- \tableofcontents
994
- $if(toc-own-page)$
995
- \newpage
996
- $endif$
997
- }
998
- $endif$
999
- $if(lof)$
1000
- \listoffigures
1001
- $endif$
1002
- $if(lot)$
1003
- \listoftables
1004
- $endif$
1005
- $if(linestretch)$
1006
- \setstretch{$linestretch$}
1007
- $endif$
1008
- $if(has-frontmatter)$
1009
- \mainmatter
1010
- $endif$
1011
- $body$
1012
-
1013
- $if(has-frontmatter)$
1014
- \backmatter
1015
- $endif$
1016
- $if(nocite-ids)$
1017
- \nocite{$for(nocite-ids)$$it$$sep$, $endfor$}
1018
- $endif$
1019
- $if(natbib)$
1020
- $if(bibliography)$
1021
- $if(biblio-title)$
1022
- $if(has-chapters)$
1023
- \renewcommand\bibname{$biblio-title$}
1024
- $else$
1025
- \renewcommand\refname{$biblio-title$}
1026
- $endif$
1027
- $endif$
1028
- \bibliography{$for(bibliography)$$bibliography$$sep$,$endfor$}
1029
-
1030
- $endif$
1031
- $endif$
1032
- $if(biblatex)$
1033
- \printbibliography$if(biblio-title)$[title=$biblio-title$]$endif$
1034
-
1035
- $endif$
1036
- $for(include-after)$
1037
- $include-after$
1038
-
1039
- $endfor$
1040
- \end{document}