german-draft.latex 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527
  1. % Options for packages loaded elsewhere
  2. \PassOptionsToPackage{unicode$for(hyperrefoptions)$,$hyperrefoptions$$endfor$}{hyperref}
  3. \PassOptionsToPackage{hyphens}{url}
  4. $if(colorlinks)$
  5. \PassOptionsToPackage{dvipsnames,svgnames*,x11names*}{xcolor}
  6. $endif$
  7. $if(dir)$
  8. $if(latex-dir-rtl)$
  9. \PassOptionsToPackage{RTLdocument}{bidi}
  10. $endif$
  11. $endif$
  12. $if(CJKmainfont)$
  13. \PassOptionsToPackage{space}{xeCJK}
  14. $endif$
  15. %
  16. \documentclass[
  17. $if(fontsize)$
  18. $fontsize$,
  19. $endif$
  20. $if(lang)$
  21. $babel-lang$,
  22. $endif$
  23. $if(papersize)$
  24. $papersize$paper,
  25. $endif$
  26. $if(beamer)$
  27. ignorenonframetext,
  28. $if(handout)$
  29. handout,
  30. $endif$
  31. $if(aspectratio)$
  32. aspectratio=$aspectratio$,
  33. $endif$
  34. $endif$
  35. $for(classoption)$
  36. $classoption$$sep$,
  37. $endfor$
  38. draft
  39. ]{$documentclass$}
  40. $if(beamer)$
  41. $if(background-image)$
  42. \usebackgroundtemplate{%
  43. \includegraphics[width=\paperwidth]{$background-image$}%
  44. }
  45. $endif$
  46. \usepackage{pgfpages}
  47. \setbeamertemplate{caption}[numbered]
  48. \setbeamertemplate{caption label separator}{: }
  49. \setbeamercolor{caption name}{fg=normal text.fg}
  50. \beamertemplatenavigationsymbols$if(navigation)$$navigation$$else$empty$endif$
  51. $for(beameroption)$
  52. \setbeameroption{$beameroption$}
  53. $endfor$
  54. % Prevent slide breaks in the middle of a paragraph
  55. \widowpenalties 1 10000
  56. \raggedbottom
  57. $if(section-titles)$
  58. \setbeamertemplate{part page}{
  59. \centering
  60. \begin{beamercolorbox}[sep=16pt,center]{part title}
  61. \usebeamerfont{part title}\insertpart\par
  62. \end{beamercolorbox}
  63. }
  64. \setbeamertemplate{section page}{
  65. \centering
  66. \begin{beamercolorbox}[sep=12pt,center]{part title}
  67. \usebeamerfont{section title}\insertsection\par
  68. \end{beamercolorbox}
  69. }
  70. \setbeamertemplate{subsection page}{
  71. \centering
  72. \begin{beamercolorbox}[sep=8pt,center]{part title}
  73. \usebeamerfont{subsection title}\insertsubsection\par
  74. \end{beamercolorbox}
  75. }
  76. \AtBeginPart{
  77. \frame{\partpage}
  78. }
  79. \AtBeginSection{
  80. \ifbibliography
  81. \else
  82. \frame{\sectionpage}
  83. \fi
  84. }
  85. \AtBeginSubsection{
  86. \frame{\subsectionpage}
  87. }
  88. $endif$
  89. $endif$
  90. $if(beamerarticle)$
  91. \usepackage{beamerarticle} % needs to be loaded first
  92. $endif$
  93. \usepackage{amsmath,amssymb}
  94. $if(fontfamily)$
  95. \usepackage[$for(fontfamilyoptions)$$fontfamilyoptions$$sep$,$endfor$]{$fontfamily$}
  96. $else$
  97. \usepackage{lmodern}
  98. $endif$
  99. $if(linestretch)$
  100. \usepackage{setspace}
  101. $endif$
  102. \usepackage{ifxetex,ifluatex}
  103. \usepackage{tgheros}
  104. \usepackage{mathptmx}
  105. \usepackage{sectsty}
  106. \usepackage[ngerman]{babel}
  107. \allsectionsfont{\sffamily}
  108. \ifnum 0\ifxetex 1\fi\ifluatex 1\fi=0 % if pdftex
  109. \usepackage[$if(fontenc)$$fontenc$$else$T1$endif$]{fontenc}
  110. \usepackage[utf8]{inputenc}
  111. \usepackage{textcomp} % provide euro and other symbols
  112. \else % if luatex or xetex
  113. $if(mathspec)$
  114. \ifxetex
  115. \usepackage{mathspec}
  116. \else
  117. \usepackage{unicode-math}
  118. \fi
  119. $else$
  120. \usepackage{unicode-math}
  121. $endif$
  122. \defaultfontfeatures{Scale=MatchLowercase}
  123. \defaultfontfeatures[\rmfamily]{Ligatures=TeX,Scale=1}
  124. $if(mainfont)$
  125. \setmainfont[$for(mainfontoptions)$$mainfontoptions$$sep$,$endfor$]{$mainfont$}
  126. $endif$
  127. $if(sansfont)$
  128. \setsansfont[$for(sansfontoptions)$$sansfontoptions$$sep$,$endfor$]{$sansfont$}
  129. $endif$
  130. $if(monofont)$
  131. \setmonofont[$for(monofontoptions)$$monofontoptions$$sep$,$endfor$]{$monofont$}
  132. $endif$
  133. $for(fontfamilies)$
  134. \newfontfamily{$fontfamilies.name$}[$for(fontfamilies.options)$$fontfamilies.options$$sep$,$endfor$]{$fontfamilies.font$}
  135. $endfor$
  136. $if(mathfont)$
  137. $if(mathspec)$
  138. \ifxetex
  139. \setmathfont(Digits,Latin,Greek)[$for(mathfontoptions)$$mathfontoptions$$sep$,$endfor$]{$mathfont$}
  140. \else
  141. \setmathfont[$for(mathfontoptions)$$mathfontoptions$$sep$,$endfor$]{$mathfont$}
  142. \fi
  143. $else$
  144. \setmathfont[$for(mathfontoptions)$$mathfontoptions$$sep$,$endfor$]{$mathfont$}
  145. $endif$
  146. $endif$
  147. $if(CJKmainfont)$
  148. \ifxetex
  149. \usepackage{xeCJK}
  150. \setCJKmainfont[$for(CJKoptions)$$CJKoptions$$sep$,$endfor$]{$CJKmainfont$}
  151. \fi
  152. $endif$
  153. $if(luatexjapresetoptions)$
  154. \ifluatex
  155. \usepackage[$for(luatexjapresetoptions)$$luatexjapresetoptions$$sep$,$endfor$]{luatexja-preset}
  156. \fi
  157. $endif$
  158. $if(CJKmainfont)$
  159. \ifluatex
  160. \usepackage[$for(luatexjafontspecoptions)$$luatexjafontspecoptions$$sep$,$endfor$]{luatexja-fontspec}
  161. \setmainjfont[$for(CJKoptions)$$CJKoptions$$sep$,$endfor$]{$CJKmainfont$}
  162. \fi
  163. $endif$
  164. \fi
  165. $if(beamer)$
  166. $if(theme)$
  167. \usetheme[$for(themeoptions)$$themeoptions$$sep$,$endfor$]{$theme$}
  168. $endif$
  169. $if(colortheme)$
  170. \usecolortheme{$colortheme$}
  171. $endif$
  172. $if(fonttheme)$
  173. \usefonttheme{$fonttheme$}
  174. $endif$
  175. $if(mainfont)$
  176. \usefonttheme{serif} % use mainfont rather than sansfont for slide text
  177. $endif$
  178. $if(innertheme)$
  179. \useinnertheme{$innertheme$}
  180. $endif$
  181. $if(outertheme)$
  182. \useoutertheme{$outertheme$}
  183. $endif$
  184. $endif$
  185. % Use upquote if available, for straight quotes in verbatim environments
  186. \IfFileExists{upquote.sty}{\usepackage{upquote}}{}
  187. \IfFileExists{microtype.sty}{% use microtype if available
  188. \usepackage[$for(microtypeoptions)$$microtypeoptions$$sep$,$endfor$]{microtype}
  189. \UseMicrotypeSet[protrusion]{basicmath} % disable protrusion for tt fonts
  190. }{}
  191. $if(indent)$
  192. $else$
  193. \makeatletter
  194. \@ifundefined{KOMAClassName}{% if non-KOMA class
  195. \IfFileExists{parskip.sty}{%
  196. \usepackage{parskip}
  197. }{% else
  198. \setlength{\parindent}{0pt}
  199. \setlength{\parskip}{6pt plus 2pt minus 1pt}}
  200. }{% if KOMA class
  201. \KOMAoptions{parskip=half}}
  202. \makeatother
  203. $endif$
  204. $if(verbatim-in-note)$
  205. \usepackage{fancyvrb}
  206. $endif$
  207. \usepackage{xcolor}
  208. \IfFileExists{xurl.sty}{\usepackage{xurl}}{} % add URL line breaks if available
  209. \IfFileExists{bookmark.sty}{\usepackage{bookmark}}{\usepackage{hyperref}}
  210. \hypersetup{
  211. $if(title-meta)$
  212. pdftitle={$title-meta$},
  213. $endif$
  214. $if(author-meta)$
  215. pdfauthor={$author-meta$},
  216. $endif$
  217. $if(lang)$
  218. pdflang={$lang$},
  219. $endif$
  220. $if(subject)$
  221. pdfsubject={$subject$},
  222. $endif$
  223. $if(keywords)$
  224. pdfkeywords={$for(keywords)$$keywords$$sep$, $endfor$},
  225. $endif$
  226. $if(colorlinks)$
  227. colorlinks=true,
  228. linkcolor=$if(linkcolor)$$linkcolor$$else$Maroon$endif$,
  229. filecolor=$if(filecolor)$$filecolor$$else$Maroon$endif$,
  230. citecolor=$if(citecolor)$$citecolor$$else$Blue$endif$,
  231. urlcolor=$if(urlcolor)$$urlcolor$$else$Blue$endif$,
  232. $else$
  233. hidelinks,
  234. $endif$
  235. pdfcreator={LaTeX via pandoc}}
  236. \urlstyle{same} % disable monospaced font for URLs
  237. $if(verbatim-in-note)$
  238. \VerbatimFootnotes % allow verbatim text in footnotes
  239. $endif$
  240. $if(geometry)$
  241. $if(beamer)$
  242. \geometry{$for(geometry)$$geometry$$sep$,$endfor$}
  243. $else$
  244. \usepackage[$for(geometry)$$geometry$$sep$,$endfor$]{geometry}
  245. $endif$
  246. $endif$
  247. $if(beamer)$
  248. \newif\ifbibliography
  249. $endif$
  250. $if(listings)$
  251. \usepackage{listings}
  252. \newcommand{\passthrough}[1]{#1}
  253. \lstset{defaultdialect=[5.3]Lua}
  254. \lstset{defaultdialect=[x86masm]Assembler}
  255. $endif$
  256. $if(lhs)$
  257. \lstnewenvironment{code}{\lstset{language=Haskell,basicstyle=\small\ttfamily}}{}
  258. $endif$
  259. $if(highlighting-macros)$
  260. $highlighting-macros$
  261. $endif$
  262. $if(tables)$
  263. \usepackage{longtable,booktabs,array}
  264. \usepackage{calc} % for calculating minipage widths
  265. $if(beamer)$
  266. \usepackage{caption}
  267. % Make caption package work with longtable
  268. \makeatletter
  269. \def\fnum@table{\tablename~\thetable}
  270. \makeatother
  271. $else$
  272. % Correct order of tables after \paragraph or \subparagraph
  273. \usepackage{etoolbox}
  274. \makeatletter
  275. \patchcmd\longtable{\par}{\if@noskipsec\mbox{}\fi\par}{}{}
  276. \makeatother
  277. % Allow footnotes in longtable head/foot
  278. \IfFileExists{footnotehyper.sty}{\usepackage{footnotehyper}}{\usepackage{footnote}}
  279. \makesavenoteenv{longtable}
  280. $endif$
  281. $endif$
  282. $if(graphics)$
  283. \usepackage{graphicx}
  284. \makeatletter
  285. \def\maxwidth{\ifdim\Gin@nat@width>\linewidth\linewidth\else\Gin@nat@width\fi}
  286. \def\maxheight{\ifdim\Gin@nat@height>\textheight\textheight\else\Gin@nat@height\fi}
  287. \makeatother
  288. % Scale images if necessary, so that they will not overflow the page
  289. % margins by default, and it is still possible to overwrite the defaults
  290. % using explicit options in \includegraphics[width, height, ...]{}
  291. \setkeys{Gin}{width=\maxwidth,height=\maxheight,keepaspectratio}
  292. % Set default figure placement to htbp
  293. \makeatletter
  294. \def\fps@figure{htbp}
  295. \makeatother
  296. $endif$
  297. $if(links-as-notes)$
  298. % Make links footnotes instead of hotlinks:
  299. \DeclareRobustCommand{\href}[2]{#2\footnote{\url{#1}}}
  300. $endif$
  301. $if(strikeout)$
  302. \usepackage[normalem]{ulem}
  303. % Avoid problems with \sout in headers with hyperref
  304. \pdfstringdefDisableCommands{\renewcommand{\sout}{}}
  305. $endif$
  306. \setlength{\emergencystretch}{3em} % prevent overfull lines
  307. \providecommand{\tightlist}{%
  308. \setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}}
  309. $if(numbersections)$
  310. \setcounter{secnumdepth}{$if(secnumdepth)$$secnumdepth$$else$5$endif$}
  311. $else$
  312. \setcounter{secnumdepth}{-\maxdimen} % remove section numbering
  313. $endif$
  314. $if(beamer)$
  315. $else$
  316. $if(block-headings)$
  317. % Make \paragraph and \subparagraph free-standing
  318. \ifx\paragraph\undefined\else
  319. \let\oldparagraph\paragraph
  320. \renewcommand{\paragraph}[1]{\oldparagraph{#1}\mbox{}}
  321. \fi
  322. \ifx\subparagraph\undefined\else
  323. \let\oldsubparagraph\subparagraph
  324. \renewcommand{\subparagraph}[1]{\oldsubparagraph{#1}\mbox{}}
  325. \fi
  326. $endif$
  327. $endif$
  328. $if(pagestyle)$
  329. \pagestyle{$pagestyle$}
  330. $endif$
  331. $for(header-includes)$
  332. $header-includes$
  333. $endfor$
  334. $if(lang)$
  335. \ifxetex
  336. % Load polyglossia as late as possible: uses bidi with RTL langages (e.g. Hebrew, Arabic)
  337. \usepackage{polyglossia}
  338. \setmainlanguage[$for(polyglossia-lang.options)$$polyglossia-lang.options$$sep$,$endfor$]{$polyglossia-lang.name$}
  339. $for(polyglossia-otherlangs)$
  340. \setotherlanguage[$for(polyglossia-otherlangs.options)$$polyglossia-otherlangs.options$$sep$,$endfor$]{$polyglossia-otherlangs.name$}
  341. $endfor$
  342. \else
  343. \usepackage[$for(babel-otherlangs)$$babel-otherlangs$,$endfor$main=$babel-lang$]{babel}
  344. % get rid of language-specific shorthands (see #6817):
  345. \let\LanguageShortHands\languageshorthands
  346. \def\languageshorthands#1{}
  347. $if(babel-newcommands)$
  348. $babel-newcommands$
  349. $endif$
  350. \fi
  351. $endif$
  352. \ifluatex
  353. \usepackage{selnolig} % disable illegal ligatures
  354. \fi
  355. $if(dir)$
  356. \ifxetex
  357. % Load bidi as late as possible as it modifies e.g. graphicx
  358. \usepackage{bidi}
  359. \fi
  360. \ifnum 0\ifxetex 1\fi\ifluatex 1\fi=0 % if pdftex
  361. \TeXXeTstate=1
  362. \newcommand{\RL}[1]{\beginR #1\endR}
  363. \newcommand{\LR}[1]{\beginL #1\endL}
  364. \newenvironment{RTL}{\beginR}{\endR}
  365. \newenvironment{LTR}{\beginL}{\endL}
  366. \fi
  367. $endif$
  368. $if(natbib)$
  369. \usepackage[$natbiboptions$]{natbib}
  370. \bibliographystyle{$if(biblio-style)$$biblio-style$$else$plainnat$endif$}
  371. $endif$
  372. $if(biblatex)$
  373. \usepackage[$if(biblio-style)$style=$biblio-style$,$endif$$for(biblatexoptions)$$biblatexoptions$$sep$,$endfor$]{biblatex}
  374. $for(bibliography)$
  375. \addbibresource{$bibliography$}
  376. $endfor$
  377. $endif$
  378. $if(csl-refs)$
  379. \newlength{\cslhangindent}
  380. \setlength{\cslhangindent}{1.5em}
  381. \newlength{\csllabelwidth}
  382. \setlength{\csllabelwidth}{3em}
  383. \newenvironment{CSLReferences}[2] % #1 hanging-ident, #2 entry spacing
  384. {% don't indent paragraphs
  385. \setlength{\parindent}{0pt}
  386. % turn on hanging indent if param 1 is 1
  387. \ifodd #1 \everypar{\setlength{\hangindent}{\cslhangindent}}\ignorespaces\fi
  388. % set entry spacing
  389. \ifnum #2 > 0
  390. \setlength{\parskip}{#2\baselineskip}
  391. \fi
  392. }%
  393. {}
  394. \usepackage{calc}
  395. \newcommand{\CSLBlock}[1]{#1\hfill\break}
  396. \newcommand{\CSLLeftMargin}[1]{\parbox[t]{\csllabelwidth}{#1}}
  397. \newcommand{\CSLRightInline}[1]{\parbox[t]{\linewidth - \csllabelwidth}{#1}\break}
  398. \newcommand{\CSLIndent}[1]{\hspace{\cslhangindent}#1}
  399. $endif$
  400. $if(csquotes)$
  401. \usepackage{csquotes}
  402. $endif$
  403. $if(title)$
  404. \title{$title$$if(thanks)$\thanks{$thanks$}$endif$}
  405. $endif$
  406. $if(subtitle)$
  407. $if(beamer)$
  408. $else$
  409. \usepackage{etoolbox}
  410. \makeatletter
  411. \providecommand{\subtitle}[1]{% add subtitle to \maketitle
  412. \apptocmd{\@title}{\par {\large #1 \par}}{}{}
  413. }
  414. \makeatother
  415. $endif$
  416. \subtitle{$subtitle$}
  417. $endif$
  418. \author{$for(author)$$author$$sep$ \and $endfor$}
  419. \date{$date$}
  420. $if(beamer)$
  421. $if(institute)$
  422. \institute{$for(institute)$$institute$$sep$ \and $endfor$}
  423. $endif$
  424. $if(titlegraphic)$
  425. \titlegraphic{\includegraphics{$titlegraphic$}}
  426. $endif$
  427. $if(logo)$
  428. \logo{\includegraphics{$logo$}}
  429. $endif$
  430. $endif$
  431. \begin{document}
  432. $if(has-frontmatter)$
  433. \frontmatter
  434. $endif$
  435. $if(title)$
  436. $if(beamer)$
  437. \frame{\titlepage}
  438. $else$
  439. \maketitle
  440. $endif$
  441. $if(abstract)$
  442. \begin{abstract}
  443. $abstract$
  444. \end{abstract}
  445. $endif$
  446. $endif$
  447. $for(include-before)$
  448. $include-before$
  449. $endfor$
  450. $if(toc)$
  451. $if(toc-title)$
  452. \renewcommand*\contentsname{$toc-title$}
  453. $endif$
  454. $if(beamer)$
  455. \begin{frame}[allowframebreaks]
  456. $if(toc-title)$
  457. \frametitle{$toc-title$}
  458. $endif$
  459. \tableofcontents[hideallsubsections]
  460. \end{frame}
  461. $else$
  462. {
  463. $if(colorlinks)$
  464. \hypersetup{linkcolor=$if(toccolor)$$toccolor$$else$$endif$}
  465. $endif$
  466. \setcounter{tocdepth}{$toc-depth$}
  467. \tableofcontents
  468. }
  469. $endif$
  470. $endif$
  471. $if(lot)$
  472. \listoftables
  473. $endif$
  474. $if(lof)$
  475. \listoffigures
  476. $endif$
  477. $if(linestretch)$
  478. \setstretch{$linestretch$}
  479. $endif$
  480. $if(has-frontmatter)$
  481. \mainmatter
  482. $endif$
  483. $body$
  484. $if(has-frontmatter)$
  485. \backmatter
  486. $endif$
  487. $if(natbib)$
  488. $if(bibliography)$
  489. $if(biblio-title)$
  490. $if(has-chapters)$
  491. \renewcommand\bibname{$biblio-title$}
  492. $else$
  493. \renewcommand\refname{$biblio-title$}
  494. $endif$
  495. $endif$
  496. $if(beamer)$
  497. \begin{frame}[allowframebreaks]{$biblio-title$}
  498. \bibliographytrue
  499. $endif$
  500. \bibliography{$for(bibliography)$$bibliography$$sep$,$endfor$}
  501. $if(beamer)$
  502. \end{frame}
  503. $endif$
  504. $endif$
  505. $endif$
  506. $if(biblatex)$
  507. $if(beamer)$
  508. \begin{frame}[allowframebreaks]{$biblio-title$}
  509. \bibliographytrue
  510. \printbibliography[heading=none]
  511. \end{frame}
  512. $else$
  513. \printbibliography$if(biblio-title)$[title=$biblio-title$]$endif$
  514. $endif$
  515. $endif$
  516. $for(include-after)$
  517. $include-after$
  518. $endfor$
  519. \end{document}