-
Notifications
You must be signed in to change notification settings - Fork 2
/
pandoc-caspervector.tex
127 lines (112 loc) · 2.57 KB
/
pandoc-caspervector.tex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
$if(ctex)$
\documentclass[UTF8]{ctexart}
$else$
\documentclass[$for(classoption)$$classoption$$sep$, $endfor$]{$documentclass$}
$endif$
\usepackage{fixltx2e, iftex, lmodern, microtype}
\usepackage{upquote, indentfirst, amssymb, amsmath}
\usepackage[font = it, labelformat = empty]{caption}
\ifXeTeX
\usepackage{xltxtra}
\fi
\ifLuaTeX
\usepackage{fontspec}
\fi
\ifPDFTeX
\usepackage[utf8]{inputenc}
\else
\defaultfontfeatures{Ligatures = TeX, Scale = MatchLowercase}
\fi
$if(geometry)$
\usepackage[$for(geometry)$$geometry$$sep$, $endfor$]{geometry}
$else$
\usepackage[a4paper, margin = 2cm, centering, includefoot]{geometry}
$endif$
$if(graphics)$
\usepackage{graphicx}
\usepackage[Export]{adjustbox}
\adjustboxset{max totalsize = {0.90\textwidth}{0.36\textheight}}
$endif$
$if(tables)$
\usepackage{longtable, booktabs}
$endif$
$if(verbatim-in-note)$
\usepackage{fancyvrb}
\VerbatimFootnotes
$endif$
$if(strikeout)$
\usepackage[normalem]{ulem}
\pdfstringdefDisableCommands{\renewcommand{\sout}{}}
$endif$
$if(biblatex)$
\usepackage[$for(biblatex-option)$$biblatex-option$$sep$, $endfor$]{biblatex}
$if(biblio-files)$
\addbibresource{$biblio-files$}
$endif$
$endif$
\usepackage{hyperref}
\hypersetup{
pdfauthor = {$author-meta$},
pdftitle = {$title-meta$},
unicode = true,
colorlinks = true,
allcolors = blue,
linkcolor = $if(linkcolor)$$linkcolor$$else$blue$endif$,
citecolor = $if(citecolor)$$citecolor$$else$blue$endif$,
urlcolor = $if(urlcolor)$$urlcolor$$else$blue$endif$,
}
$if(ctex)$
\pagestyle{plain}
$endif$
\renewcommand{\floatpagefraction}{0.72}
\setlength{\emergencystretch}{3em}
\providecommand{\tightlist}%
{\setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}}
\setcounter{tocdepth}{$toc-depth$}
\setcounter{secnumdepth}{$if(numbersections)$5$else$0$endif$}
\let\oldthanks\thanks
\renewcommand{\thanks}[1]{\oldthanks{\ #1}}
\let\oldfootnote\footnote
\renewcommand{\footnote}[1]{\oldfootnote{\ #1}}
$if(links-as-notes)$
\renewcommand{\href}[2]{#2\footnote{\url{#1}}}
$endif$
$for(header-includes)$
$header-includes$
$endfor$
$if(title)$
\title{\textbf{$title$}}
$endif$
$if(subtitle)$
\subtitle{$subtitle$}
$endif$
$if(author)$
\author{$for(author)$$author$$sep$ \and $endfor$}
$endif$
$if(date)$
\date{$date$}
$endif$
\begin{document}
$if(title)$
\maketitle
$endif$
$if(abstract)$
\begin{abstract}
$abstract$
\end{abstract}
$endif$
$for(include-before)$
$include-before$
$endfor$
$if(toc)$
\tableofcontents
$endif$
$body$
$if(biblatex)$
\printbibliography[$if(biblio-title)$title = {$biblio-title$}$endif$]
$endif$
$for(include-after)$
$include-after$
$endfor$
\end{document}
% vim:ft=tex