-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtemplate.tex
77 lines (63 loc) · 1.64 KB
/
template.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
\documentclass[a4paper,11pt,oneside]{book}
\usepackage[top=2cm, bottom=2cm, left=2cm, right=2cm]{geometry}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{lmodern}
\usepackage{graphicx}
\usepackage{caption}
\usepackage{natbib}
\usepackage{xcolor}
\usepackage{changepage}
\usepackage{framed}
\usepackage{hyperref}
\usepackage{amssymb}
\bibliographystyle{abbrvnat}
% Make list items more compact
\usepackage{enumitem}
\setlist[itemize]{noitemsep, topsep=0pt}
[- IMPORTS -]
\hypersetup{
colorlinks,
linkcolor={black},
citecolor={black},
urlcolor={black}
}
% Style quotes
\definecolor{darkblue}{rgb}{0.0, 0.0, 0.55}
\definecolor{quoteshade}{rgb}{0.95, 0.95, 1}
\renewenvironment{quote}{%
\def\FrameCommand{%
\hspace{1pt}%
{\color{darkblue}\vrule width 2pt}%
{\color{quoteshade}\vrule width 4pt}%
\colorbox{quoteshade}%
}%
\MakeFramed {\advance\hsize-\width \FrameRestore}%
\noindent\hspace{-8pt}% disable indenting first paragraph
\begin{adjustwidth}{0pt}{0pt}% adjust as needed
\vspace{2pt}\vspace{2pt}%
}
{%
\vspace{2pt}\end{adjustwidth}\endMakeFramed%
}
\title{\Huge \textbf{[-doc.title-]}[# if doc.subtitle #] \\ \huge [-doc.subtitle-][# endif #]}
\author{\textsc{
[#- for author in doc.authors #]
[#- if not loop.first #] and [# endif #][-author.name-][# if not loop.last and not loop.first #], [# endif #]
[#- endfor -#]
}}
\begin{document}
\sloppy
\frontmatter
\maketitle
\tableofcontents
% \listoffigures
% \listoftables
\mainmatter
% \include{preface.tex}
% \include{acknowledgements.tex}
[- CONTENT -]
[# if doc.bibliography #]
\bibliography{[- doc.bibliography | join(", ") -]}
[# endif #]
\end{document}