%&thesis
\usepackage[nonumberlist]{glossaries} % Glossaries and acronyms
\usepackage[algochapter]{algorithm2e} % Pseudocode
+
+% Fix the algorithm font
\renewcommand\AlCapFnt{\normalfont}
-\makeglossaries%
+% Initialize the glossaries
+\makeglossaries%
\input{glossaries}
\begin{document}
%Titlepage
\input{titlepage}
-\glsaddall{}
-
%Abstract
-\addcontentsline{toc}{chapter}{Abstract}
\chapter*{\centering Abstract}
+\addcontentsline{toc}{chapter}{Abstract}
\begin{quotation}
\centering\noindent
\input{abstract}
\end{quotation}
-\addcontentsline{toc}{chapter}{Acknowledgements}
+%Acknowledgements
\chapter*{\centering Acknowledgements}
+\addcontentsline{toc}{chapter}{Acknowledgements}
\begin{quotation}
\centering\it\noindent
\input{acknowledgements}
\tableofcontents
\mainmatter{}
+
+%Reset glossary and thus the acronyms
\glsresetall{}
+
\chapter{Introduction}\label{chp:introduction}
\input{intro}
\chapter{Discussion \& Conclusion}\label{chp:conclusion}
\input{conclusion}
-\appendix\label{chp:appendix}
+\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}
+% Bibliography
\phantomsection{}
\addcontentsline{toc}{chapter}{Bibliography}
\bibliographystyle{ieeetr}
\bibliography{thesis}
+% Glossary
\addcontentsline{toc}{chapter}{Glossary}
\printglossaries%
+% Lists of
\cleardoublepage{}
\phantomsection{}
\addcontentsline{toc}{chapter}{Lists of \ldots}
\let\cleardoublepage\relax
\listoffigures%
\listoftables%
-\lstlistoflistings%
\listofalgorithms%
+\lstlistoflistings%
\endgroup
\end{document}