%loads the class that provides the titlepage and some general packages.
\documentclass{PHKA_inf} 
%add the additional packages and macros that you want to use
\input{packages_macros}
\usepackage[round]{natbib} 
% important update for glossaries, before document 
\loadglsentries{C) Back Matter/acronyms.tex}
\loadglsentries{C) Back Matter/glossary.tex} 
\makeglossaries %https://www.overleaf.com/learn/latex/glossaries
%shows fixme notes
%\fxsetup{status=draft} % comment/delete this line if you want to your final output
\usepackage[ngerman]{babel} %if changed to \usepackage[ngerman]{babel} "Table of contents" changes to "Inhaltsverzeichnis", "abstract" becomes "Zusammenfassung" and "references" is translated to "Literatur".
%remove all the things you don't need and add all the things you need. you can also change the order of the elements at your will.
\begin{document}
    %Start with front matter
    \input{A) Front Matter/titlepage} %Creates the titlepage
    
	\frontmatter{}
	\input{A) Front Matter/acknowledgements} %adds the aknowledgements
	\cleardoublepage{}
	\input{A) Front Matter/abstracts} % adds the abstract
	\cleardoublepage{}
	
    \microtypesetup{protrusion=false}
    \tableofcontents{}
    % Use an optional list of tables / figures / algorithms / listings(code).
    \listoftables 
    \listoffigures
    \cleardoublepage{}
    \listofalgorithms
    \addcontentsline{toc}{chapter}{Liste von Algorithmen} 
    \cleardoublepage{}
    \lstlistoflistings
    \cleardoublepage{}
    \microtypesetup{protrusion=true}
    
	
	
	\mainmatter{}
	%add your chapters here
	%Comment Chapters with "%" to exclude them
	
	%Beispielkapitel standard
    \input{B) Chapters/tmp_kapitel}
    
    %Beispielkapitel Code, Algorithms, Images, Tables
    \input{B) Chapters/tmp_code}
    \input{B) Chapters/tmp_algorithmen}
    \input{B) Chapters/tmp_tablesimages}
    
    %Abkürzungen Anhang
    \input{B) Chapters/abkürzungen_anhang}    
	
	
	%Referenzen
    \bibliographystyle{apalike}
	\bibliography{bibliography}
	
	\printglossary[type=\acronymtype]
    \printglossary
	
    \cleardoublepage{}
	\pagebreak
	
	%add your end matter here
	\appendix{}
	\input{C) Back Matter/appendix}
	
	
	
\end{document}