-
Notifications
You must be signed in to change notification settings - Fork 2
/
Thesis.tex
57 lines (47 loc) · 1.7 KB
/
Thesis.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
% !TEX program = xelatex
% !BIB program = biber
\input{preamble/static}
\input{preamble/general}
\input{preamble/fonts}
\input{preamble/etc}
\addbibresource{bibliography/Bibliography.bib}
% Fixes _ and ~ in URLs from Mendeley (https://tex.stackexchange.com/a/309995/39354)
% Should not have any side effects, so it's on by default.
\DeclareSourcemap{
\maps{
\map{ % Replaces '{\_}', '{_}' or '\_' with just '_'
\step[fieldsource=url,
match=\regexp{\{\\\_\}|\{\_\}|\\\_},
replace=\regexp{\_}]
}
\map{ % Replaces '{'$\sim$'}', '$\sim$' or '{~}' with just '~'
\step[fieldsource=url,
match=\regexp{\{\$\\sim\$\}|\{\~\}|\$\\sim\$},
replace=\regexp{\~}]
}
}
}
\begin{document}
\prefrontmatter % Custom command: page numbers are lowercase letters (front page is page a), confidential watermarks if enabled
\include{prefrontmatter/titlepage}
\cleartoevenpage
\include{prefrontmatter/colophon}
\clearforchapter
\frontmatter % Turn off chapter numbering, page numbers are roman numerals
\include{frontmatter/Abstract}
\include{frontmatter/Preface}
\include{frontmatter/Acknowledgements}
\clearforchapter
\tableofcontents
\clearforchapter
\mylistoftodos
\mainmatter % Turn on chapter numbering, reset page numbering and page numbers are Arabic numerals
\include{chapters/Introduction}
\include{chapters/LongTitle}
\blinddocument
\include{chapters/Conclusion}
\appendix % Reset chapter numbering, chapter numbers are letters and does nothing to page numbering
\include{appendices/AnAppendix}
\backmatter % Turn off chapter numbering and does nothing to page numbering
\printbibliography
\end{document}