\documentclass[a4paper, oneside, 10pt,chapterprefix=true,listof=totoc,parskip=half]{scrbook}

\usepackage{morewrites}
\usepackage{fontspec}
\usepackage{polyglossia}
\setmainlanguage[spelling=new,babelshorthands=true]{german}
\usepackage{geometry}
\usepackage{graphicx}
\usepackage[german,pdfa=true]{hyperref}
\usepackage[sortlocale=auto, style=authoryear, citestyle=authoryear, backend=biber, autopunct=true, dashed=false]{biblatex}
\usepackage[acronym,automake,toc]{glossaries}
\usepackage{float}
\usepackage{siunitx}
\usepackage{multirow}
\usepackage{setspace}
\usepackage{xcolor}
\usepackage{tabularx}
\usepackage{amsmath}
\usepackage{mVersion}
\usepackage{booktabs}
\usepackage{tikz}
\usepackage{listing}
\usepackage{minted}
\usepackage{csquotes}
\usepackage{framed}
\usepackage{marvosym}

\setmonofont{Fira Code Regular}[Scale=MatchLowercase]


\increaseBuild

%--- basic document configuration ---
\newcommand{\mytype}{Bachelorarbeit}
%\newcommand{\mytype}{Masterarbeit}

\newcommand{\mycourse}{Angewandte Informatik}
%\newcommand{\mycourse}{Internet Technologies and Information Systems}

\newcommand{\mytitle}{Ein Template für Abschlussarbeiten im Jahre 2021}
\newcommand{\myauthor}{Fleißiger Studierender}
\newcommand{\mydepartment}{Institut für Informatik}
\newcommand{\mysubmissiondate}{\today}
%\newcommand{\mysubmissiondate}{23. Februar 2021}
%\newcommand{\mythesisid}{201x-xx} %assigned by examination office
\newcommand{\myfirstsupervisor}{Prof. Supervisor}
\newcommand{\mysecondsupervisor}{Dr. Zweitprüfer}


%--- pdf/a format ----
% insert metadata about the document here
%\RequirePackage{filecontents}
\begin{filecontents*}{\jobname.xmpdata}
	\Title{\mytitle v\version}
	\Author{\myauthor}
	\Language{de-DE}
	\Subject{\mytitle}
	\Keywords{bachelor\sep computer\sep science}
\end{filecontents*}
\usepackage{colorprofiles}
\usepackage[a-1b, mathxmp]{pdfx}[2018/12/22]
\hypersetup{pdfstartview=}


\addbibresource{content/quellen.bib}


%
% This is based on the official thesis template of
% the Institute of Computer Science at the
% Georg-August-University of Göttingen
%
% originial author: kellner@cs.uni-goettingen.de
%
% If you find any sort of mistake please let me know
% so that it can be fixed in future releases.
%

%%--- include custom commands ---
\input{common/commands}
%
%%--- include general configuration ---
\input{common/config}

%--- list of acronyms ---
\makeglossaries
\loadglsentries{content/acronyms}
\clearpage

\begin{document}
	%lower case roman page numbers
	\pagenumbering{roman}
	\setcounter{page}{1}

	%--- cover page ---
	\input{content/coverpage}
	\clearpage

	%--- statement page ---
	\input{content/statement}
	\clearpage

	%--- abstract ---
	\clearpage\phantomsection\pdfbookmark{\abstractname}{abstract}
    \thispagestyle{empty}
	\input{content/abstract}
	\clearpage

	%reset acronyms after abstract
    \glsresetall{}

	%--- table of contents ---
	\clearpage\phantomsection\pdfbookmark{\contentsname}{toc}
	\tableofcontents
    \printglossary[type=\acronymtype]{}
    \printglossary[type=main]{}
	\clearpage

	%--- list of figures ---
    \listoffigures
    \clearpage

	%--- list of tables ---
    \listoftables
    \clearpage

    %--- list of listings ---
    %\renewcommand{\listoflistings}{%
        %\cleardoublepage
        %%\addcontentsline{toc}{chapter}{\listoflistingscaption}%
        %\listof{listing}{\listoflistingscaption}%
    %}
    %\listoflistings
    %\clearpage

	%arabic page numbers
	\pagenumbering{arabic}
	\setcounter{page}{1}

	%--- chaper 1..n ---
	\input{content/ch1_introduction}
	\clearpage

	\input{content/ch2_basics}
	\clearpage

	\input{content/ch3_analysis}
	\clearpage

	\input{content/ch4_design}
	\clearpage

	\input{content/ch5_implementation}
	\clearpage

	\input{content/ch6_conclusion}
	\clearpage

	% References
	\printbibliography{}
	\addcontentsline{toc}{chapter}{\bibname}

	%--- appendix ---
    \appendix
		\input{content/appendix_a}
		\clearpage
\end{document}

