%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Definitions                                                             %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\gdef\version{1.0}  % do not forget to update this
\gdef\doctype{Technische Dokumentation}


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% This section defines the template.                                      %
% DO NOT CHANGE ANYTHING IN THE SECTION                                   %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% For correct typesetting you will need the following fonts:              %
% - Roboto                                                                %
% - Adobe Garamond Pro                                                    %
% - EB Garamond Regular SmallCaps                                         %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\documentclass[12pt, letterpaper]{report}
\usepackage[hmargin=1in,vmargin=1.5in]{geometry}
\usepackage[T1]{fontenc}
\usepackage[T1]{fontenc}
\usepackage[ngerman]{babel}
\usepackage{graphicx}
\usepackage{fontspec,xunicode}
\usepackage{sectsty}
\usepackage{tabu}
\usepackage{fancyhdr}
\usepackage{titlesec}
\usepackage{url}
\usepackage{lastpage}
\usepackage{float}
\usepackage[ngerman]{babel}
\usepackage[official]{eurosym}
\usepackage{listings}
\usepackage{rotating}


\usepackage[
	colorlinks,
	citecolor=black,
	filecolor=black,
	linkcolor=black,
	urlcolor=black,
	linktoc=all
]{hyperref}

\allsectionsfont{\fontspec{Roboto Condensed Light}}
\defaultfontfeatures{Mapping=tex-text,Scale=MatchLowercase}
\setmainfont{Adobe Garamond Pro}
\setmonofont{Source Code Pro}

\setlength{\topskip}{1em}
\setlength{\parskip}{1em}
\setlength{\parindent}{0em}

\usepackage{enumitem}\setlist{nolistsep}


\titleclass{\chapter}{straight}
\titleformat{\chapter}[hang]{\Huge\bfseries}{\fontspec{Roboto Condensed Light}\thechapter.}{10pt}{\fontspec{Roboto Condensed Light}\Huge\bfseries}

\titlespacing*{\chapter}{0pt}{1cm}{0pt}
\titlespacing*{\section}{0mm}{5mm}{0pt}

\renewcommand{\arraystretch}{2}

%\setlength{\voffset}{2cm}

% headers
\renewcommand{\headrulewidth}{0.4pt}
\renewcommand{\footrulewidth}{0.4pt}
\fancyhead{}
\fancyfoot{}
\pagestyle{fancy}
\lhead{Naschmarkt \em{\doctype}\\}
\rhead{\small{Markus Klein, Thomas Fellner, \\Matthias Schwebler, Philip Vonderlind}}

\lfoot{Version \version}
\rfoot{\thepage\ von \pageref{LastPage}}
\setlength{\headheight}{30pt}

\lstset{
	basicstyle=\ttfamily\small,
	keywordstyle=\bfseries\color[rgb]{0.496,0.000,0.332},
	commentstyle=\color[rgb]{0.246,0.496,0.371},
	stringstyle=\color[rgb]{0.164,0.000,0.996},
	tabsize=4,
	breaklines=true,
	numbers=left,
	numberstyle=\tiny\color{black},
	stepnumber=2,
	numbersep=8pt,
	numberstyle=\tiny,
	captionpos=b,
	xleftmargin=1cm,
	showspaces=false,
	showstringspaces=false,
	basewidth={0.53em,0.45em},
	frame=single,
	xleftmargin=1cm,
	basicstyle=\scriptsize,
}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Document Start                                                          %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\begin{document}
	\begin{titlepage}
		\begin{center}
			\vspace*{1cm}

			{\fontsize{25}{25}\fontspec{EB Garamond Regular SmallCaps} Naschmarkt\\}
            \vspace{0.3cm}
            {\fontsize{25}{25}\fontspec{EB Garamond Regular SmallCaps}{\large Technische Dokumentation}}

			\vspace{2.5cm}

			2016 - 4BHIT

			\vspace*{5mm}

			\small{Markus Klein, Thomas Fellner,\\Matthias Schwebler, Philip Vonderlind}

			\vspace*{2cm}

			Version \version

			\vfill

			\chapter*{Freigabe}
			\begin{center}
				\begin{tabu} to \textwidth { | @{\hspace{3mm}} l @{\hspace{3mm}} | @{\hspace{3mm}} l | @{\hspace{3mm}} l @{\hspace{3mm}} | X[l] | }
					\hline
					& Name & Datum & Unterschrift \\ \hline
					Erstellt: & M. Klein, T. Fellner & 31.5.2016 & \\ \hline
					Gepr\"uft: & M. Schwebler, P. Vonderlind & 31.5.2016 & \\ \hline
					Freigegeben: &  &  & \\
					\hline
				\end{tabu}
			\end{center}

		\end{center}
	\end{titlepage}


	\newpage
	\tableofcontents


	\newpage
	\chapter*{Einf\"uhrung}

    \chapter{Systemanforderungen}
    \input{sections/system_requirements.tex}

    \chapter{Installation}
    \input{sections/installation.tex}

    \chapter{Applikationsstruktur}
    \input{sections/application.tex}

    \clearpage
    \chapter{Datenbankstruktur}
    \input{sections/database.tex}

    \chapter{Migrationsscript}
    \input{sections/migrationscript.tex}

    \clearpage

    \begin{thebibliography}{500} % Include .bib (.bbl) references here
    \bibitem{laravel}
        Laravel, Web Application Framework, \url{https://laravel.com/}
    \bibitem{php}
        PHP, Hypertext Preprozessor, \url{http://php.net/}
    \bibitem{mysql}
        MySQL, Database management system, \url{https://www.mysql.com/}
    \bibitem{gulp}
        Gulp, Task runner, \url{http://gulpjs.com/}
    \bibitem{composer}
        Composer, Dependency Manager for PHP, \url{https://getcomposer.org/}
    \bibitem{npm}
        NPM, Node Package Manager, \url{https://npmjs.org/}
    \bibitem{virtualbox}
        Virtualbox, Vertualization Product, \url{https://www.virtualbox.org/}
    \bibitem{vagrant}
        Vagrant, Tool for building complete development environments, \url{https://www.vagrantup.com/}
    \end{thebibliography}
    \lstlistoflistings
    \listoffigures
\end{document}
