% ------------------------------------------------------------------------------
% Template for thesis
% ------------------------------------------------------------------------------

% Document Header --------------------------------------------------------------
%   Template extending koma-script.
% ------------------------------------------------------------------------------
\documentclass[
    11pt, % font size
    DIV=10,
    ngerman, % for german language
    a4paper, % paper format
    oneside, % onepage document
    titlepage, % use a cover page
    parskip=half, % padding between paragraphs
    headings=normal, % decrease size of headlines
    listof=totoc, % list directories in table of contents
    bibliography=totoc, % list bibliography in table of contents
    index=totoc, % list index in table of contents
    captions=tableheading, % location of table captions below table
    final % status of document (draft / final)
]{scrreprt}


% Meta informations ------------------------------------------------------------
%   Static informations like author, institute etc are defined in meta.tex
% ------------------------------------------------------------------------------
\input{meta}

% Package dependencies ---------------------------------------------------------
%   LaTeX-dependencies are defined in packages.tex
% ------------------------------------------------------------------------------
\input{packages}

% Create index and glossary ----------------------------------------------------
\makeindex
\makeglossaries

\input{glossar}

% Headlines, margins. ----------------------------------------------------------
\input{pagestyle}

% My custom hyphenations
\include{hyphenation}

% My custom LaTeX-commands
\include{commands}

% Main document ----------------------------------------------------------------
%   The actual document. The different parts are included and themselves defined in tex documents in the content directory.
% ------------------------------------------------------------------------------
\begin{document}


% Cover and abstract without page numbers
\ofoot{}
\include{cover}
\include{content/abstract}
\ofoot{\pagemark}

% Paging -----------------------------------------------------------------------
%   Main sections with capital roman numbering
% ------------------------------------------------------------------------------
\pagenumbering{Roman}

% Table of content depth and numbering of sections to a specific depth
\setcounter{secnumdepth}{2}
\setcounter{tocdepth}{1}

\tableofcontents

% Glossary ---------------------------------------------------------------------
% Correct headline in header
\clearpage\markboth{\glossar}{\glossar} 
\printglossaries
\label{sec:glossar}


\listoffigures
\listoftables

%\lstlistoflistings

% arabic paging in main content ------------------------------------------------
\clearpage
\pagenumbering{arabic}

% Main content
% include each chapter here
%
\input{content/Introduction/Introduction}
\input{content/Abuse_of_Domain_Names/Abuse_of_Domain_Names}
\input{content/Technical_Background/Technical_Background}
\input{content/Evaluation_of_existing_Systems/Evaluation_of_existing_Systems}
\input{content/Development_of_DoresA/Development_of_DoresA}
\input{content/Conclusion/Conclusion}


\clearpage

% Appendix ---------------------------------------------------------------------
%   Appendix is included like main content in appendix.tex
% ------------------------------------------------------------------------------
%\begin{appendix}
%    \pagenumbering{roman}
%    % Adjust margin in table listings
%    \setdefaultleftmargin{1em}{}{}{}{}{}
%    \input{appendix}
%\end{appendix}

% Bibliography -----------------------------------------------------------------
%   Bibliography is created using bibliography.bib
% ------------------------------------------------------------------------------
\bibliography{bibliography} % Call: bibtex main
\bibliographystyle{natdin} % DIN style of bibliography

\include{agreement}


% Index ------------------------------------------------------------------------
%   Uncomment if index should be printed
% ------------------------------------------------------------------------------
%\printindex

\end{document}
