\usepackage[nonumberlist,acronyms]{glossaries}
\makeglossaries%
-\newacronym{SDS}{SDS}{Shared Data Source}
-\newacronym{IoT}{IoT}{Internet of Things}
-\newacronym{TOP}{TOP}{Task Oriented Programming}
-\newglossaryentry{Clean}{%
- name=Clean,
- description={is a pure lazy functional programming language based on graph
- rewriting}
-}
-\newglossaryentry{iTasks}{
- name=iTasks,
- description={is a \acrshort{TOP} implementation written in the \gls{Clean}
- programming language}
-}
-
+\input{acronyms}
+\input{glossaries}
\begin{document}
\frontmatter{}
righttext={prof.~dr.~dr.h.c.~ir.~M.J.~Plasmeijer\\dr.~P.W.M.~Koopman}]
\listoftodos[Todo]
+\glsaddall{}
+
%Abstract
\chapter*{\centering Abstract}
+\begin{quotation}
+ \centering\noindent
+ \input{abstract}
+\end{quotation}
+
+\chapter*{\centering Acknowledgements}
\begin{quotation}
\centering\it\noindent
- \input{abstract.tex}
+ \input{acknowledgements}
\end{quotation}
%Table of contents
\tableofcontents
-%Glossaries
-\glsaddall{}
-\printglossaries%
-
\mainmatter{}
-\chapter{Introduction}
-\input{introduction.tex}
+\glsresetall{}
+\chapter{Introduction}\label{chp:introduction}
+\input{introduction}
+
+\chapter{\acrlong{TOP}}\label{chp:top}
+\input{methods.top}
-\chapter{Methods}
-\input{methods.tex}
+\chapter{\acrlongpl{EDSL}}\label{chp:dsl}
+\input{methods.dsl}
-\chapter{Results}
-\chapter{Conclusion \& Discussion}
+\chapter{mTask}\label{chp:mtask}
+\input{methods.mtask}
-\appendix
-\chapter{Communication protocol}
-\input{appendix-protocol.tex}
+\chapter{Architecture}\label{chp:arch}
+\input{results.arch}
+\chapter{mTask continued}\label{chp:mtaskcont}
+\input{results.mtask}
+
+\chapter{Conclusion \& Discussion}\label{chp:conclusion}
+\input{conclusion}
+
+\appendix\label{chp:appendix}
+
+\chapter{Communication protocol}\label{app:communication-protocol}
+\input{appendix-protocol}
+
+\chapter{Device client interface}\label{app:device-interface}
+\input{appendix-device-interface}
+
+\cleardoublepage{}
+\phantomsection{}
+\addcontentsline{toc}{chapter}{Bibliography}
\bibliographystyle{ieeetr}
\bibliography{thesis}
+
+\cleardoublepage{}
+\phantomsection{}
+\addcontentsline{toc}{chapter}{Lists of \ldots}
+\begingroup
+\let\clearpage\relax
+\listoffigures
+\listoftables
+\lstlistoflistings{}
+\endgroup
+
+\cleardoublepage{}
+\phantomsection{}
+\addcontentsline{toc}{chapter}{Glossaries \& Acronyms}
+\begingroup
+\let\clearpage\relax
+\let\cleardoublepage\relax
+\printglossaries%
+\endgroup
+
\end{document}