%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Präambel                                                                  %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%Hier sind Parameter einzustellen (Pakete werden geladen und durch [Optionen] 
%und {Argumente} bestimmt 
\documentclass[%
  paper=A4,%
  a4paper,%
  BCOR=8mm,%
  DIV=current,%
  twoside,%
  12pt,%
  headinclude=true,%
  headlines=1.8,%
  footinclude=false,version=first,%
  bibliography=totoc,%
  bibtotoc]{scrbook}


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Konfiguration Kodierung / Schriften                                     %%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%Kodierung des Tex-Dokumentes
\usepackage[T1]{fontenc}
%\usepackage[latin1]{inputenc}
\usepackage[utf8x]{inputenc}


%erlaubt die deutschsprachigen Zeichen
\usepackage[ngerman,english]{babel}
%\usepackage{marvosym}

%Mathematische und andere Symbole
\usepackage{amsmath,mathrsfs,amssymb}
\usepackage[scaled=.92]{helvet}
\usepackage{courier}

% I added this, REFIK
\usepackage{color}
\definecolor{light-gray}{gray}{0.95}

%Lädt Symbolschriften
%\usepackage{pifont}

%\usepackage{amsfonts}

% Für Listings eignet sich auch die (monospace) Font inconsolata
% siehe auch: http://levien.com/type/myfonts/inconsolata.html
% bzw. http://ctan.org/pkg/inconsolata
%\usepackage{inconsolata}


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Erweiterungen für Bibtex, Beweise, Jura, Listings, ..                   %%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%\usepackage[intlimits]{empheq}
\usepackage{theorem}
%\usepackage{mathpazo}
%\usepackage{mathptmx}

%ermöglicht verschiedene Stile des Literaturverzeichnises
%\usepackage{jurabib}
%\usepackage{plain}
%weitere Stile auf der 
\usepackage[sectionbib,square]{natbib}

%\usepackage{a4wide}

% programm code
\usepackage{listings} 
\lstset{basicstyle=\small\ttfamily, stringstyle=\ttfamily,
backgroundcolor=\color{lightgray}, numbers=left, numberstyle=\small,
stepnumber=1, numbersep=5pt, numbers = none}

% Listen
\usepackage{eqlist}

% Index
\usepackage{makeidx}


% Todonotes: Paket zum schreiben von Notizen zu konkreten Textstellen
% siehe: http://mirror.ctan.org/macros/latex/contrib/todonotes/todonotes.pdf
\usepackage{todonotes}
% Für eine finale Version lassen sich die Notes wie folgt deaktivieren:
%\usepackage[disable=true]{todonotes}



%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Buntes (Grafiken, Links, Farben)                                        %%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%erlaubt Graphiken einzubinden
\usepackage{graphicx}
\usepackage{xcolor}

%erlaubt Referenzen im Inhaltsverzeichnis
\usepackage[
  pdftex,
  pdfpagelabels,
  plainpages=false,
  colorlinks,
  urlcolor=gray,
  linkcolor=black,
  citecolor=black,
  pdfauthor={Max Mustermann},
%  pdftitle={GZ:if expand("%") == ""|browse confirm w|else|confirm w|endif}
]{hyperref}

\usepackage{tikz}
\usetikzlibrary{arrows}
\usetikzlibrary{calc}

% Floatumgebungen
\usepackage{wrapfig}
\usepackage{float}
 
\newfloat{mybox}{thp}{lop}[chapter]
\floatname{mybox}{Infobox}


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Abstände, Schriften, ..                                                 %%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%Zeilenabstand
% \linespread{1}

% Kopf- und Fusszeilen
\usepackage{scrpage2}

%Setzt den Abstand zwischen den Absätzen auf "groß"
\setlength{\parskip}\bigskipamount

% thumbindex, header/footer
\input{layout-extras}


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Anfang des Textkörpers                                                    %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\begin{document}
\pagenumbering{roman}

%%% Titel %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\include{titel}
\pagenumbering{Roman}

%%% .. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\include{erklaerung}
\tableofcontents
\cleardoublepage
\pagenumbering{arabic}

\renewcommand*{\dictumwidth}{.45\textwidth}

\newcommand{\miniheading}[1]{\noindent\textsf{\textbf{#1}}\vspace{2mm}\nopagebreak[4]\\}
\newcommand{\otodo}[1]{\todo[color=green!40]{#1}}

%%% Hauptteil %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\include{kapitel_x}

%%% Anhang %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\appendix
\renewcommand*{\thesection}{\Alph{section}}
\addtocounter{secnumdepth}{1}

\include{kapitel_A}

%% Literatur %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\bibliographystyle{dinat}
\bibliography{bib/literatur}

\nocite{*}

\end{document}
