\documentclass[11pt,a4paper]{report}

\usepackage{a4}
\usepackage[utf8]{inputenc}
\usepackage{titlesec,blindtext, color} % titleformat
\usepackage{fancyhdr}
\usepackage{geometry}
\usepackage{multirow,tabularx,tabu}

\newcommand{\topic}{A Declarative And Reproducible Approach To Application Deployment Via Container Images}

\newcommand{\authorOne}{Stefan Junker}
\newcommand{\authorOnestreet}{Alemannenstr. 7}
\newcommand{\authorOnezip}{78467}
\newcommand{\authorOnecity}{Konstanz}
\newcommand{\authorOneCountry}{Germany}
\newcommand{\authorOneId}{283751}
\newcommand{\supervisorOne}{Prof. Dr. Michael Mächtel}
\newcommand{\supervisorTwo}{TODO supervisor two}
\newcommand{\studies}{TODO studies}
\newcommand{\startdate}{TODO startdate}
\newcommand{\submitdate}{TODO submitdate}
\newcommand{\buzzwords}{TODO buzzwords}

% Numbered Subsubsections
\setcounter{secnumdepth}{3}

\date{Wintersemester 2016/2017}
\title{\topic}

\author{authorOne}

\geometry{a4paper, top=25mm, left=30mm, right=40mm,  bottom=35mm, headsep=10mm, footskip=12mm}

\fancypagestyle{plain}{%
    \fancyhead[L]{\small SJ}
    \fancyhead[R]{}
    \fancyhead[C]{}
    
    \fancyfoot[R]{\thepage{}}
    \fancyfoot[C]{}
}

\newcommand{\hsp}{\hspace{20pt}}
\titleformat{\chapter}[hang]{\vspace{-2cm}\Huge\bfseries}{\thechapter\hsp}{0cm}{}

\makeatletter
\renewcommand\paragraph{\startsection{paragraph}{4}{\z}%
                                     {-3.25ex\plus -1ex \minus -.2ex}%
                                     {0.0001pt \plus 0.2ex}%
                                     {\normalfont\normalsize\bfseries}}
\renewcommand\subparagraph{\startsection{subparagraph}{5}{\z}%
                                     {-3.25ex\plus -1ex \minus -.2ex}%
                                     {0.0001pt \plus 0.2ex}%
                                     {\normalfont\normalsize\bfseries}}
\makeatother

\begin{document}

\pagenumbering{roman}
	\pagestyle{plain}
	%TODO: \include{cover}
	\include{title}
	\include{abstract.tex}
	%TODO: \include{affidavit}
	\cleardoublepage
    \newcounter{roman_pagenumbers} % save page number
    \setcounter{roman_pagenumbers}{\value{page}}


\pagestyle{fancy}
\fancyhf{}
\addtolength{\headwidth}{\marginparsep}
\headheight=15pt
\pagenumbering{arabic}
\fancyfoot[R]{\thepage{}}
\fancyhead[L]{\small \autorlinit, \autorminit, \autorsinit}
\fancyhead[R]{\nouppercase{\rightmark}}

\pagenumbering{arabic}
	\pagestyle{fancy}
	%TODO \include{acknowledgements}
	
	\tableofcontents
	
	%TODO \printnomenclature[3cm]

    \chapter{Preface}
    This dissertation is original, unpublished, independent work by the author, \authorOne.
	
    \part{Introduction}
    \include{introduction}

    \part{Research}
    \chapter{Existing Package Managers}
    \section{Guix}
    \begin{list}{-}{Guix Important Features}
    \item `guix refresh` can update package sources according to defined updaters
    \end{list}
    \part{Development}
    \part{Conclusion}

	\newpage
	%TODO \listofmyequations
	\listoftables
	%TODO \lstlistoflistings
	\listoffigures	
	%TODO \printbibliography
\end{document}
