diff options
Diffstat (limited to 'default.latex.orig')
-rw-r--r-- | default.latex.orig | 421 |
1 files changed, 0 insertions, 421 deletions
diff --git a/default.latex.orig b/default.latex.orig deleted file mode 100644 index 3109337..0000000 --- a/default.latex.orig +++ /dev/null | |||
@@ -1,421 +0,0 @@ | |||
1 | \PassOptionsToPackage{unicode=true}{hyperref} % options for packages loaded elsewhere | ||
2 | \PassOptionsToPackage{hyphens}{url} | ||
3 | $if(colorlinks)$ | ||
4 | \PassOptionsToPackage{dvipsnames,svgnames*,x11names*}{xcolor} | ||
5 | $endif$$if(dir)$$if(latex-dir-rtl)$ | ||
6 | \PassOptionsToPackage{RTLdocument}{bidi} | ||
7 | $endif$$endif$% | ||
8 | \documentclass[$if(fontsize)$$fontsize$,$endif$$if(lang)$$babel-lang$,$endif$$if(papersize)$$papersize$paper,$endif$$if(beamer)$ignorenonframetext,$if(handout)$handout,$endif$$if(aspectratio)$aspectratio=$aspectratio$,$endif$$endif$$for(classoption)$$classoption$$sep$,$endfor$]{$documentclass$} | ||
9 | $if(beamer)$ | ||
10 | $if(background-image)$ | ||
11 | \usebackgroundtemplate{% | ||
12 | \includegraphics[width=\paperwidth]{$background-image$}% | ||
13 | } | ||
14 | $endif$ | ||
15 | \usepackage{pgfpages} | ||
16 | \setbeamertemplate{caption}[numbered] | ||
17 | \setbeamertemplate{caption label separator}{: } | ||
18 | \setbeamercolor{caption name}{fg=normal text.fg} | ||
19 | \beamertemplatenavigationsymbols$if(navigation)$$navigation$$else$empty$endif$ | ||
20 | $for(beameroption)$ | ||
21 | \setbeameroption{$beameroption$} | ||
22 | $endfor$ | ||
23 | $endif$ | ||
24 | $if(beamerarticle)$ | ||
25 | \usepackage{beamerarticle} % needs to be loaded first | ||
26 | $endif$ | ||
27 | $if(fontfamily)$ | ||
28 | \usepackage[$for(fontfamilyoptions)$$fontfamilyoptions$$sep$,$endfor$]{$fontfamily$} | ||
29 | $else$ | ||
30 | \usepackage{lmodern} | ||
31 | $endif$ | ||
32 | $if(linestretch)$ | ||
33 | \usepackage{setspace} | ||
34 | \setstretch{$linestretch$} | ||
35 | $endif$ | ||
36 | \usepackage{amssymb,amsmath} | ||
37 | \usepackage{ifxetex,ifluatex} | ||
38 | \usepackage{fixltx2e} % provides \textsubscript | ||
39 | \ifnum 0\ifxetex 1\fi\ifluatex 1\fi=0 % if pdftex | ||
40 | \usepackage[$if(fontenc)$$fontenc$$else$T1$endif$]{fontenc} | ||
41 | \usepackage[utf8]{inputenc} | ||
42 | \usepackage{textcomp} % provides euro and other symbols | ||
43 | \else % if luatex or xelatex | ||
44 | $if(mathspec)$ | ||
45 | \ifxetex | ||
46 | \usepackage{mathspec} | ||
47 | \else | ||
48 | \usepackage{unicode-math} | ||
49 | \fi | ||
50 | $else$ | ||
51 | \usepackage{unicode-math} | ||
52 | $endif$ | ||
53 | \defaultfontfeatures{Ligatures=TeX,Scale=MatchLowercase} | ||
54 | $for(fontfamilies)$ | ||
55 | \newfontfamily{$fontfamilies.name$}[$fontfamilies.options$]{$fontfamilies.font$} | ||
56 | $endfor$ | ||
57 | $if(mainfont)$ | ||
58 | \setmainfont[$for(mainfontoptions)$$mainfontoptions$$sep$,$endfor$]{$mainfont$} | ||
59 | $endif$ | ||
60 | $if(sansfont)$ | ||
61 | \setsansfont[$for(sansfontoptions)$$sansfontoptions$$sep$,$endfor$]{$sansfont$} | ||
62 | $endif$ | ||
63 | $if(monofont)$ | ||
64 | \setmonofont[Mapping=tex-ansi$if(monofontoptions)$,$for(monofontoptions)$$monofontoptions$$sep$,$endfor$$endif$]{$monofont$} | ||
65 | $endif$ | ||
66 | $if(mathfont)$ | ||
67 | $if(mathspec)$ | ||
68 | \ifxetex | ||
69 | \setmathfont(Digits,Latin,Greek)[$for(mathfontoptions)$$mathfontoptions$$sep$,$endfor$]{$mathfont$} | ||
70 | \else | ||
71 | \setmathfont[$for(mathfontoptions)$$mathfontoptions$$sep$,$endfor$]{$mathfont$} | ||
72 | \fi | ||
73 | $else$ | ||
74 | \setmathfont[$for(mathfontoptions)$$mathfontoptions$$sep$,$endfor$]{$mathfont$} | ||
75 | $endif$ | ||
76 | $endif$ | ||
77 | $if(CJKmainfont)$ | ||
78 | \ifxetex | ||
79 | \usepackage{xeCJK} | ||
80 | \setCJKmainfont[$for(CJKoptions)$$CJKoptions$$sep$,$endfor$]{$CJKmainfont$} | ||
81 | \fi | ||
82 | $endif$ | ||
83 | $if(luatexjapresetoptions)$ | ||
84 | \ifluatex | ||
85 | \usepackage[$for(luatexjapresetoptions)$$luatexjapresetoptions$$sep$,$endfor$]{luatexja-preset} | ||
86 | \fi | ||
87 | $endif$ | ||
88 | $if(CJKmainfont)$ | ||
89 | \ifluatex | ||
90 | \usepackage[$for(luatexjafontspecoptions)$$luatexjafontspecoptions$$sep$,$endfor$]{luatexja-fontspec} | ||
91 | \setmainjfont[$for(CJKoptions)$$CJKoptions$$sep$,$endfor$]{$CJKmainfont$} | ||
92 | \fi | ||
93 | $endif$ | ||
94 | \fi | ||
95 | $if(beamer)$ | ||
96 | $if(theme)$ | ||
97 | \usetheme[$for(themeoptions)$$themeoptions$$sep$,$endfor$]{$theme$} | ||
98 | $endif$ | ||
99 | $if(colortheme)$ | ||
100 | \usecolortheme{$colortheme$} | ||
101 | $endif$ | ||
102 | $if(fonttheme)$ | ||
103 | \usefonttheme{$fonttheme$} | ||
104 | $endif$ | ||
105 | $if(mainfont)$ | ||
106 | \usefonttheme{serif} % use mainfont rather than sansfont for slide text | ||
107 | $endif$ | ||
108 | $if(innertheme)$ | ||
109 | \useinnertheme{$innertheme$} | ||
110 | $endif$ | ||
111 | $if(outertheme)$ | ||
112 | \useoutertheme{$outertheme$} | ||
113 | $endif$ | ||
114 | $endif$ | ||
115 | % use upquote if available, for straight quotes in verbatim environments | ||
116 | \IfFileExists{upquote.sty}{\usepackage{upquote}}{} | ||
117 | % use microtype if available | ||
118 | \IfFileExists{microtype.sty}{% | ||
119 | \usepackage[$for(microtypeoptions)$$microtypeoptions$$sep$,$endfor$]{microtype} | ||
120 | \UseMicrotypeSet[protrusion]{basicmath} % disable protrusion for tt fonts | ||
121 | }{} | ||
122 | $if(indent)$ | ||
123 | $else$ | ||
124 | \IfFileExists{parskip.sty}{% | ||
125 | \usepackage{parskip} | ||
126 | }{% else | ||
127 | \setlength{\parindent}{0pt} | ||
128 | \setlength{\parskip}{6pt plus 2pt minus 1pt} | ||
129 | } | ||
130 | $endif$ | ||
131 | $if(verbatim-in-note)$ | ||
132 | \usepackage{fancyvrb} | ||
133 | $endif$ | ||
134 | $if(colorlinks)$ | ||
135 | \usepackage{xcolor} | ||
136 | $endif$ | ||
137 | \usepackage{hyperref} | ||
138 | \hypersetup{ | ||
139 | $if(title-meta)$ | ||
140 | pdftitle={$title-meta$}, | ||
141 | $endif$ | ||
142 | $if(author-meta)$ | ||
143 | pdfauthor={$author-meta$}, | ||
144 | $endif$ | ||
145 | $if(keywords)$ | ||
146 | pdfkeywords={$for(keywords)$$keywords$$sep$, $endfor$}, | ||
147 | $endif$ | ||
148 | $if(colorlinks)$ | ||
149 | colorlinks=true, | ||
150 | linkcolor=$if(linkcolor)$$linkcolor$$else$Maroon$endif$, | ||
151 | citecolor=$if(citecolor)$$citecolor$$else$Blue$endif$, | ||
152 | urlcolor=$if(urlcolor)$$urlcolor$$else$Blue$endif$, | ||
153 | $else$ | ||
154 | pdfborder={0 0 0}, | ||
155 | $endif$ | ||
156 | breaklinks=true} | ||
157 | \urlstyle{same} % don't use monospace font for urls | ||
158 | $if(verbatim-in-note)$ | ||
159 | \VerbatimFootnotes % allows verbatim text in footnotes | ||
160 | $endif$ | ||
161 | $if(geometry)$ | ||
162 | \usepackage[$for(geometry)$$geometry$$sep$,$endfor$]{geometry} | ||
163 | $endif$ | ||
164 | $if(beamer)$ | ||
165 | \newif\ifbibliography | ||
166 | $endif$ | ||
167 | $if(listings)$ | ||
168 | \usepackage{listings} | ||
169 | \newcommand{\passthrough}[1]{#1} | ||
170 | $endif$ | ||
171 | $if(lhs)$ | ||
172 | \lstnewenvironment{code}{\lstset{language=Haskell,basicstyle=\small\ttfamily}}{} | ||
173 | $endif$ | ||
174 | $if(highlighting-macros)$ | ||
175 | $highlighting-macros$ | ||
176 | $endif$ | ||
177 | $if(tables)$ | ||
178 | \usepackage{longtable,booktabs} | ||
179 | $if(beamer)$ | ||
180 | \usepackage{caption} | ||
181 | % These lines are needed to make table captions work with longtable: | ||
182 | \makeatletter | ||
183 | \def\fnum@table{\tablename~\thetable} | ||
184 | \makeatother | ||
185 | $else$ | ||
186 | % Fix footnotes in tables (requires footnote package) | ||
187 | \IfFileExists{footnote.sty}{\usepackage{footnote}\makesavenoteenv{longtable}}{} | ||
188 | $endif$ | ||
189 | $endif$ | ||
190 | $if(graphics)$ | ||
191 | \usepackage{graphicx,grffile} | ||
192 | \makeatletter | ||
193 | \def\maxwidth{\ifdim\Gin@nat@width>\linewidth\linewidth\else\Gin@nat@width\fi} | ||
194 | \def\maxheight{\ifdim\Gin@nat@height>\textheight\textheight\else\Gin@nat@height\fi} | ||
195 | \makeatother | ||
196 | % Scale images if necessary, so that they will not overflow the page | ||
197 | % margins by default, and it is still possible to overwrite the defaults | ||
198 | % using explicit options in \includegraphics[width, height, ...]{} | ||
199 | \setkeys{Gin}{width=\maxwidth,height=\maxheight,keepaspectratio} | ||
200 | $endif$ | ||
201 | $if(beamer)$ | ||
202 | % Prevent slide breaks in the middle of a paragraph: | ||
203 | \widowpenalties 1 10000 | ||
204 | \raggedbottom | ||
205 | $if(section-titles)$ | ||
206 | \setbeamertemplate{part page}{ | ||
207 | \centering | ||
208 | \begin{beamercolorbox}[sep=16pt,center]{part title} | ||
209 | \usebeamerfont{part title}\insertpart\par | ||
210 | \end{beamercolorbox} | ||
211 | } | ||
212 | \setbeamertemplate{section page}{ | ||
213 | \centering | ||
214 | \begin{beamercolorbox}[sep=12pt,center]{part title} | ||
215 | \usebeamerfont{section title}\insertsection\par | ||
216 | \end{beamercolorbox} | ||
217 | } | ||
218 | \setbeamertemplate{subsection page}{ | ||
219 | \centering | ||
220 | \begin{beamercolorbox}[sep=8pt,center]{part title} | ||
221 | \usebeamerfont{subsection title}\insertsubsection\par | ||
222 | \end{beamercolorbox} | ||
223 | } | ||
224 | \AtBeginPart{ | ||
225 | \frame{\partpage} | ||
226 | } | ||
227 | \AtBeginSection{ | ||
228 | \ifbibliography | ||
229 | \else | ||
230 | \frame{\sectionpage} | ||
231 | \fi | ||
232 | } | ||
233 | \AtBeginSubsection{ | ||
234 | \frame{\subsectionpage} | ||
235 | } | ||
236 | $endif$ | ||
237 | $endif$ | ||
238 | $if(links-as-notes)$ | ||
239 | % Make links footnotes instead of hotlinks: | ||
240 | \DeclareRobustCommand{\href}[2]{#2\footnote{\url{#1}}} | ||
241 | $endif$ | ||
242 | $if(strikeout)$ | ||
243 | \usepackage[normalem]{ulem} | ||
244 | % avoid problems with \sout in headers with hyperref: | ||
245 | \pdfstringdefDisableCommands{\renewcommand{\sout}{}} | ||
246 | $endif$ | ||
247 | \setlength{\emergencystretch}{3em} % prevent overfull lines | ||
248 | \providecommand{\tightlist}{% | ||
249 | \setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}} | ||
250 | $if(numbersections)$ | ||
251 | \setcounter{secnumdepth}{$if(secnumdepth)$$secnumdepth$$else$5$endif$} | ||
252 | $else$ | ||
253 | \setcounter{secnumdepth}{0} | ||
254 | $endif$ | ||
255 | $if(beamer)$ | ||
256 | $else$ | ||
257 | $if(subparagraph)$ | ||
258 | $else$ | ||
259 | % Redefines (sub)paragraphs to behave more like sections | ||
260 | \ifx\paragraph\undefined\else | ||
261 | \let\oldparagraph\paragraph | ||
262 | \renewcommand{\paragraph}[1]{\oldparagraph{#1}\mbox{}} | ||
263 | \fi | ||
264 | \ifx\subparagraph\undefined\else | ||
265 | \let\oldsubparagraph\subparagraph | ||
266 | \renewcommand{\subparagraph}[1]{\oldsubparagraph{#1}\mbox{}} | ||
267 | \fi | ||
268 | $endif$ | ||
269 | $endif$ | ||
270 | $if(pagestyle)$ | ||
271 | \pagestyle{$pagestyle$} | ||
272 | $endif$ | ||
273 | |||
274 | % set default figure placement to htbp | ||
275 | \makeatletter | ||
276 | \def\fps@figure{htbp} | ||
277 | \makeatother | ||
278 | |||
279 | $for(header-includes)$ | ||
280 | $header-includes$ | ||
281 | $endfor$ | ||
282 | $if(lang)$ | ||
283 | \ifnum 0\ifxetex 1\fi\ifluatex 1\fi=0 % if pdftex | ||
284 | \usepackage[shorthands=off,$for(babel-otherlangs)$$babel-otherlangs$,$endfor$main=$babel-lang$]{babel} | ||
285 | $if(babel-newcommands)$ | ||
286 | $babel-newcommands$ | ||
287 | $endif$ | ||
288 | \else | ||
289 | % load polyglossia as late as possible as it *could* call bidi if RTL lang (e.g. Hebrew or Arabic) | ||
290 | \usepackage{polyglossia} | ||
291 | \setmainlanguage[$polyglossia-lang.options$]{$polyglossia-lang.name$} | ||
292 | $for(polyglossia-otherlangs)$ | ||
293 | \setotherlanguage[$polyglossia-otherlangs.options$]{$polyglossia-otherlangs.name$} | ||
294 | $endfor$ | ||
295 | \fi | ||
296 | $endif$ | ||
297 | $if(dir)$ | ||
298 | \ifxetex | ||
299 | % load bidi as late as possible as it modifies e.g. graphicx | ||
300 | \usepackage{bidi} | ||
301 | \fi | ||
302 | \ifnum 0\ifxetex 1\fi\ifluatex 1\fi=0 % if pdftex | ||
303 | \TeXXeTstate=1 | ||
304 | \newcommand{\RL}[1]{\beginR #1\endR} | ||
305 | \newcommand{\LR}[1]{\beginL #1\endL} | ||
306 | \newenvironment{RTL}{\beginR}{\endR} | ||
307 | \newenvironment{LTR}{\beginL}{\endL} | ||
308 | \fi | ||
309 | $endif$ | ||
310 | $if(natbib)$ | ||
311 | \usepackage[$natbiboptions$]{natbib} | ||
312 | \bibliographystyle{$if(biblio-style)$$biblio-style$$else$plainnat$endif$} | ||
313 | $endif$ | ||
314 | $if(biblatex)$ | ||
315 | \usepackage[$if(biblio-style)$style=$biblio-style$,$endif$$for(biblatexoptions)$$biblatexoptions$$sep$,$endfor$]{biblatex} | ||
316 | $for(bibliography)$ | ||
317 | \addbibresource{$bibliography$} | ||
318 | $endfor$ | ||
319 | $endif$ | ||
320 | |||
321 | $if(title)$ | ||
322 | \title{$title$$if(thanks)$\thanks{$thanks$}$endif$} | ||
323 | $endif$ | ||
324 | $if(subtitle)$ | ||
325 | \providecommand{\subtitle}[1]{} | ||
326 | \subtitle{$subtitle$} | ||
327 | $endif$ | ||
328 | $if(author)$ | ||
329 | \author{$for(author)$$author$$sep$ \and $endfor$} | ||
330 | $endif$ | ||
331 | $if(institute)$ | ||
332 | \providecommand{\institute}[1]{} | ||
333 | \institute{$for(institute)$$institute$$sep$ \and $endfor$} | ||
334 | $endif$ | ||
335 | \date{$date$} | ||
336 | $if(beamer)$ | ||
337 | $if(titlegraphic)$ | ||
338 | \titlegraphic{\includegraphics{$titlegraphic$}} | ||
339 | $endif$ | ||
340 | $if(logo)$ | ||
341 | \logo{\includegraphics{$logo$}} | ||
342 | $endif$ | ||
343 | $endif$ | ||
344 | |||
345 | \begin{document} | ||
346 | $if(title)$ | ||
347 | $if(beamer)$ | ||
348 | \frame{\titlepage} | ||
349 | $else$ | ||
350 | \maketitle | ||
351 | $endif$ | ||
352 | $if(abstract)$ | ||
353 | \begin{abstract} | ||
354 | $abstract$ | ||
355 | \end{abstract} | ||
356 | $endif$ | ||
357 | $endif$ | ||
358 | |||
359 | $for(include-before)$ | ||
360 | $include-before$ | ||
361 | |||
362 | $endfor$ | ||
363 | $if(toc)$ | ||
364 | $if(beamer)$ | ||
365 | \begin{frame} | ||
366 | \tableofcontents[hideallsubsections] | ||
367 | \end{frame} | ||
368 | $else$ | ||
369 | { | ||
370 | $if(colorlinks)$ | ||
371 | \hypersetup{linkcolor=$if(toccolor)$$toccolor$$else$$endif$} | ||
372 | $endif$ | ||
373 | \setcounter{tocdepth}{$toc-depth$} | ||
374 | \tableofcontents | ||
375 | } | ||
376 | $endif$ | ||
377 | $endif$ | ||
378 | $if(lot)$ | ||
379 | \listoftables | ||
380 | $endif$ | ||
381 | $if(lof)$ | ||
382 | \listoffigures | ||
383 | $endif$ | ||
384 | $body$ | ||
385 | |||
386 | $if(natbib)$ | ||
387 | $if(bibliography)$ | ||
388 | $if(biblio-title)$ | ||
389 | $if(book-class)$ | ||
390 | \renewcommand\bibname{$biblio-title$} | ||
391 | $else$ | ||
392 | \renewcommand\refname{$biblio-title$} | ||
393 | $endif$ | ||
394 | $endif$ | ||
395 | $if(beamer)$ | ||
396 | \begin{frame}[allowframebreaks]{$biblio-title$} | ||
397 | \bibliographytrue | ||
398 | $endif$ | ||
399 | \bibliography{$for(bibliography)$$bibliography$$sep$,$endfor$} | ||
400 | $if(beamer)$ | ||
401 | \end{frame} | ||
402 | $endif$ | ||
403 | |||
404 | $endif$ | ||
405 | $endif$ | ||
406 | $if(biblatex)$ | ||
407 | $if(beamer)$ | ||
408 | \begin{frame}[allowframebreaks]{$biblio-title$} | ||
409 | \bibliographytrue | ||
410 | \printbibliography[heading=none] | ||
411 | \end{frame} | ||
412 | $else$ | ||
413 | \printbibliography$if(biblio-title)$[title=$biblio-title$]$endif$ | ||
414 | $endif$ | ||
415 | |||
416 | $endif$ | ||
417 | $for(include-after)$ | ||
418 | $include-after$ | ||
419 | |||
420 | $endfor$ | ||
421 | \end{document} | ||