|
|
@ -40,7 +40,8 @@ |
|
|
|
% https://github.com/Wandmalfarbe/pandoc-latex-template |
|
|
|
%% |
|
|
|
|
|
|
|
\PassOptionsToPackage{unicode=true$for(hyperrefoptions)$,$hyperrefoptions$$endfor$}{hyperref} % options for packages loaded elsewhere |
|
|
|
% Options for packages loaded elsewhere |
|
|
|
\PassOptionsToPackage{unicode$for(hyperrefoptions)$,$hyperrefoptions$$endfor$}{hyperref} |
|
|
|
\PassOptionsToPackage{hyphens}{url} |
|
|
|
\PassOptionsToPackage{dvipsnames,svgnames*,x11names*,table}{xcolor} |
|
|
|
$if(dir)$ |
|
|
@ -89,7 +90,7 @@ $endif$ |
|
|
|
$for(beameroption)$ |
|
|
|
\setbeameroption{$beameroption$} |
|
|
|
$endfor$ |
|
|
|
% Prevent slide breaks in the middle of a paragraph: |
|
|
|
% Prevent slide breaks in the middle of a paragraph |
|
|
|
\widowpenalties 1 10000 |
|
|
|
\raggedbottom |
|
|
|
$if(section-titles)$ |
|
|
@ -145,8 +146,8 @@ $endif$ |
|
|
|
\ifnum 0\ifxetex 1\fi\ifluatex 1\fi=0 % if pdftex |
|
|
|
\usepackage[$if(fontenc)$$fontenc$$else$T1$endif$]{fontenc} |
|
|
|
\usepackage[utf8]{inputenc} |
|
|
|
\usepackage{textcomp} % provides euro and other symbols |
|
|
|
\else % if luatex or xelatex |
|
|
|
\usepackage{textcomp} % provide euro and other symbols |
|
|
|
\else % if luatex or xetex |
|
|
|
$if(mathspec)$ |
|
|
|
\ifxetex |
|
|
|
\usepackage{mathspec} |
|
|
@ -219,7 +220,7 @@ $if(outertheme)$ |
|
|
|
\useoutertheme{$outertheme$} |
|
|
|
$endif$ |
|
|
|
$endif$ |
|
|
|
% use upquote if available, for straight quotes in verbatim environments |
|
|
|
% Use upquote if available, for straight quotes in verbatim environments |
|
|
|
\IfFileExists{upquote.sty}{\usepackage{upquote}}{} |
|
|
|
\IfFileExists{microtype.sty}{% use microtype if available |
|
|
|
\usepackage[$for(microtypeoptions)$$microtypeoptions$$sep$,$endfor$]{microtype} |
|
|
@ -268,12 +269,13 @@ $if(colorlinks)$ |
|
|
|
citecolor=$if(citecolor)$$citecolor$$else$default-citecolor$endif$, |
|
|
|
urlcolor=$if(urlcolor)$$urlcolor$$else$default-urlcolor$endif$, |
|
|
|
$else$ |
|
|
|
pdfborder={0 0 0}, |
|
|
|
hidelinks, |
|
|
|
$endif$ |
|
|
|
breaklinks=true} |
|
|
|
\urlstyle{same} % don't use monospace font for urls |
|
|
|
breaklinks=true, |
|
|
|
pdfcreator={LaTeX via pandoc with the Eisvogel template}} |
|
|
|
\urlstyle{same} % disable monospaced font for URLs |
|
|
|
$if(verbatim-in-note)$ |
|
|
|
\VerbatimFootnotes % allows verbatim text in footnotes |
|
|
|
\VerbatimFootnotes % allow verbatim text in footnotes |
|
|
|
$endif$ |
|
|
|
$if(geometry)$ |
|
|
|
\usepackage[margin=2.5cm,includehead=true,includefoot=true,centering,$for(geometry)$$geometry$$sep$,$endfor$]{geometry} |
|
|
@ -308,11 +310,16 @@ $if(tables)$ |
|
|
|
\usepackage{longtable,booktabs} |
|
|
|
$if(beamer)$ |
|
|
|
\usepackage{caption} |
|
|
|
% These lines are needed to make table captions work with longtable: |
|
|
|
% Make caption package work with longtable |
|
|
|
\makeatletter |
|
|
|
\def\fnum@table{\tablename~\thetable} |
|
|
|
\makeatother |
|
|
|
$else$ |
|
|
|
% Correct order of tables after \paragraph or \subparagraph |
|
|
|
\usepackage{etoolbox} |
|
|
|
\makeatletter |
|
|
|
\patchcmd\longtable{\par}{\if@noskipsec\mbox{}\fi\par}{}{} |
|
|
|
\makeatother |
|
|
|
% Allow footnotes in longtable head/foot |
|
|
|
\IfFileExists{footnotehyper.sty}{\usepackage{footnotehyper}}{\usepackage{footnote}} |
|
|
|
\makesavenoteenv{longtable} |
|
|
@ -335,7 +342,7 @@ $if(links-as-notes)$ |
|
|
|
$endif$ |
|
|
|
$if(strikeout)$ |
|
|
|
\usepackage[normalem]{ulem} |
|
|
|
% avoid problems with \sout in headers with hyperref: |
|
|
|
% Avoid problems with \sout in headers with hyperref |
|
|
|
\pdfstringdefDisableCommands{\renewcommand{\sout}{}} |
|
|
|
$endif$ |
|
|
|
\setlength{\emergencystretch}{3em} % prevent overfull lines |
|
|
@ -348,9 +355,8 @@ $else$ |
|
|
|
$endif$ |
|
|
|
$if(beamer)$ |
|
|
|
$else$ |
|
|
|
$if(subparagraph)$ |
|
|
|
$else$ |
|
|
|
% Redefines (sub)paragraphs to behave more like sections |
|
|
|
$if(block-headings)$ |
|
|
|
% Make \paragraph and \subparagraph free-standing |
|
|
|
\ifx\paragraph\undefined\else |
|
|
|
\let\oldparagraph\paragraph |
|
|
|
\renewcommand{\paragraph}[1]{\oldparagraph{#1}\mbox{}} |
|
|
@ -373,28 +379,28 @@ $for(header-includes)$ |
|
|
|
$header-includes$ |
|
|
|
$endfor$ |
|
|
|
$if(lang)$ |
|
|
|
\ifnum 0\ifxetex 1\fi=0 % if pdftex or luatex |
|
|
|
\usepackage[shorthands=off,$for(babel-otherlangs)$$babel-otherlangs$,$endfor$main=$babel-lang$]{babel} |
|
|
|
$if(babel-newcommands)$ |
|
|
|
$babel-newcommands$ |
|
|
|
$endif$ |
|
|
|
\else % if xetex |
|
|
|
\ifxetex |
|
|
|
$if(mainfont)$ |
|
|
|
$else$ |
|
|
|
% See issue https://github.com/reutenauer/polyglossia/issues/127 |
|
|
|
\renewcommand*\familydefault{\sfdefault} |
|
|
|
$endif$ |
|
|
|
% load polyglossia as late as possible as it *could* call bidi if RTL lang (e.g. Hebrew or Arabic) |
|
|
|
% Load polyglossia as late as possible: uses bidi with RTL langages (e.g. Hebrew, Arabic) |
|
|
|
\usepackage{polyglossia} |
|
|
|
\setmainlanguage[$polyglossia-lang.options$]{$polyglossia-lang.name$} |
|
|
|
$for(polyglossia-otherlangs)$ |
|
|
|
\setotherlanguage[$polyglossia-otherlangs.options$]{$polyglossia-otherlangs.name$} |
|
|
|
$endfor$ |
|
|
|
\else |
|
|
|
\usepackage[shorthands=off,$for(babel-otherlangs)$$babel-otherlangs$,$endfor$main=$babel-lang$]{babel} |
|
|
|
$if(babel-newcommands)$ |
|
|
|
$babel-newcommands$ |
|
|
|
$endif$ |
|
|
|
\fi |
|
|
|
$endif$ |
|
|
|
$if(dir)$ |
|
|
|
\ifxetex |
|
|
|
% load bidi as late as possible as it modifies e.g. graphicx |
|
|
|
% Load bidi as late as possible as it modifies e.g. graphicx |
|
|
|
\usepackage{bidi} |
|
|
|
\fi |
|
|
|
\ifnum 0\ifxetex 1\fi\ifluatex 1\fi=0 % if pdftex |
|
|
@ -834,6 +840,9 @@ $endif$ |
|
|
|
$if(lof)$ |
|
|
|
\listoffigures |
|
|
|
$endif$ |
|
|
|
$if(linestretch)$ |
|
|
|
\setstretch{$linestretch$} |
|
|
|
$endif$ |
|
|
|
$if(has-frontmatter)$ |
|
|
|
\mainmatter |
|
|
|
$endif$ |
|
|
@ -845,7 +854,7 @@ $endif$ |
|
|
|
$if(natbib)$ |
|
|
|
$if(bibliography)$ |
|
|
|
$if(biblio-title)$ |
|
|
|
$if(has-frontmatter)$ |
|
|
|
$if(has-chapters)$ |
|
|
|
\renewcommand\bibname{$biblio-title$} |
|
|
|
$else$ |
|
|
|
\renewcommand\refname{$biblio-title$} |
|
|
|