\documentclass[fontsize=12pt,draft=false]{scrartcl}

%%% PACKAGES %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage[ngerman]{babel}
\usepackage[utf8]{inputenc}
\usepackage{amsmath, amssymb}
\usepackage[inline]{enumitem}
\usepackage[hidelinks]{hyperref}
\usepackage{tabularx}                             %used for better table formatting see: https://en.wikibooks.org/wiki/LaTeX/Tables#The_tabularx_package
\usepackage[table,dvipsnames]{xcolor}
\usepackage{graphicx}                             %pictures, photos
\usepackage{subfiles}                             %split doc into multiple .tex subfiles
\usepackage{float}                                %used to allow the [H] option for tables, etc.
\usepackage{verbatim}                             %makes multiline comments possible via \begin{comment}\end{comment}
\usepackage{ifthen, tikz, xstring, calc, pgfopts} %required for tikz-uml
\usepackage{../tikz-uml}                          %make uml diagrams
\usepackage{listings}
\usepackage{dirtree}
\usepackage{geometry}
\usepackage{pdflscape}
%\geometry{scale = 0.5} %for class diagram???


%%% PATHS %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\input{../glossary.tex}
\graphicspath{ {./img/} }


%%% BIBTEX %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage[ backend=bibtex,
             sorting=nty,
             maxbibnames=50,
             maxcitenames=8,
             style=alphabetic]{biblatex}
\bibliography{../literature.bib}
\DeclareFieldFormat{labelalpha}{\thefield{entrykey}}
\DeclareFieldFormat{extraalpha}{}


%%% SETTINGS %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage{parskip} %makes end of paragraphs use an empty line
\setlength\parindent{0pt} %no indentation

\def\arraystretch{1.3} %extra padding in tables

\definecolor{light-gray}{gray}{0.85}

\setcounter{tocdepth}{2}	%exclude subsubsections from table of contents

\lstset{ %
	%backgroundcolor=\color{},         % choose the background color; you must add \usepackage{color} or \usepackage{xcolor}; should come as last argument
	basicstyle=\footnotesize\ttfamily, % the size of the fonts that are used for the code
	breakatwhitespace=false,           % sets if automatic breaks should only happen at whitespace
	breaklines=true,                   % sets automatic line breaking
	captionpos=b,                      % sets the caption-position to bottom
	%commentstyle=\color{mygreen},     % comment style
	%deletekeywords={...},             % if you want to delete keywords from the given language
	escapeinside={\%*}{*)},            % if you want to add LaTeX within your code
	extendedchars=true,                % lets you use non-ASCII characters; for 8-bits encodings only, does not work with UTF-8
	%frame=single,                     % adds a frame around the code
	keepspaces=true,                   % keeps spaces in text, useful for keeping indentation of code (possibly needs columns=flexible)
	keywordstyle=\color{MidnightBlue}, % keyword style
	language=Python,                   % the language of the code
	morekeywords={echo, set, type},    % if you want to add more keywords to the set
	numbers=left,                      % where to put the line-numbers; possible values are (none, left, right)
	numbersep=5pt,                     % how far the line-numbers are from the code
	numberstyle=\tiny,%\color{mygray}, % the style that is used for the line-numbers
	%rulecolor=\color{black},          % if not set, the frame-color may be changed on line-breaks within not-black text (e.g. comments (green here))
	showspaces=false,                  % show spaces everywhere adding particular underscores; it overrides 'showstringspaces'
	showstringspaces=false,            % underline spaces within strings only
	showtabs=false,                    % show tabs within strings adding particular underscores
	stepnumber=1,                      % the step between two line-numbers. If it's 1, each line will be numbered
	stringstyle=\color{ForestGreen},   % string literal style
	tabsize=2,                         % sets default tabsize to 2 spaces
	title=\lstname                     % show the filename of files included with \lstinputlisting; also try caption instead of title
}

%%% COMMANDS %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newcommand{\tabHead}[1]{\parbox{0.14\textwidth}{\medskip\textbf{#1}\medskip}}
\newcommand{\tabBody}[1]{\parbox{0.81\textwidth}{\medskip        #1 \medskip}}
\newcommand{\changelocaltocdepth}[1]{%
  \addtocontents{toc}{\protect\setcounter{tocdepth}{#1}}%
  \setcounter{tocdepth}{#1}%
}
\def\CC{{C\nolinebreak[4]\hspace{-.05em}\raisebox{.4ex}{\tiny\textbf{++}}}} %write c++ properly, https://isocpp.org/wiki/faq/misc-environmental-issues#latex-macros


%%% META INFORMATION %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\title{Hochautomatisiertes Fahren}
\subtitle{Dokumentation}
\author{Gruppe A}


%%% DOCUMENT %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{document}
\begin{titlepage}
	\begin{flushright}
	\includegraphics[width=4cm]{husiegel_bw.eps}
	\end{flushright}\vspace{1cm}
	\begin{center}
	{\LARGE\bfseries Semesterprojekt\\ Hochautomatisiertes Fahren}\\[2ex]
	{\large\bfseries Dokumentation}\\[1.5ex]
	\vfill
	Gruppe A
	\vfill
	\vfill
	Humboldt-Universität zu Berlin \\
	Mathematisch-Naturwissenschaftliche Fakultät\\
	Institut für Informatik\\
	Betreuer: Prof. Holger Schlingloff, Prof. Verena Hafner\\
	Wintersemester 2017/2018\\
	\vfill
% Bottom of the page
	\noindent Berlin, den \today
	\end{center}
\end{titlepage}
\tableofcontents
\clearpage

% Struktur sollte mal bearbeitet werden
\subfile{sections/projektbeschreibung}
\clearpage
\subfile{sections/organisation}
\clearpage
\subfile{sections/ausbaustufen}
\clearpage
\subfile{sections/usecases}
\clearpage
\subfile{sections/kommunikation}
\clearpage
\subfile{sections/architektur}
\clearpage
\subfile{sections/modspez}
\clearpage
\subfile{sections/projekt}
\clearpage
\subfile{sections/test}
\clearpage
\subfile{sections/auswertung}
%\subfile{sections/fkt_anf(archiviert)}

\cleardoublepage

%Glossary
\glsaddall
\printglossaries

%Biblography
\phantomsection
\addcontentsline{toc}{section}{Bibliography}
\printbibliography

\end{document}