% -------------------
% Main file
%
% Contains configurations and connects all the other files together.
% In case you are manually compiling, set this one as the compilation target.
% -------------------
% The thesis will be printed in a double-sided format
\documentclass[12pt, twoside]{book}
% -------------------
% Packages and configs
% -------------------
%%% General %%%
% Set the geometry of the page, so the left margin is bigger
% to account for binding
\usepackage[
a4paper,
top=2.5cm,bottom=2.5cm,
left=3.5cm,right=2cm
]{geometry}
% Set English as the document language and UTF-8 as the encoding
\usepackage[english]{babel}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
%%% Formatting %%%
% Indent the first paragraph as well
\usepackage{indentfirst}
% Forcibly glue the footnotes to the bottom of the page
\usepackage[bottom]{footmisc}
% Configure Table of Contents
\usepackage[titles]{tocloft}
\usepackage[toc,page]{appendix}
\input{preambles/toc}
% Set smaller vertical space between items in lists
\usepackage{enumitem}
\setlist{itemsep=1pt}
% Adjust the spacing around the `\paragraph` section titles
\usepackage{titlesec}
\titlespacing*{\paragraph}{0pt}{2ex}{1em}
\usepackage{xspace}
\usepackage[gen]{eurosym}
\usepackage{etoolbox}
\input{preambles/formatting}
%%% References %%%
% Configure to use proper APA style
\usepackage[
backend=biber,
style=apa,
natbib=true,
sortcites=false,
uniquename=false
]{biblatex}
\input{preambles/references}
%%% Math and algorithms %%%
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{bm}
\usepackage{nicefrac}
\input{preambles/math}
% Pretty pseudo-code algorithms
\usepackage[
linesnumbered,
ruled,vlined,
resetcount,
algochapter
]{algorithm2e}
%%% Colored text %%%
\usepackage[dvipsnames]{xcolor}
\usepackage{xifthen}
% Small utilities for highlighting TODOs
\newcommand{\todo}[1][]{
\textcolor{red}{%
[TODO%
\ifthenelse{\isempty{#1}}%
{}%
{: #1}%
]%
}%
\xspace
}
\newcommand*{\tocite}{\textcolor{orange}{[reference needed]}\xspace}
%%% Graphics and floats %%%
% Make labels in captions (e.g., Figure 1 or Table 2) in bold
\usepackage[labelfont=bf]{caption}
\usepackage{subcaption}
\usepackage{graphicx}
\usepackage{pdfpages}
\usepackage{pdflscape}
\usepackage{float}
% Enable TikZ drawing library in case you want to draw diagrams directly in LaTeX
\usepackage{tikz}
\usetikzlibrary{arrows.meta}
%%% Tables %%%
% Use Booktabs style
\usepackage{booktabs}
\usepackage{multirow}
%%% Hyperlinking %%%
\usepackage{url}
\usepackage[hidelinks,breaklinks]{hyperref}
\usepackage[capitalise]{cleveref}
\input{preambles/hyperlinks}
%%% Quotes %%%
\usepackage[autostyle]{csquotes}
\MakeOuterQuote{"}
\SetCiteCommand{\citep}
%%% Additional lists %%%
\usepackage[
acronym,
symbols,
nogroupskip,
toc=false,
nomain,
record=hybrid
]{glossaries-extra}
\usepackage{glossary-mcols}
\makeglossaries
% -------------------
% Thesis info
% -------------------
\input{preambles/doc-info}
\begin{document}
\frontmatter
\pagestyle{empty}
% -------------------
% Cover and the front page
% -------------------
\input{sections/cover}
\cleardoublepage
\input{sections/front}
\cleardoublepage
% -------------------
% Thesis assignments
% -------------------
\newpage
\setcounter{page}{3}
\includepdf{assignments/assignment-sk.pdf}
\includepdf{assignments/assignment-en.pdf}
% -------------------
% Declaration and acknowledgments (optional)
% -------------------
\newpage
\pagestyle{plain}
% Comment these out if you don't want to have them
\input{sections/declaration}
\input{sections/acks}
% -------------------
% Abstracts (EN first, SK second)
% -------------------
\newpage
\input{sections/abstracts}
% -------------------
% Table of Contents
% -------------------
\cleardoublepage
\tableofcontents
% -------------------
% Lists
% -------------------
\newpage
% These lists will be rendered automatically,
% if any figure, table, or algorithm is present in the document
\listoffigures
\listoftables
\listofalgorithms
% These must be switched on/off manually
% Comment them out, if you don't want these lists included
\input{lists/acronyms}
\input{lists/symbols}
% -------------------
% Main content
% -------------------
\mainmatter
\pagestyle{headings}
\input{sections/intro}
% Link here your chapter files from `sections/` using `\input{}`.
% You can omit `.tex` from the filenames here. The order of linking
% determines the order in the document. For example:
%\input{sections/preliminaries}
%\input{sections/methods}
%\input{sections/results}
%\input{sections/discussion}
% The tutorial chapter; remove this one, once you are done with it
\input{sections/chapter}
\input{sections/conclusion}
% -------------------
% References
% -------------------
\newpage
\thispagestyle{empty}
\clearpage
\printbibliography
% -------------------
% Appendices (optional)
% -------------------
% Comment these out (incl. `\appendix`) if you don't have any appendices
\appendix
\input{sections/appendixA}
\input{sections/appendixB}
\input{sections/appendixC}
\end{document}