\documentclass[11pt,a4paper,notitlepage,twoside]{report}
\usepackage[a4paper, top=3cm, bottom=3.5cm, inner=3.5cm, outer=5cm, marginpar=3.8cm]{geometry}

\input{common-packages}
\input{common-defs}

\newcommand{\figurepath}{}
\newcommand{\chaptertitle}[1]{
\chapter{#1}
\setstretch{1}
\minitoc
\newpage
\setstretch{1.3}
}

\newcommand{\dochapter}[1]{
    \renewcommand{\figurepath}{#1/figures}
    \graphicspath{{\figurepath}}
    \input{#1/chapter.tex}

    \chapterbibliography
}

\begin{document}

\ifdefined\thesispreviewmode
{\Large \textbf{Draft build}, git revision \texttt{\input{version}}}
\fi

\tableofcontents
\listoffigures
\listoftables

\dochapter{chapter-introduction} % Status: TODO
\dochapter{chapter-hsms} % Status: TODO
\dochapter{chapter-ihsm} % Status: Copy-paste done, build works, integration TODO
\dochapter{chapter-qkd} % Status: Re-integration of changes from workshop paper TODO
\dochapter{chapter-smpc} % Status: TODO
\dochapter{chapter-sampling-mesh-monitor} % Status: Copy-paste done, build works, integration TODO
\dochapter{chapter-nice-coils} % Status: Copy-paste done, build works, integration TODO
\dochapter{chapter-conclusion} % Status: Copy-paste done, build works, integration TODO

\appendix

\end{document}
