\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}{figures}
\graphicspath{{\figurepath}}

\newcommand{\chaptertitle}[1]{
\faketableofcontents
\chapter{#1}
\ifdefined\thesispreviewmode
{\Large \textbf{Draft build}, git revision \texttt{\input{version}}}
\fi
\setstretch{1}
\minitoc
\newpage
\setstretch{1.3}
}

\begin{document}

\input{chapter}

\chapterbibliography

\appendix

\end{document}
