git.iko.soy/typeable/pandoc
on 34412cf help sign in
284 lines 7.6 kB history raw
1\documentclass[$if(fontsize)$$fontsize$,$endif$$if(lang)$$babel-lang$,$endif$$if(handout)$handout,$endif$$if(colorlinks)$dvipsnames,$endif$$if(beamer)$ignorenonframetext,$endif$$for(classoption)$$classoption$$sep$,$endfor$]{$documentclass$}
2\setbeamertemplate{caption}[numbered]
3\setbeamertemplate{caption label separator}{: }
4\setbeamercolor{caption name}{fg=normal text.fg}
5\beamertemplatenavigationsymbols$if(navigation)$$navigation$$else$empty$endif$
6$if(fontfamily)$
7\usepackage[$for(fontfamilyoptions)$$fontfamilyoptions$$sep$,$endfor$]{$fontfamily$}
8$else$
9\usepackage{lmodern}
10$endif$
11\usepackage{amssymb,amsmath}
12\usepackage{ifxetex,ifluatex}
13\usepackage{fixltx2e} % provides \textsubscript
14\ifnum 0\ifxetex 1\fi\ifluatex 1\fi=0 % if pdftex
15 \usepackage[$if(fontenc)$$fontenc$$else$T1$endif$]{fontenc}
16 \usepackage[utf8]{inputenc}
17$if(euro)$
18 \usepackage{eurosym}
19$endif$
20\else % if luatex or xelatex
21 \ifxetex
22 \usepackage{mathspec}
23 \else
24 \usepackage{fontspec}
25 \fi
26 \defaultfontfeatures{Ligatures=TeX,Scale=MatchLowercase}
27$for(fontfamilies)$
28 \newfontfamily{$fontfamilies.name$}[$fontfamilies.options$]{$fontfamilies.font$}
29$endfor$
30$if(euro)$
31 \newcommand{\euro}{€}
32$endif$
33$if(mainfont)$
34 \setmainfont[$for(mainfontoptions)$$mainfontoptions$$sep$,$endfor$]{$mainfont$}
35$endif$
36$if(sansfont)$
37 \setsansfont[$for(sansfontoptions)$$sansfontoptions$$sep$,$endfor$]{$sansfont$}
38$endif$
39$if(monofont)$
40 \setmonofont[Mapping=tex-ansi$if(monofontoptions)$,$for(monofontoptions)$$monofontoptions$$sep$,$endfor$$endif$]{$monofont$}
41$endif$
42$if(mathfont)$
43 \setmathfont(Digits,Latin,Greek)[$for(mathfontoptions)$$mathfontoptions$$sep$,$endfor$]{$mathfont$}
44$endif$
45$if(CJKmainfont)$
46 \usepackage{xeCJK}
47 \setCJKmainfont[$for(CJKoptions)$$CJKoptions$$sep$,$endfor$]{$CJKmainfont$}
48$endif$
49\fi
50$if(theme)$
51\usetheme[$for(themeoptions)$$themeoptions$$sep$,$endfor$]{$theme$}
52$endif$
53$if(colortheme)$
54\usecolortheme{$colortheme$}
55$endif$
56$if(fonttheme)$
57\usefonttheme{$fonttheme$}
58$endif$
59$if(mainfont)$
60\usefonttheme{serif} % use mainfont rather than sansfont for slide text
61$endif$
62$if(innertheme)$
63\useinnertheme{$innertheme$}
64$endif$
65$if(outertheme)$
66\useoutertheme{$outertheme$}
67$endif$
68% use upquote if available, for straight quotes in verbatim environments
69\IfFileExists{upquote.sty}{\usepackage{upquote}}{}
70% use microtype if available
71\IfFileExists{microtype.sty}{%
72\usepackage{microtype}
73\UseMicrotypeSet[protrusion]{basicmath} % disable protrusion for tt fonts
74}{}
75$if(lang)$
76\ifnum 0\ifxetex 1\fi\ifluatex 1\fi=0 % if pdftex
77 \usepackage[shorthands=off,$for(babel-otherlangs)$$babel-otherlangs$,$endfor$main=$babel-lang$]{babel}
78$if(babel-newcommands)$
79 $babel-newcommands$
80$endif$
81\else
82 \usepackage{polyglossia}
83 \setmainlanguage[$polyglossia-lang.options$]{$polyglossia-lang.name$}
84$for(polyglossia-otherlangs)$
85 \setotherlanguage[$polyglossia-otherlangs.options$]{$polyglossia-otherlangs.name$}
86$endfor$
87\fi
88$endif$
89\newif\ifbibliography
90$if(natbib)$
91\usepackage{natbib}
92\bibliographystyle{$if(biblio-style)$$biblio-style$$else$plainnat$endif$}
93$endif$
94$if(biblatex)$
95\usepackage[$if(biblio-style)$style=$biblio-style$,$endif$$for(biblatexoptions)$$biblatexoptions$$sep$,$endfor$]{biblatex}
96$for(bibliography)$
97\addbibresource{$bibliography$}
98$endfor$
99$endif$
100$if(verbatim-in-note)$
101\usepackage{fancyvrb}
102$endif$
103\hypersetup{
104$if(title-meta)$
105 pdftitle={$title-meta$},
106$endif$
107$if(author-meta)$
108 pdfauthor={$author-meta$},
109$endif$
110$if(keywords)$
111 pdfkeywords={$for(keywords)$$keywords$$sep$, $endfor$},
112$endif$
113$if(colorlinks)$
114 colorlinks=true,
115 linkcolor=$if(linkcolor)$$linkcolor$$else$Maroon$endif$,
116 citecolor=$if(citecolor)$$citecolor$$else$Blue$endif$,
117 urlcolor=$if(urlcolor)$$urlcolor$$else$Blue$endif$,
118$else$
119 pdfborder={0 0 0},
120$endif$
121 breaklinks=true}
122\urlstyle{same} % don't use monospace font for urls
123$if(verbatim-in-note)$
124\VerbatimFootnotes % allows verbatim text in footnotes
125$endif$
126$if(listings)$
127\usepackage{listings}
128$endif$
129$if(lhs)$
130\lstnewenvironment{code}{\lstset{language=Haskell,basicstyle=\small\ttfamily}}{}
131$endif$
132$if(highlighting-macros)$
133$highlighting-macros$
134$endif$
135$if(tables)$
136\usepackage{longtable,booktabs}
137\usepackage{caption}
138% These lines are needed to make table captions work with longtable:
139\makeatletter
140\def\fnum@table{\tablename~\thetable}
141\makeatother
142$endif$
143$if(graphics)$
144\usepackage{graphicx,grffile}
145\makeatletter
146\def\maxwidth{\ifdim\Gin@nat@width>\linewidth\linewidth\else\Gin@nat@width\fi}
147\def\maxheight{\ifdim\Gin@nat@height>\textheight0.8\textheight\else\Gin@nat@height\fi}
148\makeatother
149% Scale images if necessary, so that they will not overflow the page
150% margins by default, and it is still possible to overwrite the defaults
151% using explicit options in \includegraphics[width, height, ...]{}
152\setkeys{Gin}{width=\maxwidth,height=\maxheight,keepaspectratio}
153$endif$
155% Prevent slide breaks in the middle of a paragraph:
156\widowpenalties 1 10000
157\raggedbottom
159$if(section-titles)$
160\AtBeginPart{
161 \let\insertpartnumber\relax
162 \let\partname\relax
163 \frame{\partpage}
165\AtBeginSection{
166 \ifbibliography
167 \else
168 \let\insertsectionnumber\relax
169 \let\sectionname\relax
170 \frame{\sectionpage}
171 \fi
173\AtBeginSubsection{
174 \let\insertsubsectionnumber\relax
175 \let\subsectionname\relax
176 \frame{\subsectionpage}
178$endif$
180$if(links-as-notes)$
181% Make links footnotes instead of hotlinks:
182\renewcommand{\href}[2]{#2\footnote{\url{#1}}}
183$endif$
184$if(strikeout)$
185\usepackage[normalem]{ulem}
186% avoid problems with \sout in headers with hyperref:
187\pdfstringdefDisableCommands{\renewcommand{\sout}{}}
188$endif$
189\setlength{\parindent}{0pt}
190\setlength{\parskip}{6pt plus 2pt minus 1pt}
191\setlength{\emergencystretch}{3em} % prevent overfull lines
192\providecommand{\tightlist}{%
193 \setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}}
194$if(numbersections)$
195\setcounter{secnumdepth}{$if(secnumdepth)$$secnumdepth$$else$5$endif$}
196$else$
197\setcounter{secnumdepth}{0}
198$endif$
199$if(dir)$
200\ifxetex
201 % load bidi as late as possible as it modifies e.g. graphicx
202 $if(latex-dir-rtl)$
203 \usepackage[RTLdocument]{bidi}
204 $else$
205 \usepackage{bidi}
206 $endif$
207\fi
208\ifnum 0\ifxetex 1\fi\ifluatex 1\fi=0 % if pdftex
209 \TeXXeTstate=1
210 \newcommand{\RL}[1]{\beginR #1\endR}
211 \newcommand{\LR}[1]{\beginL #1\endL}
212 \newenvironment{RTL}{\beginR}{\endR}
213 \newenvironment{LTR}{\beginL}{\endL}
214\fi
215$endif$
216$for(header-includes)$
217$header-includes$
218$endfor$
220$if(title)$
221\title{$title$}
222$endif$
223$if(subtitle)$
224\subtitle{$subtitle$}
225$endif$
226$if(author)$
227\author{$for(author)$$author$$sep$ \and $endfor$}
228$endif$
229$if(institute)$
230\institute{$for(institute)$$institute$$sep$ \and $endfor$}
231$endif$
232\date{$date$}
233$if(titlegraphic)$
234\titlegraphic{\includegraphics{$titlegraphic$}}
235$endif$
236$if(logo)$
237\logo{\includegraphics{$logo$}}
238$endif$
240\begin{document}
241$if(title)$
242\frame{\titlepage}
243$endif$
245$for(include-before)$
246$include-before$
248$endfor$
249$if(toc)$
250\begin{frame}
251\tableofcontents[hideallsubsections]
252\end{frame}
254$endif$
255$body$
257$if(natbib)$
258$if(bibliography)$
259$if(biblio-title)$
260$if(book-class)$
261\renewcommand\bibname{$biblio-title$}
262$else$
263\renewcommand\refname{$biblio-title$}
264$endif$
265$endif$
266\begin{frame}[allowframebreaks]{$biblio-title$}
267\bibliographytrue
268\bibliography{$for(bibliography)$$bibliography$$sep$,$endfor$}
269\end{frame}
271$endif$
272$endif$
273$if(biblatex)$
274\begin{frame}[allowframebreaks]{$biblio-title$}
275\bibliographytrue
276\printbibliography[heading=none]
277\end{frame}
279$endif$
280$for(include-after)$
281$include-after$
283$endfor$
284\end{document}