% bandali-mmath-thesis.tex --- Amin Bandali's MMath thesis -*-latex-*-

% Copyright (C) 2020 Amin Bandali <bandali@uwaterloo.ca>

% This file is part of Amin Bandali's MMath thesis.

% This thesis is free software: you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
% the Free Software Foundation, either version 3 of the License, or
% (at your option) any later version.

% This thesis is distributed in the hope that it will be useful,
% but WITHOUT ANY WARRANTY; without even the implied warranty of
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
% GNU General Public License for more details.

% You should have received a copy of the GNU General Public License
% along with this thesis.  If not, see <https://www.gnu.org/licenses/>.


\def\name{Amin Bandali}
\def\thesistitle{A Comprehensive Study of Declarative Modelling Languages}

\input{thesis-preamble}

\begin{document}

%% ===================================================================
%% Thesis front matter
%% ===================================================================

\input{thesis-front}

%% ===================================================================
%% Thesis chapters
%% ===================================================================

\input{chapter/introduction}
\input{chapter/background}
\input{chapter/methodology}
\input{chapter/control}
\input{chapter/data}
\input{chapter/modularity}
\input{chapter/case-studies}
\input{chapter/recommendations}
\input{chapter/related-work}
\input{chapter/conclusion}

%% ===================================================================
%% Thesis back matter
%% ===================================================================

\bibliographystyle{plain}
\cleardoublepage % needed if the book class is used, to place the
                 % anchor in the correct page, as the bibliography
                 % will start on its own page; use \clearpage instead
                 % if the document class uses the "oneside" argument
\phantomsection  % with hyperref, enables hyperlinking from the table
                 % of contents to bibliography

\renewcommand*{\bibname}{References}

% add References to the table of contents
\addcontentsline{toc}{chapter}{\textbf{References}}

% insert the bibliography
\bibliography{bandali-mmath-thesis}

%% add all references, including the uncited ones, to the bibliography
% \nocite{*}


\appendix

%% add a title page before the appendices and a line in the table of
%% contents
\chapter*{APPENDICES}
\addcontentsline{toc}{chapter}{APPENDICES}

%% insert the appendices
\input{appendix/tool-versions}
\input{appendix/meta}
\input{appendix/gpl-3.0}

\end{document}
