\documentclass{ESS-dissertation}
%% Environment for defining parameters below equations
\newenvironment{conditions}
{\par\vspace{\abovedisplayskip}\noindent\begin{tabular}{>{$}l<{$} @{${}={}$} l}}
{\end{tabular}\par\vspace{\belowdisplayskip}}
%% spacing before and after equations to the text
\setlength{\abovedisplayskip}{8pt}
\setlength{\belowdisplayskip}{8pt}
%% Set up the bibliography
% styles https://de.overleaf.com/learn/latex/Biblatex_citation_styles
% Bibliography package and citation style
% maxbibnames controls the number of author names displayed before "et al."
% maxcitenames controls it in the text
\usepackage[style=authoryear,
sorting=nyt,
labeldateparts=true,
uniquelist=minyear]{biblatex}
% General references used throughout the thesis
\addbibresource{references.bib}
% Highlight selected authors in bold in the bibliography.
%
% Add an author annotation to the corresponding .bib entry:
%
% author = {Cooper, Sheldon and Hofstadter, Leonard},
% author+an = {1=highlight},
%
% The number indicates which author should be highlighted.
% For example, 1 = first author, 2 = second author.
%
% This formatting applies to all bibliographies.
\DeclareNameFormat{author}{%
\ifitemannotation{highlight}
{\mkbibbold{\nameparts{#1}\usebibmacro{name:family-given}
{\namepartfamily}
{\namepartgiven}
{\namepartprefix}
{\namepartsuffix}}}
{\nameparts{#1}\usebibmacro{name:family-given}
{\namepartfamily}
{\namepartgiven}
{\namepartprefix}
{\namepartsuffix}}%
\usebibmacro{name:andothers}%
}
% for spacing between references in the bibliography
\setlength\bibitemsep{1.5\itemsep}
% for the commas between author and year
\DeclareDelimFormat{nameyeardelim}{\addcomma\space}
%% Additional packages and commands
% Figure and table caption placement
\captionsetup[table]{position=above} %control caption placement
% SI unit formatting
\sisetup{locale = DE,
output-decimal-marker={.}, % because in german is switched to {,}
separate-uncertainty=true,
multi-part-units=single,
range-units = single ,
list-units = single,
per-mode=reciprocal,
group-minimum-digits = 4,
% number-unit-product = \hspace{0.16667em plus 0.08334em},
allow-number-unit-breaks = false}
%% Define custom SI units
\DeclareSIUnit\equivalents{eq}
\DeclareSIUnit\water{kgw}
\DeclareSIUnit\year{yr}
\DeclareSIUnit\dollar{\$}
\DeclareSIUnit{\rpm}{rpm}
\DeclareSIUnit{\atm}{atm}
\DeclareSIUnit{\normal}{N}
\DeclareSIUnit{\vol}{vol}
\DeclareSIUnit{\bar}{bar}
\DeclareSIUnit{\ppm}{ppm}
\DeclareSIUnit{\USD}{USD}
\setlist{itemsep=-2pt} % Reducing white space in lists slightly
\renewcommand{\deg}{\si{\degree}\xspace} % Use \deg easily, everywhere
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% PERSONAL INFORMATION - PLEASE CUSTOMIZE
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\title{Title of Your Dissertation}
\subtitle{Dissertation} %leave it as it is
\author{Sheldon Cooper}
\date{YYYY}
\affiliation{University of Hamburg}
\definecolor{title}{HTML}{4884d6}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%% Begin of document %%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{document}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% FRONT MATTER
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Roman page numbering
\frontmatter
% title page
\include{frontmatter/_titlepage}
\input{frontmatter/versicherung.tex}
% English abstract and German summary (called Kurzfassung)
\input{frontmatter/summary}
\tableofcontents
% Include if needed
%\listoffigures
%\listoftables
\input{frontmatter/nomenclature}
% Headings for the author's publications
\defbibheading{publist}{%
\chapter*{List of Publications}%
\markboth{List of Publications}{List of Publications}%
\addcontentsline{toc}{chapter}{List of Publications}%
}
\defbibheading{inprep}{%
\chapter*{Manuscripts in Preparation}%
\markboth{Manuscripts in Preparation}{Manuscripts in Preparation}%
\addcontentsline{toc}{chapter}{Manuscripts in Preparation}%
}
% List of published papers
\begin{refsection}[my_own_publications.bib]
\nocite{*}
\AtNextBibliography{\setcounter{maxnames}{99}}
\printbibliography[heading=publist]
\end{refsection}
% List of manuscripts in preparation
\begin{refsection}[my_own_publications_in_preparation.bib]
\nocite{*}
\AtNextBibliography{\setcounter{maxnames}{99}}
\printbibliography[heading=inprep]
\end{refsection}
\input{content/author_contributions}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% MAIN CONTENT
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Switch to Arabic page numbering (1, 2, 3, ...).
% Each included file should contain its own \chapter{} command.
\mainmatter
% Introduction
\input{content/introduction/introduction_text}
% Research papers
% Add or remove paper chapters as needed.
\input{content/paper_1/paper_1_text}
\input{content/paper_2/paper_2_text}
\input{content/paper_3/paper_3_text}
% General discussion and synthesis
\input{content/synthesis/synthesis}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% APPENDIX
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% The \appendix command marks the beginning of the appendix section.
% All subsequent chapters created with \chapter{} will be labeled
% with letters (A, B, C, ...) instead of numbers (1, 2, 3, ...).
% Use \chapter{} for each appendix to ensure correct numbering
% and inclusion in the table of contents.
\appendix
\input{content/appendix/appendix}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% BACK MATTER
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Stop chapter numbering
\backmatter
% Acknowledgements
\input{content/acknowledgement}
%% Prevent urls running into margins in bibliography
\setcounter{biburlnumpenalty}{7000}
\setcounter{biburllcpenalty}{7000}
\setcounter{biburlucpenalty}{7000}
%% To display urls/links correctly in the reference section it is important to include them with url = {}
%% Add the bibliography
\printbibliography[heading=bibintoc,title=References]
\end{document}