% =====================================================================
% this file contains calls the commands which auto generate tables of
% figures, contents, tables, etc.

% table of contents
\cleardoublepage
\addcontentsline{toc}{section}{Inhaltsverzeichnis}
\tableofcontents
\thispagestyle{fancy} % use custom fancy header and footer
\newpage

% figures
\cleardoublepage
\addcontentsline{toc}{section}{\listfigurename}
\listoffigures
\thispagestyle{fancy} % use custom fancy header and footer
\newpage

% tables
\cleardoublepage
\addcontentsline{toc}{section}{\listtablename}
\listoftables
\thispagestyle{fancy} % use custom fancy header and footer
\newpage

% code listings
% define custom german title for code lisitng
\def\listlistingname{Quelltextverzeichnis}
% add list of contents entry for code listing
\renewcommand\listoflistingscaption{\listlistingname}
\addcontentsline{toc}{section}{\listlistingname}
% print used listings
\listoflistings
\newpage

% nomenclature
\printnomenclature
\newpage

% define custom german title for glossary lisitng
\addcontentsline{toc}{section}{Glossar} % add table of contents entry
\section*{Glossar} % add unumbered title
\renewcommand{\glossarysection}[2][]{} % remove default title for section
\printglossaries
\newpage

%acronyms
% will be sorted automatically by alpabetic order
\cleardoublepage
\def\listacronymname{Abkürzungsverzeichnis}
\addcontentsline{toc}{section}{\listacronymname}
\printacronyms
\newpage