\documentclass[12pt]{book}

\input{header}

\setcounter{maxexercise}{0}  % show listings up to exercise maxexercise

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{document} 

\hypersetup{pageanchor=false}
\maketitle
\hypersetup{pageanchor=true}

\frontmatter

\tableofcontents
\listoffigures
\lstlistoflistings
\listofexercisefs
\listofiboxfs


\mainmatter

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\part{Grundlagen des Programmierens}

\graphicspath{{programming/lecture/}{programming/images/}}
\lstset{inputpath=programming/code}
\include{programming/lecture/programming}

\graphicspath{{debugging/lecture/}{debugging/lecture/figures/}}
\lstset{inputpath=debugging/code}
\selectlanguage{english}
\include{programming/lecture/debugging}

\selectlanguage{ngerman}
\graphicspath{{plotting/lecture/}{plotting/lecture/images/}}
\lstset{inputpath=plotting/code/}
\include{plotting/lecture/plotting}


\graphicspath{{programmingstyle/lecture/}{programmingstyle/lecture/figures/}}
\lstset{inputpath=programmingstyle/code/}
\include{programmingstyle/lecture/programmingstyle}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\part{Grundlagen der Datenanalyse}

\graphicspath{{statistics/lecture/}{statistics/lecture/figures/}}
\lstset{inputpath=statistics/code}
\include{statistics/lecture/statistics}

\graphicspath{{bootstrap/lecture/}{bootstrap/lecture/figures/}}
\lstset{inputpath=bootstrap/code}
\include{bootstrap/lecture/bootstrap}

\graphicspath{{regression/lecture/}{regression/lecture/figures/}}
\lstset{inputpath=regression/code}
\include{regression/lecture/regression}

\graphicspath{{likelihood/lecture/}{likelihood/lecture/figures/}}
\lstset{inputpath=likelihood/code}
\include{likelihood/lecture/likelihood}

\graphicspath{{pointprocesses/lecture/}{pointprocesses/lecture/figures/}}
\lstset{inputpath=pointprocesses/code/}
\renewcommand{\texinputpath}{pointprocesses/lecture/}
\include{pointprocesses/lecture/pointprocesses}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\part{Appendix: }

\graphicspath{{designpattern/lecture/}{designpattern/lecture/figures/}}
\lstset{inputpath=designpattern/code}
\include{designpattern/lecture/designpattern}

%\chapter{Cheat-Sheet}

\backmatter

%%%% indices: %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\printindex[term]

\printindex[enterm]

%\setindexprenote{Some explanations.}
%\printindex[pcode]
\printindex[mcode]

\end{document}
