\documentclass[12pt]{book}

\input{header}

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

\selectlanguage{english}

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

\frontmatter

\clearpage
\tableofcontents
\clearpage
\listoffigures
\clearpage
\lstlistoflistings
\clearpage
\listofexercisefs
\clearpage
\listofiboxfs


\mainmatter

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\part{Programming basics}

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

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

\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}

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


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\part{Data analysis}

\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}

\setboolean{showexercisesolutions}{false}
\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}

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

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%\part{Tools}
% Latex
% markdown
% Makefile
% version control (git and github) only put source files into repository!
% distributed computing (ssh and grid engines)
% data handling (structure, data bases, storage (rsync), backup)
% data annotation, meta data

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

%\chapter{Cheat-Sheet}

\backmatter

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

\printindex[determ]    % for english text
% \printindex[enterm]    % for german text

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

\end{document}