verkilo 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
Binary file
@@ -0,0 +1,422 @@
1
+ /* ============ */
2
+ /* = DEFAULTS = */
3
+ /* ============ */
4
+ html * {
5
+ font: normal normal normal 12pt/normal Constantia, Palatino, "Palatino Linotype", "Palatino LT STD", Georgia, serif;
6
+ }
7
+ h6 {
8
+ display: none;
9
+ }
10
+ /* ========= */
11
+ /* = PAGES = */
12
+ /* ========= */
13
+ @page {
14
+ margin: 12mm 16mm 10mm 16mm;
15
+ size: 7in 9.25in landscape;
16
+
17
+ @footnotes {
18
+ border-top: thin solid black;
19
+ margin-left: 30%;
20
+ margin-top: 0.6em;
21
+ padding-top: 0.3em;
22
+ }
23
+
24
+ @bottom-right {
25
+ color: #000;
26
+ content: counter(page);
27
+ font-family: helvetica, arial, sans-serif;
28
+ font-size: 12px;
29
+ margin-top: -10px;
30
+ margin-right: -40px;
31
+ }
32
+ }
33
+
34
+ @page toc {
35
+ margin-right: 6mm;
36
+
37
+ @bottom-right {
38
+ content: "";
39
+ }
40
+ }
41
+
42
+ @page cover {
43
+ margin: 0;
44
+
45
+ @bottom-right {
46
+ content: "";
47
+ }
48
+ }
49
+
50
+ /* ============= */
51
+ /* = BOOKMARKS = */
52
+ /* ============= */
53
+ h1, h2, h3, h4, h5, h6 {
54
+ font-family: helvetica, arial, sans-serif;
55
+ break-after: avoid;
56
+ }
57
+
58
+ h1 { font-size: 1.8rem; }
59
+ h2 { font-size: 1.6rem; }
60
+ h3 { font-size: 1.4rem; }
61
+ h4 { font-size: 1.2rem; }
62
+ h5 { font-size: 1rem; }
63
+ h6 { font-size: 1rem; }
64
+ frontmatter {
65
+ font-size: 0.8em;
66
+ }
67
+ /* ============= */
68
+ /* = CONTAINER = */
69
+ /* ============= */
70
+ div.container {
71
+ height: 7in;
72
+ left: 0;
73
+ page: cover;
74
+ position: absolute;
75
+ top: 0;
76
+ width: 9.25in;
77
+ z-index: -1;
78
+ }
79
+
80
+ /* ============== */
81
+ /* = FRONTCOVER = */
82
+ /* ============== */
83
+ div.frontcover {
84
+ background: #fff;
85
+ }
86
+ .subtitle {
87
+ font-size: 1.5rem;
88
+ font-style: italic;
89
+ }
90
+ div.frontcover div {
91
+ left: 1in;
92
+ padding-top: 0.25in;
93
+ position: absolute;
94
+ top: 2.5in;
95
+ width: 7.25in;
96
+ }
97
+ ul.credits {
98
+ list-style-type: none;
99
+ margin-left: 0; padding-left: 0;
100
+ }
101
+ div.frontcover h1 {
102
+ color: #f00;
103
+ font-size: 46pt;
104
+ }
105
+
106
+ div.frontcover p {
107
+ font-size: 18pt;
108
+ }
109
+
110
+ div.frontcover p.description {
111
+ color: #666;
112
+ font: italic normal normal 14pt/normal Baskerville, "Hoefler Text", Garamond, "Times New Roman", serif;
113
+ margin-top: -.1in;
114
+ }
115
+
116
+ div.frontcover p.authors {
117
+ color: #000;
118
+ font-style: italic;
119
+ position: absolute;
120
+ top: 0;
121
+ }
122
+
123
+ div.frontcover * {
124
+ margin: 0;
125
+ }
126
+
127
+ /* =========== */
128
+ /* = CHAPTER = */
129
+ /* =========== */
130
+ #chapters {
131
+ counter-reset: page 1;
132
+ counter-reset: chapter;
133
+ page-break-before: always;
134
+ }
135
+
136
+ .chapter {
137
+ color: #444;
138
+ counter-reset: footnote 0;
139
+ page-break-after: always;
140
+ }
141
+
142
+ .chapter a {
143
+ color: #0AE;
144
+ text-decoration: none;
145
+ }
146
+
147
+ .chapter h2,
148
+ .chapter h3,
149
+ .chapter h4,
150
+ .chapter h5 {
151
+ margin: 25pt 0 15pt 0;
152
+ }
153
+
154
+ .chapter h2 {
155
+ color: #222;
156
+ counter-increment: chapter;
157
+ font-size: 36pt;
158
+ line-height: 1;
159
+ string-set: header "Chapter " counter(chapter) ": " content();
160
+ }
161
+
162
+ .chapter h2::before {
163
+ content: "Chapter " counter(chapter);
164
+ color: #999;
165
+ display: block;
166
+ font-size: 18pt;
167
+ letter-spacing: 0;
168
+ margin-bottom: .2em;
169
+ white-space: pre;
170
+ }
171
+
172
+ .chapter h3,
173
+ .chapter h5 {
174
+ font-family: "helvetica", arial, sans-serif;
175
+ }
176
+
177
+ .chapter h3 {
178
+ color: #b62f32;
179
+ font-size: 28px;
180
+ }
181
+
182
+ .chapter h4 {
183
+ font-size: 18px;
184
+ font-family: "helvetica neue", "arial narrow", sans-serif;
185
+ }
186
+
187
+ .chapter h5 {
188
+ font-size: 15px;
189
+ }
190
+
191
+ .chapter h6 {
192
+ font-size: 15px;
193
+ font-weight: normal;
194
+ text-transform: uppercase;
195
+ }
196
+
197
+ /* =========== */
198
+ /* = IMPRINT = */
199
+ /* =========== */
200
+ .imprint {
201
+ background: #E2E7E2;
202
+ page: cover;
203
+ string-set: header "";
204
+ }
205
+
206
+ .imprint, .imprint * {
207
+ color: #5b5b5b;
208
+ }
209
+
210
+ .imprint * {
211
+ font-family: "Lucida Grande", arial, sans-serif;
212
+ font-size: 10pt;
213
+ margin: 0 0 2pt 0;
214
+ }
215
+
216
+ .imprint div {
217
+ left: 0.5in;
218
+ position: absolute;
219
+ bottom: 0.3in;
220
+ }
221
+
222
+ /* ========== */
223
+ /* = CODING = */
224
+ /* ========== */
225
+ pre, code {
226
+ color: #090;
227
+ font-family: monaco, monospace;
228
+ font-size: 9pt;
229
+ }
230
+
231
+ pre, pre code {
232
+ font-size: 8pt;
233
+ line-height: 1.4;
234
+ padding-left: 25pt;
235
+ }
236
+
237
+ /* ========= */
238
+ /* = TABLE = */
239
+ /* ========= */
240
+ table {
241
+ border-collapse: collapse;
242
+ }
243
+
244
+ thead th {
245
+ background: #e9e9e9;
246
+ }
247
+
248
+ th, td {
249
+ border: 1px solid #ccc;
250
+ font-size: 11pt;
251
+ padding: 5pt;
252
+ }
253
+
254
+ /* ========= */
255
+ /* = LISTS = */
256
+ /* ========= */
257
+ li {
258
+ margin-bottom: 8pt;
259
+ }
260
+
261
+ li ul,
262
+ li ol {
263
+ margin-left: 15pt;
264
+ }
265
+
266
+ /* ========== */
267
+ /* = FIGURE = */
268
+ /* ========== */
269
+ .figure img:after {
270
+ content: attr("alt");
271
+ display: block;
272
+ font-size: 10pt;
273
+ }
274
+
275
+ img {
276
+ max-width: none;
277
+ prince-image-resolution: 96dpi;
278
+ }
279
+
280
+ .figure {
281
+ float: right;
282
+ margin: 0 0 20pt 20pt;
283
+ overflow: auto;
284
+ text-align: center;
285
+ }
286
+
287
+ /* ===================== */
288
+ /* = TABLE OF CONTENTS = */
289
+ /* ===================== */
290
+ div.table-of-contents {
291
+ page: toc;
292
+ }
293
+
294
+ div.table-of-contents h2 {
295
+ font-size: 36pt;
296
+ }
297
+
298
+ div.table-of-contents a {
299
+ font-size: 11pt;
300
+ text-decoration: none;
301
+ }
302
+
303
+ div.table-of-contents div.level2 a {
304
+ color: #000;
305
+ font-weight: bold;
306
+ }
307
+
308
+ div.table-of-contents #toc {
309
+ column-count: 2;
310
+ column-fill: auto;
311
+ column-gap: 5%;
312
+ column-rule: none;
313
+ column-width: 45%;
314
+ }
315
+
316
+ div.table-of-contents #toc div {
317
+ padding-bottom: 10px;
318
+ }
319
+
320
+ div.table-of-contents div.level3 {
321
+ margin-left: 20px;
322
+ }
323
+
324
+ div.table-of-contents #toc div.level3 a {
325
+ color: #555;
326
+ }
327
+
328
+ div.table-of-contents div a::before {
329
+ color: #888;
330
+ content: target-counter(attr(href), page) " ";
331
+ float: left;
332
+ font-weight: normal;
333
+ font-size: 11pt !important;
334
+ margin-right: 4px;
335
+ width: 40px;
336
+ }
337
+
338
+ div.table-of-contents div.level3 a::before {
339
+ width: 20px;
340
+ }
341
+
342
+ div.table-of-contents div.level4,
343
+ div.table-of-contents div.level5,
344
+ div.table-of-contents div.level6 {
345
+ display: none;
346
+ }
347
+
348
+ /* ===================== */
349
+ /* = OTHER TEXT TWEAKS = */
350
+ /* ===================== */
351
+ acronym:after {
352
+ content: " (" attr(title) ")";
353
+ }
354
+
355
+ /* ============= */
356
+ /* = HIGHLIGHT = */
357
+ /* ============= */
358
+ .highlight {
359
+ font-size: 20pt;
360
+ }
361
+
362
+ .highlight strong {
363
+ color: #b62f32;
364
+ }
365
+ .hll { background-color: #ffffcc }
366
+ .c { color: #aaaaaa; } /* Comment */
367
+ .err{ color: #F00000; background-color: #F0A0A0 } /* Error */
368
+ .k { color: #0000aa } /* Keyword */
369
+ .cm { color: #aaaaaa; } /* Comment.Multiline */
370
+ .cp { color: #4c8317 } /* Comment.Preproc */
371
+ .c1 { color: #aaaaaa; } /* Comment.Single */
372
+ .cs { color: #0000aa; } /* Comment.Special */
373
+ .gd { color: #aa0000 } /* Generic.Deleted */
374
+ .ge { } /* Generic.Emph */
375
+ .gr { color: #aa0000 } /* Generic.Error */
376
+ .gh { color: #000080; font-weight: bold } /* Generic.Heading */
377
+ .gi { color: #00aa00 } /* Generic.Inserted */
378
+ .go { color: #888888 } /* Generic.Output */
379
+ .gp { color: #555555 } /* Generic.Prompt */
380
+ .gs { font-weight: bold } /* Generic.Strong */
381
+ .gu { color: #800080; font-weight: bold } /* Generic.Subheading */
382
+ .gt { color: #aa0000 } /* Generic.Traceback */
383
+ .kc { color: #0000aa } /* Keyword.Constant */
384
+ .kd { color: #0000aa } /* Keyword.Declaration */
385
+ .kn { color: #0000aa } /* Keyword.Namespace */
386
+ .kp { color: #0000aa } /* Keyword.Pseudo */
387
+ .kr { color: #0000aa } /* Keyword.Reserved */
388
+ .kt { color: #00aaaa } /* Keyword.Type */
389
+ .m { color: #009999 } /* Literal.Number */
390
+ .s { color: #aa5500 } /* Literal.String */
391
+ .na { color: #1e90ff } /* Name.Attribute */
392
+ .nb { color: #00aaaa } /* Name.Builtin */
393
+ .nc { color: #00aa00; } /* Name.Class */
394
+ .no { color: #aa0000 } /* Name.Constant */
395
+ .nd { color: #888888 } /* Name.Decorator */
396
+ .ni { color: #800000; font-weight: bold } /* Name.Entity */
397
+ .nf { color: #00aa00 } /* Name.Function */
398
+ .nn { color: #00aaaa; } /* Name.Namespace */
399
+ .nt { color: #1e90ff; font-weight: bold } /* Name.Tag */
400
+ .nv { color: #aa0000 } /* Name.Variable */
401
+ .ow { color: #0000aa } /* Operator.Word */
402
+ .w { color: #bbbbbb } /* Text.Whitespace */
403
+ .mf { color: #009999 } /* Literal.Number.Float */
404
+ .mh { color: #009999 } /* Literal.Number.Hex */
405
+ .mi { color: #009999 } /* Literal.Number.Integer */
406
+ .mo { color: #009999 } /* Literal.Number.Oct */
407
+ .sb { color: #aa5500 } /* Literal.String.Backtick */
408
+ .sc { color: #aa5500 } /* Literal.String.Char */
409
+ .sd { color: #aa5500 } /* Literal.String.Doc */
410
+ .s2 { color: #aa5500 } /* Literal.String.Double */
411
+ .se { color: #aa5500 } /* Literal.String.Escape */
412
+ .sh { color: #aa5500 } /* Literal.String.Heredoc */
413
+ .si { color: #aa5500 } /* Literal.String.Interpol */
414
+ .sx { color: #aa5500 } /* Literal.String.Other */
415
+ .sr { color: #009999 } /* Literal.String.Regex */
416
+ .s1 { color: #aa5500 } /* Literal.String.Single */
417
+ .ss { color: #0000aa } /* Literal.String.Symbol */
418
+ .bp { color: #00aaaa } /* Name.Builtin.Pseudo */
419
+ .vc { color: #aa0000 } /* Name.Variable.Class */
420
+ .vg { color: #aa0000 } /* Name.Variable.Global */
421
+ .vi { color: #aa0000 } /* Name.Variable.Instance */
422
+ .il { color: #009999 } /* Literal.Number.Integer.Long */
@@ -0,0 +1,516 @@
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
+ % \input{/usr/local/share/templates/packages}
40
+ \usepackage{graphicx}
41
+ \usepackage{fontspec}
42
+ \usepackage{xunicode}
43
+ \usepackage{xltxtra}
44
+ \usepackage{adforn}
45
+ \usepackage{pifont}
46
+ \usepackage{fixltx2e} % provides \textsubscript
47
+ \DisemulatePackage{setspace}
48
+ \DisemulatePackage{crop}
49
+ \renewcommand*{\maketitle}{}
50
+
51
+ $if(beamer)$
52
+ $if(background-image)$
53
+ \usebackgroundtemplate{%
54
+ \includegraphics[width=\paperwidth]{$background-image$}%
55
+ }
56
+ $endif$
57
+ \usepackage{pgfpages}
58
+ \setbeamertemplate{caption}[numbered]
59
+ \setbeamertemplate{caption label separator}{: }
60
+ \setbeamercolor{caption name}{fg=normal text.fg}
61
+ \beamertemplatenavigationsymbols$if(navigation)$$navigation$$else$empty$endif$
62
+ $for(beameroption)$
63
+ \setbeameroption{$beameroption$}
64
+ $endfor$
65
+ % Prevent slide breaks in the middle of a paragraph
66
+ \widowpenalties 1 10000
67
+ \raggedbottom
68
+ $if(section-titles)$
69
+ \setbeamertemplate{part page}{
70
+ \centering
71
+ \begin{beamercolorbox}[sep=16pt,center]{part title}
72
+ \usebeamerfont{part title}\insertpart\par
73
+ \end{beamercolorbox}
74
+ }
75
+ \setbeamertemplate{section page}{
76
+ \centering
77
+ \begin{beamercolorbox}[sep=12pt,center]{part title}
78
+ \usebeamerfont{section title}\insertsection\par
79
+ \end{beamercolorbox}
80
+ }
81
+ \setbeamertemplate{subsection page}{
82
+ \centering
83
+ \begin{beamercolorbox}[sep=8pt,center]{part title}
84
+ \usebeamerfont{subsection title}\insertsubsection\par
85
+ \end{beamercolorbox}
86
+ }
87
+ \AtBeginPart{
88
+ \frame{\partpage}
89
+ }
90
+ \AtBeginSection{
91
+ \ifbibliography
92
+ \else
93
+ \frame{\sectionpage}
94
+ \fi
95
+ }
96
+ \AtBeginSubsection{
97
+ \frame{\subsectionpage}
98
+ }
99
+ $endif$
100
+ $endif$
101
+ $if(beamerarticle)$
102
+ \usepackage{beamerarticle} % needs to be loaded first
103
+ $endif$
104
+ $if(fontfamily)$
105
+ \usepackage[$for(fontfamilyoptions)$$fontfamilyoptions$$sep$,$endfor$]{$fontfamily$}
106
+ $else$
107
+ \usepackage{lmodern}
108
+ $endif$
109
+ $if(linestretch)$
110
+ \usepackage{setspace}
111
+ $endif$
112
+ \usepackage{amssymb,amsmath}
113
+ \usepackage{ifxetex,ifluatex}
114
+ \ifnum 0\ifxetex 1\fi\ifluatex 1\fi=0 % if pdftex
115
+ \usepackage[$if(fontenc)$$fontenc$$else$T1$endif$]{fontenc}
116
+ \usepackage[utf8]{inputenc}
117
+ \usepackage{textcomp} % provide euro and other symbols
118
+ \else % if luatex or xetex
119
+ $if(mathspec)$
120
+ \ifxetex
121
+ \usepackage{mathspec}
122
+ \else
123
+ \usepackage{unicode-math}
124
+ \fi
125
+ $else$
126
+ \usepackage{unicode-math}
127
+ $endif$
128
+ \defaultfontfeatures{Scale=MatchLowercase}
129
+ \defaultfontfeatures[\rmfamily]{Ligatures=TeX,Scale=1}
130
+ $if(mainfont)$
131
+ \setmainfont[$for(mainfontoptions)$$mainfontoptions$$sep$,$endfor$]{$mainfont$}
132
+ $endif$
133
+ $if(sansfont)$
134
+ \setsansfont[$for(sansfontoptions)$$sansfontoptions$$sep$,$endfor$]{$sansfont$}
135
+ $endif$
136
+ $if(monofont)$
137
+ \setmonofont[$for(monofontoptions)$$monofontoptions$$sep$,$endfor$]{$monofont$}
138
+ $endif$
139
+ $for(fontfamilies)$
140
+ \newfontfamily{$fontfamilies.name$}[$for(fontfamilies.options)$$fontfamilies.options$$sep$,$endfor$]{$fontfamilies.font$}
141
+ $endfor$
142
+ $if(mathfont)$
143
+ $if(mathspec)$
144
+ \ifxetex
145
+ \setmathfont(Digits,Latin,Greek)[$for(mathfontoptions)$$mathfontoptions$$sep$,$endfor$]{$mathfont$}
146
+ \else
147
+ \setmathfont[$for(mathfontoptions)$$mathfontoptions$$sep$,$endfor$]{$mathfont$}
148
+ \fi
149
+ $else$
150
+ \setmathfont[$for(mathfontoptions)$$mathfontoptions$$sep$,$endfor$]{$mathfont$}
151
+ $endif$
152
+ $endif$
153
+ $if(CJKmainfont)$
154
+ \ifxetex
155
+ \usepackage{xeCJK}
156
+ \setCJKmainfont[$for(CJKoptions)$$CJKoptions$$sep$,$endfor$]{$CJKmainfont$}
157
+ \fi
158
+ $endif$
159
+ $if(luatexjapresetoptions)$
160
+ \ifluatex
161
+ \usepackage[$for(luatexjapresetoptions)$$luatexjapresetoptions$$sep$,$endfor$]{luatexja-preset}
162
+ \fi
163
+ $endif$
164
+ $if(CJKmainfont)$
165
+ \ifluatex
166
+ \usepackage[$for(luatexjafontspecoptions)$$luatexjafontspecoptions$$sep$,$endfor$]{luatexja-fontspec}
167
+ \setmainjfont[$for(CJKoptions)$$CJKoptions$$sep$,$endfor$]{$CJKmainfont$}
168
+ \fi
169
+ $endif$
170
+ \fi
171
+ $if(beamer)$
172
+ $if(theme)$
173
+ \usetheme[$for(themeoptions)$$themeoptions$$sep$,$endfor$]{$theme$}
174
+ $endif$
175
+ $if(colortheme)$
176
+ \usecolortheme{$colortheme$}
177
+ $endif$
178
+ $if(fonttheme)$
179
+ \usefonttheme{$fonttheme$}
180
+ $endif$
181
+ $if(mainfont)$
182
+ \usefonttheme{serif} % use mainfont rather than sansfont for slide text
183
+ $endif$
184
+ $if(innertheme)$
185
+ \useinnertheme{$innertheme$}
186
+ $endif$
187
+ $if(outertheme)$
188
+ \useoutertheme{$outertheme$}
189
+ $endif$
190
+ $endif$
191
+ % Use upquote if available, for straight quotes in verbatim environments
192
+ \IfFileExists{upquote.sty}{\usepackage{upquote}}{}
193
+ \IfFileExists{microtype.sty}{% use microtype if available
194
+ \usepackage[$for(microtypeoptions)$$microtypeoptions$$sep$,$endfor$]{microtype}
195
+ \UseMicrotypeSet[protrusion]{basicmath} % disable protrusion for tt fonts
196
+ }{}
197
+ $if(indent)$
198
+ $else$
199
+ \makeatletter
200
+ \@ifundefined{KOMAClassName}{% if non-KOMA class
201
+ \IfFileExists{parskip.sty}{%
202
+ \usepackage{parskip}
203
+ }{% else
204
+ \setlength{\parindent}{0pt}
205
+ \setlength{\parskip}{6pt plus 2pt minus 1pt}}
206
+ }{% if KOMA class
207
+ \KOMAoptions{parskip=half}}
208
+ \makeatother
209
+ $endif$
210
+ $if(verbatim-in-note)$
211
+ \usepackage{fancyvrb}
212
+ $endif$
213
+ \usepackage{xcolor}
214
+ \IfFileExists{xurl.sty}{\usepackage{xurl}}{} % add URL line breaks if available
215
+ \IfFileExists{bookmark.sty}{\usepackage{bookmark}}{\usepackage{hyperref}}
216
+ \hypersetup{
217
+ $if(title-meta)$
218
+ pdftitle={$title-meta$},
219
+ $endif$
220
+ $if(author-meta)$
221
+ pdfauthor={$author-meta$},
222
+ $endif$
223
+ $if(lang)$
224
+ pdflang={$lang$},
225
+ $endif$
226
+ $if(subject)$
227
+ pdfsubject={$subject$},
228
+ $endif$
229
+ $if(keywords)$
230
+ pdfkeywords={$for(keywords)$$keywords$$sep$, $endfor$},
231
+ $endif$
232
+ $if(colorlinks)$
233
+ colorlinks=true,
234
+ linkcolor=$if(linkcolor)$$linkcolor$$else$Maroon$endif$,
235
+ filecolor=$if(filecolor)$$filecolor$$else$Maroon$endif$,
236
+ citecolor=$if(citecolor)$$citecolor$$else$Blue$endif$,
237
+ urlcolor=$if(urlcolor)$$urlcolor$$else$Blue$endif$,
238
+ $else$
239
+ hidelinks,
240
+ $endif$
241
+ pdfcreator={LaTeX via pandoc}}
242
+ \urlstyle{same} % disable monospaced font for URLs
243
+ $if(verbatim-in-note)$
244
+ \VerbatimFootnotes % allow verbatim text in footnotes
245
+ $endif$
246
+ $if(geometry)$
247
+ $if(beamer)$
248
+ \geometry{$for(geometry)$$geometry$$sep$,$endfor$}
249
+ $else$
250
+ \usepackage[$for(geometry)$$geometry$$sep$,$endfor$]{geometry}
251
+ $endif$
252
+ $endif$
253
+ $if(crop)$
254
+ \usepackage[letter,frame,center]{crop}
255
+ $endif$
256
+
257
+ $if(beamer)$
258
+ \newif\ifbibliography
259
+ $endif$
260
+ $if(listings)$
261
+ \usepackage{listings}
262
+ \newcommand{\passthrough}[1]{#1}
263
+ \lstset{defaultdialect=[5.3]Lua}
264
+ \lstset{defaultdialect=[x86masm]Assembler}
265
+ $endif$
266
+ $if(lhs)$
267
+ \lstnewenvironment{code}{\lstset{language=Haskell,basicstyle=\small\ttfamily}}{}
268
+ $endif$
269
+ $if(highlighting-macros)$
270
+ $highlighting-macros$
271
+ $endif$
272
+ $if(tables)$
273
+ \usepackage{longtable,booktabs}
274
+ $if(beamer)$
275
+ \usepackage{caption}
276
+ % Make caption package work with longtable
277
+ \makeatletter
278
+ \def\fnum@table{\tablename~\thetable}
279
+ \makeatother
280
+ $else$
281
+ % Correct order of tables after \paragraph or \subparagraph
282
+ \usepackage{etoolbox}
283
+ \makeatletter
284
+ \patchcmd\longtable{\par}{\if@noskipsec\mbox{}\fi\par}{}{}
285
+ \makeatother
286
+ % Allow footnotes in longtable head/foot
287
+ \IfFileExists{footnotehyper.sty}{\usepackage{footnotehyper}}{\usepackage{footnote}}
288
+ \makesavenoteenv{longtable}
289
+ $endif$
290
+ $endif$
291
+ $if(graphics)$
292
+ \usepackage{graphicx}
293
+ \makeatletter
294
+ \def\maxwidth{\ifdim\Gin@nat@width>\linewidth\linewidth\else\Gin@nat@width\fi}
295
+ \def\maxheight{\ifdim\Gin@nat@height>\textheight\textheight\else\Gin@nat@height\fi}
296
+ \makeatother
297
+ % Scale images if necessary, so that they will not overflow the page
298
+ % margins by default, and it is still possible to overwrite the defaults
299
+ % using explicit options in \includegraphics[width, height, ...]{}
300
+ \setkeys{Gin}{width=\maxwidth,height=\maxheight,keepaspectratio}
301
+ % Set default figure placement to htbp
302
+ \makeatletter
303
+ \def\fps@figure{htbp}
304
+ \makeatother
305
+ $endif$
306
+ $if(links-as-notes)$
307
+ % Make links footnotes instead of hotlinks:
308
+ \DeclareRobustCommand{\href}[2]{#2\footnote{\url{#1}}}
309
+ $endif$
310
+ $if(strikeout)$
311
+ \usepackage[normalem]{ulem}
312
+ % Avoid problems with \sout in headers with hyperref
313
+ \pdfstringdefDisableCommands{\renewcommand{\sout}{}}
314
+ $endif$
315
+ \setlength{\emergencystretch}{3em} % prevent overfull lines
316
+ \providecommand{\tightlist}{%
317
+ \setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}}
318
+ $if(numbersections)$
319
+ \setcounter{secnumdepth}{$if(secnumdepth)$$secnumdepth$$else$5$endif$}
320
+ $else$
321
+ \setcounter{secnumdepth}{-\maxdimen} % remove section numbering
322
+ $endif$
323
+ $if(beamer)$
324
+ $else$
325
+ $if(block-headings)$
326
+ % Make \paragraph and \subparagraph free-standing
327
+ \ifx\paragraph\undefined\else
328
+ \let\oldparagraph\paragraph
329
+ \renewcommand{\paragraph}[1]{\oldparagraph{#1}\mbox{}}
330
+ \fi
331
+ \ifx\subparagraph\undefined\else
332
+ \let\oldsubparagraph\subparagraph
333
+ \renewcommand{\subparagraph}[1]{\oldsubparagraph{#1}\mbox{}}
334
+ \fi
335
+ $endif$
336
+ $endif$
337
+ $if(pagestyle)$
338
+ \pagestyle{$pagestyle$}
339
+ $endif$
340
+ % BOWB
341
+ $for(header-includes)$
342
+ $header-includes$
343
+ $endfor$
344
+ $if(lang)$
345
+ \ifxetex
346
+ % Load polyglossia as late as possible: uses bidi with RTL langages (e.g. Hebrew, Arabic)
347
+ \usepackage{polyglossia}
348
+ \setmainlanguage[$polyglossia-lang.options$]{$polyglossia-lang.name$}
349
+ $for(polyglossia-otherlangs)$
350
+ \setotherlanguage[$polyglossia-otherlangs.options$]{$polyglossia-otherlangs.name$}
351
+ $endfor$
352
+ \else
353
+ \usepackage[shorthands=off,$for(babel-otherlangs)$$babel-otherlangs$,$endfor$main=$babel-lang$]{babel}
354
+ $if(babel-newcommands)$
355
+ $babel-newcommands$
356
+ $endif$
357
+ \fi
358
+ $endif$
359
+ $if(dir)$
360
+ \ifxetex
361
+ % Load bidi as late as possible as it modifies e.g. graphicx
362
+ \usepackage{bidi}
363
+ \fi
364
+ \ifnum 0\ifxetex 1\fi\ifluatex 1\fi=0 % if pdftex
365
+ \TeXXeTstate=1
366
+ \newcommand{\RL}[1]{\beginR #1\endR}
367
+ \newcommand{\LR}[1]{\beginL #1\endL}
368
+ \newenvironment{RTL}{\beginR}{\endR}
369
+ \newenvironment{LTR}{\beginL}{\endL}
370
+ \fi
371
+ $endif$
372
+ $if(natbib)$
373
+ \usepackage[$natbiboptions$]{natbib}
374
+ \bibliographystyle{$if(biblio-style)$$biblio-style$$else$plainnat$endif$}
375
+ $endif$
376
+ $if(biblatex)$
377
+ \usepackage[$if(biblio-style)$style=$biblio-style$,$endif$$for(biblatexoptions)$$biblatexoptions$$sep$,$endfor$]{biblatex}
378
+ $for(bibliography)$
379
+ \addbibresource{$bibliography$}
380
+ $endfor$
381
+ $endif$
382
+ $if(csl-refs)$
383
+ \newlength{\cslhangindent}
384
+ \setlength{\cslhangindent}{1.5em}
385
+ \newenvironment{cslreferences}%
386
+ {$if(csl-hanging-indent)$\setlength{\parindent}{0pt}%
387
+ \everypar{\setlength{\hangindent}{\cslhangindent}}\ignorespaces$endif$}%
388
+ {\par}
389
+ $endif$
390
+
391
+ $if(title)$
392
+ \title{$title$$if(thanks)$\thanks{$thanks$}$endif$}
393
+ $endif$
394
+ $if(subtitle)$
395
+ $if(beamer)$
396
+ $else$
397
+ \usepackage{etoolbox}
398
+ \makeatletter
399
+ \providecommand{\subtitle}[1]{% add subtitle to \maketitle
400
+ \apptocmd{\@title}{\par {\large #1 \par}}{}{}
401
+ }
402
+ \makeatother
403
+ $endif$
404
+ \subtitle{$subtitle$}
405
+ $endif$
406
+ \author{$for(author)$$author$$sep$ \and $endfor$}
407
+ \date{$date$}
408
+ $if(beamer)$
409
+ $if(institute)$
410
+ \institute{$for(institute)$$institute$$sep$ \and $endfor$}
411
+ $endif$
412
+ $if(titlegraphic)$
413
+ \titlegraphic{\includegraphics{$titlegraphic$}}
414
+ $endif$
415
+ $if(logo)$
416
+ \logo{\includegraphics{$logo$}}
417
+ $endif$
418
+ $endif$
419
+ \let\originalsubparagraph\subparagraph
420
+ \renewcommand{\subparagraph}[2][]{}
421
+
422
+ \begin{document}
423
+ $if(has-frontmatter)$
424
+ \frontmatter
425
+ $endif$
426
+ $if(title)$
427
+ $if(beamer)$
428
+ \frame{\titlepage}
429
+ $else$
430
+ \maketitle
431
+ $endif$
432
+ $if(abstract)$
433
+ \begin{abstract}
434
+ $abstract$
435
+ \end{abstract}
436
+ $endif$
437
+ $endif$
438
+
439
+ $for(include-before)$
440
+ $include-before$
441
+
442
+ $endfor$
443
+ $if(toc)$
444
+ $if(toc-title)$
445
+ \renewcommand*\contentsname{$toc-title$}
446
+ $endif$
447
+ $if(beamer)$
448
+ \begin{frame}[allowframebreaks]
449
+ $if(toc-title)$
450
+ \frametitle{$toc-title$}
451
+ $endif$
452
+ \tableofcontents[hideallsubsections]
453
+ \end{frame}
454
+ $else$
455
+ {
456
+ $if(colorlinks)$
457
+ \hypersetup{linkcolor=$if(toccolor)$$toccolor$$else$$endif$}
458
+ $endif$
459
+ \setcounter{tocdepth}{$toc-depth$}
460
+ \tableofcontents
461
+ }
462
+ $endif$
463
+ $endif$
464
+ $if(lot)$
465
+ \listoftables
466
+ $endif$
467
+ $if(lof)$
468
+ \listoffigures
469
+ $endif$
470
+ $if(linestretch)$
471
+ \setstretch{$linestretch$}
472
+ $endif$
473
+ $if(has-frontmatter)$
474
+ \mainmatter
475
+ $endif$
476
+ $body$
477
+
478
+ $if(has-frontmatter)$
479
+ \backmatter
480
+ $endif$
481
+ $if(natbib)$
482
+ $if(bibliography)$
483
+ $if(biblio-title)$
484
+ $if(has-chapters)$
485
+ \renewcommand\bibname{$biblio-title$}
486
+ $else$
487
+ \renewcommand\refname{$biblio-title$}
488
+ $endif$
489
+ $endif$
490
+ $if(beamer)$
491
+ \begin{frame}[allowframebreaks]{$biblio-title$}
492
+ \bibliographytrue
493
+ $endif$
494
+ \bibliography{$for(bibliography)$$bibliography$$sep$,$endfor$}
495
+ $if(beamer)$
496
+ \end{frame}
497
+ $endif$
498
+
499
+ $endif$
500
+ $endif$
501
+ $if(biblatex)$
502
+ $if(beamer)$
503
+ \begin{frame}[allowframebreaks]{$biblio-title$}
504
+ \bibliographytrue
505
+ \printbibliography[heading=none]
506
+ \end{frame}
507
+ $else$
508
+ \printbibliography$if(biblio-title)$[title=$biblio-title$]$endif$
509
+ $endif$
510
+
511
+ $endif$
512
+ $for(include-after)$
513
+ $include-after$
514
+
515
+ $endfor$
516
+ \end{document}