german.latex 14 KB

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