\documentclass[twoside,10pt]{book}

\input{preamble}

% Just for the blind text, can go when it's finished
\usepackage{lipsum}

% Just for the todonotes, can go when it's finished
\usepackage{todonotes}
\setuptodonotes{
	backgroundcolor=white,
	linecolor=black,
	size=scriptsize,
	inline,
}

% Document info
\title{Some title}
\author{Some author}

\date{\formatdate{1}{6}{2023}}

\begin{document}
\frontmatter%
%\addtitlethumb{Frontmatter}{}{white}{gray}{pagesLTS.0}

%Titlepage
\input{titlepage}
\newpage%

% Epigraph/motto
\input{motto}

% Table of contents
\tableofcontents
\newpage%

% Dedication
\input{dedication}

\listoftodos%

% Reset glossary and thus the acronyms
\glsresetall{}

% The actual document
\mainmatter%
\addthumb{Chapters}{\arabic{chapter}}{white}{gray}

\chapter{Introduction}%
\label{chp:introduction}
\input{introduction}

\part{\glst{DSL}}%
\label{prt:dsl}
\input{domain_specific_languages}

\part{\glst{TOP}}%
\label{prt:top}
\input{task_oriented_programming}

\part{\glst{IOT}}%
\label{prt:iot}
\input{internet_of_things}

% Start appendix
\appendix%
\label{chp:appendix}
\addthumb{Appendices}{\Alph{chapter}}{white}{gray}

\chapter{An Appendix}%
\label{chp:an_appendix}
\input{an_appendix}

\backmatter%
\stopthumb% chktex 9
\addtitlethumb{Backmatter}{}{white}{gray}{pagesLTS.0}

% Bibliography
\phantomsection{}%
\label{chp:bibliography}
\addcontentsline{toc}{chapter}{Bibliography}
\bibliographystyle{plain}
\bibliography{thesis}

% Abstract
\chapter{Summary}%
\label{chp:summary}
\begin{center}
	\noindent\input{summary}
\end{center}

% Samenvatting
\chapter{Samenvatting}%
\label{chp:samenvatting}
\begin{center}
	\noindent\input{samenvatting}
\end{center}

% Acknowledgements
\chapter{Acknowledgements}%
\label{chp:acknowledgements}
\begin{center}
	\noindent\input{acknowledgements}
\end{center}

\chapter{Research Data Management}%
\label{chp:research_data_management}
\input{research_data_management}

% Curriculum Vitae
\chapter{Curriculum Vit\ae}%
\label{chp:curriculum_vitae}
\input{curriculum_vitae}

% Glossary
\addcontentsline{toc}{chapter}{Glossary}%
\label{chp:glossaries}
\printglossaries%

% Lists of
\cleardoublepage{}
\phantomsection{}%
\label{chp:listsof...}
\addcontentsline{toc}{chapter}{Lists of \ldots}
\begingroup
\let\clearpage\relax
\let\cleardoublepage\relax
\listoffigures%
\listoftables%
\listofalgorithms%
\lstlistoflistings%
\endgroup

% Index
\addcontentsline{toc}{chapter}{Index}%
\label{chp:index}
\printindex

\end{document} % chktex 10
