%&thesis
-\usepackage[nonumberlist,acronyms]{glossaries}
+\usepackage[nonumberlist]{glossaries} % Glossaries and acronyms
+\usepackage[]{algorithm2e} % Pseudocode
\makeglossaries%
-\input{acronyms}
\input{glossaries}
\begin{document}
\glsaddall{}
%Abstract
+\addcontentsline{toc}{chapter}{Abstract}
\chapter*{\centering Abstract}
\begin{quotation}
\centering\noindent
\input{abstract}
\end{quotation}
+\addcontentsline{toc}{chapter}{Acknowledgements}
\chapter*{\centering Acknowledgements}
\begin{quotation}
\centering\it\noindent
%Table of contents
\tableofcontents
+\addcontentsline{toc}{chapter}{Glossaries \& Acronyms}
+\printglossaries%
+
\mainmatter{}
\glsresetall{}
\chapter{Introduction}\label{chp:introduction}
\input{introduction}
-\chapter{\acrlong{TOP}}\label{chp:top}
+\chapter{Task Oriented Programming}\label{chp:top}
\input{methods.top}
-\chapter{\acrlongpl{EDSL}}\label{chp:dsl}
+\chapter{Embedded Domain Specific Language}\label{chp:dsl}
\input{methods.dsl}
\chapter{mTask}\label{chp:mtask}
\chapter{mTask continued}\label{chp:mtaskcont}
\input{results.mtask}
+\chapter{iTasks integration}\label{chp:itasksint}
+\input{results.itasks}
+
\chapter{Conclusion \& Discussion}\label{chp:conclusion}
\input{conclusion}
\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%
+\listoffigures%
+\listoftables%
+\lstlistoflistings%
+\listofalgorithms%
\endgroup
\end{document}