\documentclass[11pt,a4paper]{report}

\usepackage[utf8]{inputenc}

\usepackage{titlesec,blindtext, color} % titleformat
\usepackage{fancyhdr}

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

\usepackage{multirow,tabularx,tabu}

\usepackage[numberedsection,toc,numberline,nopostdot]{glossaries}
\makenoidxglossaries

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

\newcommand{\authorOne}{Stefan Junker}
\newcommand{\authorOneInit}{SJ}
\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}

\fancypagestyle{plain}{%
    \fancyhead[L]{\small \authorOneInit}
    \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

\newglossaryentry{OS}{
    name = Operating System,
    description = {
        TODO
    },
}

\newglossaryentry{FOSS}{
    name = Free and Open-Source Software,
    description = {
        TODO
    },
}

\newglossaryentry{Linux}{
    name = Linux,
    description = {
        is a generic term referring to the family of Unix-like
        computer operating systems that use the Linux kernel
    },
    plural=Linuces
}
\newglossaryentry{computer}{
    name = Computer,
    description = {
        is a programmable machine that receives input,
        stores and manipulates data, and provides
        output in a useful format
    }
}
\newglossaryentry{apc}{
    name=Application Program Container,
    description={
        The broad term for the technology used to build, package, distribute and run an application program in isolation from the underlying and co-existing systems, wherein the level or technique of isolation can be different depending on the \gls{apcr}.
    }
}
\newglossaryentry{apci}{
    name=Application Program Container Image,
    description={
        An archive file that contains all of the necessary binaries that are needed to execute an application and a manifest file that that contains metadata about the application. Alternatively to containing all the required binary files, the manifest file can declare dependencies to other application container images, which must then be available at runtime to execute the contained application.
    }
}

\newglossaryentry{apcr}{
    name=Application Program Container Runtime,
    description={
        An application program (suite) that understands how to run the software inside an \gls{apci}.
    }
}

\newglossaryentry{LXC}{
    name=LXC,
    description={
        TODO
    }
}

\newglossaryentry{Docker}{
    name=Docker,
    description={
        A very popular \gls{apc} platform and application suite, providing functionality to build and deploy Docker specific \glspl{apci}.
    }
}

\overfullrule=2cm

\begin{document}

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

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

\pagenumbering{arabic}
	\pagestyle{fancy}
	%TODO \include{acknowledgments}

	\tableofcontents

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

    \part{Research}
    \include{parts/research/research}

    \part{Development}
    \part{Conclusion}

	\newpage
	%TODO \listofmyequations
	\listoftables
	%TODO \lstlistoflistings
	\listoffigures	
	%TODO \printbibliography

\end{document}
