\documentclass[12pt,a4paper,twoside,openright,chapterprefix=true,captions=tableheading,numbers=noenddot,headsepline,footsepline,headings=optiontohead,fleqn,headheight=27pt,bibliography=toc]{scrbook}
\input{tex/config.tex}
\hyphenation{micro-con-troll-er}
\hyphenpenalty=1000
\exhyphenpenalty=1000
\tolerance=500
\setcounter{secnumdepth}{2}
\setcounter{tocdepth}{2}
\makeindex
\makeglossaries
\begin{document}
\pagenumbering{roman}
\frontmatter
\include{content/0_pre/1_title.tex}
\include{content/0_pre/epigraph.tex}
\include{content/0_pre/2_affidavit.tex}
\include{content/0_pre/3_acknowledge.tex}
\include{content/0_pre/4_abstract.tex}
\include{content/0_pre/5_kurzfassung.tex}
\tableofcontents
\selectlanguage{english}
\mainmatter
\pagenumbering{arabic}
\setcounter{page}{1}
\include{content/1_main/1_introduction.tex}
\include{content/1_main/2_background.tex}
\include{content/1_main/3_relatedwork.tex}
\include{content/1_main/4_maintext1.tex}
\include{content/1_main/5_maintext2.tex}
\include{content/1_main/6_conclusion.tex}
% only if needed (e.g., in a dissertation)
\include{content/2_pubs/publications.tex}
\bibliographystyle{ieeetr}
\bibliography{bib/library}
\listoffigures
\addcontentsline{toc}{chapter}{List of Figures}
\listoftables
\addcontentsline{toc}{chapter}{List of Tables}
\lstlistoflistings
\addcontentsline{toc}{chapter}{List of Listings}
\input{content/3_post/1_abbr}
\input{content/3_post/outro.tex}
\balance
\end{document}