%% {{ title }} - Main Thesis Document
%% Auto-generated by ggen from RDF ontology
%% DO NOT EDIT - Regenerate from source ontology

\documentclass[12pt,a4paper,oneside]{memoir}

% Preamble
\input{preamble}

% Document metadata
\title{% raw %}{{ title }}{% if subtitle %} \\ \Large {{ subtitle }}{% endif %}{% endraw %}}
\author{% raw %}{{ author }}{% endraw %}}
\date{% raw %}{{ date }}{% endraw %}}

% Custom metadata for title page
\newcommand{\institution}{% raw %}{{ institution }}{% endraw %}}
\newcommand{\department}{% raw %}{{ department }}{% endraw %}}

\begin{document}

% Front matter
\frontmatter
\input{front-matter}

% Main content
\mainmatter
{% raw %}{% for chapter in chapters %}
\input{chapter-{{ chapter.number }}}
{% endfor %}{% endraw %}

% Bibliography
\backmatter
\bibliographystyle{plain}
\bibliography{bibliography}

% Appendices
{% raw %}{% if appendices %}
\appendix
{% for appendix in appendices %}
\input{appendix-{{ appendix.number }}}
{% endfor %}
{% endif %}{% endraw %}

% Index
\printindex

\end{document}
