1$if(false)$ 2 3This is a pandoc template and should not be edited. 4 5$endif$ 6\documentclass[$if(fontsize)$$fontsize$,$endif$$if(lang)$$lang$,$endif$$if(papersize)$$papersize$,$endif$$for(classoption)$$classoption$$sep$,$endfor$]{$documentclass$} 7 8\usepackage{pandoc/iclc} 9$if(linestretch)$ 10\usepackage{setspace} 11\setstretch{$linestretch$} 12$endif$ 13 14\usepackage{amssymb,amsmath} 15\usepackage{ifxetex,ifluatex} 16\usepackage{fixltx2e} % provides \textsubscript 17\ifnum 0\ifxetex 1\fi\ifluatex 1\fi=0 % if pdftex 18 $if(fontfamily)$ 19 \usepackage{$fontfamily$} 20 \usepackage{inconsolata} 21 $else$ 22 \usepackage{lmodern} 23 $endif$ 24 \usepackage[T1]{fontenc} 25 \usepackage[utf8]{inputenc} 26$if(euro)$ 27 \usepackage{eurosym} 28$endif$ 29\else % if luatex or xelatex 30 \ifxetex 31 \usepackage{mathspec} 32 \usepackage{xltxtra,xunicode} 33 \else 34 \usepackage{fontspec} 35 \fi 36 \defaultfontfeatures{Mapping=tex-text,Scale=MatchLowercase} 37 \newcommand{\euro}{€} 38$if(mainfont)$ 39 \setmainfont{$mainfont$} 40$endif$ 41$if(sansfont)$ 42 \setsansfont{$sansfont$} 43$endif$ 44$if(monofont)$ 45 \setmonofont[Mapping=tex-ansi]{$monofont$} 46$endif$ 47$if(mathfont)$ 48 \setmathfont(Digits,Latin,Greek){$mathfont$} 49$endif$ 50\fi 51% use upquote if available, for straight quotes in verbatim environments 52\IfFileExists{upquote.sty}{\usepackage{upquote}}{} 53% use microtype if available 54\IfFileExists{microtype.sty}{% 55\usepackage{microtype} 56\UseMicrotypeSet[protrusion]{basicmath} % disable protrusion for tt fonts 57}{} 58$if(geometry)$ 59\usepackage[$for(geometry)$$geometry$$sep$,$endfor$]{geometry} 60$endif$ 61$if(lang)$ 62\ifxetex 63 \usepackage{polyglossia} 64 \setmainlanguage{$mainlang$} 65\else 66 \usepackage[shorthands=off,$lang$]{babel} 67\fi 68$endif$ 69$if(natbib)$ 70\usepackage{natbib} 71\bibliographystyle{$if(biblio-style)$$biblio-style$$else$plainnat$endif$} 72$endif$ 73$if(biblatex)$ 74\usepackage{biblatex} 75$if(biblio-files)$ 76\bibliography{$biblio-files$} 77$endif$ 78$endif$ 79$if(listings)$ 80\usepackage{listings} 81$endif$ 82$if(lhs)$ 83\lstnewenvironment{code}{\lstset{language=Haskell,basicstyle=\small\ttfamily}}{} 84$endif$ 85$if(highlighting-macros)$ 86$highlighting-macros$ 87$endif$ 88$if(verbatim-in-note)$ 89\usepackage{fancyvrb} 90\VerbatimFootnotes 91$endif$ 92$if(tables)$ 93\usepackage{longtable,booktabs} 94$endif$ 95$if(csl-refs)$ 96\newlength{\cslhangindent} 97\setlength{\cslhangindent}{1.5em} 98\newenvironment{CSLReferences}% 99 {$if(csl-hanging-indent)$\setlength{\parindent}{0pt}% 100 \everypar{\setlength{\hangindent}{\cslhangindent}}\ignorespaces$endif$}% 101 {\par} 102$endif$ 103$if(graphics)$ 104\usepackage{graphicx} 105\makeatletter 106\def\maxwidth{\ifdim\Gin@nat@width>\linewidth\linewidth\else\Gin@nat@width\fi} 107\def\maxheight{\ifdim\Gin@nat@height>\textheight\textheight\else\Gin@nat@height\fi} 108\makeatother 109% Scale images if necessary, so that they will not overflow the page 110% margins by default, and it is still possible to overwrite the defaults 111% using explicit options in \includegraphics[width, height, ...]{} 112\setkeys{Gin}{width=\maxwidth,height=\maxheight,keepaspectratio} 113$endif$ 114\ifxetex 115 \usepackage[setpagesize=false, % page size defined by xetex 116 unicode=false, % unicode breaks when used with xetex 117 xetex]{hyperref} 118\else 119 \usepackage[unicode=true]{hyperref} 120\fi 121\hypersetup{breaklinks=true, 122 bookmarks=true, 123 pdfauthor={$author-meta$}, 124 pdftitle={$title-meta$}, 125 colorlinks=true, 126 citecolor=$if(citecolor)$$citecolor$$else$blue$endif$, 127 urlcolor=$if(urlcolor)$$urlcolor$$else$blue$endif$, 128 linkcolor=$if(linkcolor)$$linkcolor$$else$magenta$endif$, 129 pdfborder={0 0 0}} 130\urlstyle{same} % don't use monospace font for urls 131$if(links-as-notes)$ 132% Make links footnotes instead of hotlinks: 133\renewcommand{\href}[2]{#2\footnote{\url{#1}}} 134$endif$ 135$if(strikeout)$ 136\usepackage[normalem]{ulem} 137% avoid problems with \sout in headers with hyperref: 138\pdfstringdefDisableCommands{\renewcommand{\sout}{}} 139$endif$ 140\setlength{\parindent}{0pt} 141\setlength{\parskip}{6pt plus 2pt minus 1pt} 142\setlength{\emergencystretch}{3em} % prevent overfull lines 143\providecommand{\tightlist}{%/ 144 \setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}} 145$if(numbersections)$ 146\setcounter{secnumdepth}{5} 147$else$ 148\setcounter{secnumdepth}{0} 149$endif$ 150$if(verbatim-in-note)$ 151\VerbatimFootnotes % allows verbatim text in footnotes 152$endif$ 153 154$if(title)$ 155\title{$title$$if(subtitle)$\\\vspace{0.5em}{\large $subtitle$}$endif$} 156$endif$ 157$if(author)$ 158\author{ 159$for(author)$ 160 $author.name$ \\ 161 $author.affiliation$\\ 162 \href{mailto:$author.email$}{$author.email$} 163 $sep$ \and 164$endfor$ 165} 166$endif$ 167\date{$date$} 168$for(header-includes)$ 169$header-includes$ 170$endfor$ 171 172\begin{document} 173$if(title)$ 174\maketitle 175$endif$ 176\begin{abstract} 177$if(abstract)$ 178$abstract$ 179$else$ 180Please provide an abstract in the metadata block at the top of the 181markdown document. Refer to template.txt for details. $endif$ 182\end{abstract} 183 184$for(include-before)$ 185$include-before$ 186 187$endfor$ 188$if(toc)$ 189{ 190\hypersetup{linkcolor=black} 191\setcounter{tocdepth}{$toc-depth$} 192\tableofcontents 193} 194$endif$ 195$if(lot)$ 196\listoftables 197$endif$ 198$if(lof)$ 199\listoffigures 200$endif$ 201$body$ 202 203$if(natbib)$ 204$if(biblio-files)$ 205$if(biblio-title)$ 206$if(book-class)$ 207\renewcommand\bibname{$biblio-title$} 208$else$ 209\renewcommand\refname{$biblio-title$} 210$endif$ 211$endif$ 212\bibliography{$biblio-files$} 213 214$endif$ 215$endif$ 216$if(biblatex)$ 217\printbibliography$if(biblio-title)$[title=$biblio-title$]$endif$ 218 219$endif$ 220$for(include-after)$ 221$include-after$ 222 223$endfor$ 224\end{document}