% !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}

PDF Preview
Create an account to compile and preview