-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathchecklist-template.tex
More file actions
173 lines (133 loc) · 3.56 KB
/
Copy pathchecklist-template.tex
File metadata and controls
173 lines (133 loc) · 3.56 KB
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
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
\documentclass[12pt]{article}
\usepackage{amsmath,amssymb}
$if(linestretch)$
\usepackage{setspace}
$endif$
\usepackage{iftex}
\ifPDFTeX
\usepackage[$if(fontenc)$$fontenc$$else$T1$endif$]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{textcomp} % provide euro and other symbols
\else % if luatex or xetex
% Use upquote if available, for straight quotes in verbatim environments
\IfFileExists{upquote.sty}{\usepackage{upquote}}{}
\IfFileExists{microtype.sty}{% use microtype if available
\usepackage[$for(microtypeoptions)$$microtypeoptions$$sep$,$endfor$]{microtype}
\UseMicrotypeSet[protrusion]{basicmath} % disable protrusion for tt fonts
}{}
$if(indent)$
$else$
\makeatletter
\@ifundefined{KOMAClassName}{% if non-KOMA class
\IfFileExists{parskip.sty}{%
\usepackage{parskip}
}{% else
\setlength{\parindent}{0pt}
\setlength{\parskip}{6pt plus 2pt minus 1pt}}
}{% if KOMA class
\KOMAoptions{parskip=half}}
\makeatother
$endif$
$if(verbatim-in-note)$
\usepackage{fancyvrb}
$endif$
\usepackage{xcolor}
\IfFileExists{xurl.sty}{\usepackage{xurl}}{} % add URL line breaks if available
\IfFileExists{bookmark.sty}{\usepackage{bookmark}}{\usepackage{hyperref}}
\hypersetup{
$if(title-meta)$
pdftitle={$title-meta$},
$endif$
$if(author-meta)$
pdfauthor={$author-meta$},
$endif$
$if(lang)$
pdflang={$lang$},
$endif$
$if(subject)$
pdfsubject={$subject$},
$endif$
$if(keywords)$
pdfkeywords={$for(keywords)$$keywords$$sep$, $endfor$},
$endif$
pdfcreator={LaTeX via pandoc}}
\urlstyle{same} % disable monospaced font for URLs
$if(verbatim-in-note)$
\VerbatimFootnotes % allow verbatim text in footnotes
$endif$
\usepackage{geometry}
\geometry{a5paper, margin=1cm, top=3cm, bottom=4cm, headheight=48pt}
$-- My stuff $
\usepackage{helvet}
\renewcommand{\familydefault}{\sfdefault}
\usepackage{fontspec}
\defaultfontfeatures[russoone]
{
Path = ./font/ ,
Extension = .ttf ,
UprightFont = RussoOne-Regular ,
}
\newfontfamily\russoone{russoone}
% remove section numbers
\setcounter{secnumdepth}{-\maxdimen}
% enable lists
\providecommand{\tightlist}{%
\setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}}
$if(numbersections)$
\setcounter{secnumdepth}{$if(secnumdepth)$$secnumdepth$$else$5$endif$}
$else$
\setcounter{secnumdepth}{-\maxdimen} % remove section numbering
$endif$
\usepackage{qrcode}
\usepackage{graphbox} %loads graphicx package
\usepackage[export]{adjustbox}
% \usepackage{showframe}
\graphicspath{ {./graphics/} }
\usepackage{titlesec}
\titleformat{\section}
{\russoone\large}
{\thesection}{}{}
% spacing before/after section title
\titlespacing\section{0pt}{2pt plus 4pt minus 1pt}{0pt plus 2pt minus 2pt}
\usepackage{datetime}
% redefine \today to isoformat
\yyyymmdddate
\renewcommand{\dateseparator}{-}
\usepackage{fancyhdr}
\pagestyle{fancy}
%no pagenumbering
\pagenumbering{gobble}
$-- line below header
\renewcommand{\headrulewidth}{2pt}
$-- Header
\lhead{ {\russoone \Large Checklist:
$if(checklist_title)$
$checklist_title$
$else$
checklist_title is missing!
$endif$
}
\\ \qquad { \today}
}
\rhead{\includegraphics[height=1.4cm, align=b]{logo}}
$-- footer
$if(source_link)$
\lfoot{\scriptsize{$source_link$}}
\rfoot{\raisebox{1.4cm}{\qrcode[height=3cm, nolink]{$source_link$}}}
$endif$
\begin{document}
$-- Warning Symbols
$for(checklist_symbols)$
\includegraphics[height=1.5cm]{symbols/$checklist_symbols$}
$endfor$
$if(has-frontmatter)$
\mainmatter
$endif$
$body$
$if(has-frontmatter)$
\backmatter
$endif$
$for(include-after)$
$include-after$
$endfor$
\end{document}