% Add glossaries functionality

\newcommand{\setupGlossary}{
	\RequirePackage[nonumberlist, toc]{glossaries}
	\RequirePackage[nottoc, numbib]{tocbibind}
	\makenoidxglossaries
}

\newcommand{\highlightglossaryref}[1]{\textbf{#1}}
\newcommand{\setGlossaryMarkup}{
    \let\glsraw\gls
    \let\Glsraw\Gls
    \let\acrshortraw\acrshort
	\expandafter\renewcommand{\gls}[1]{\highlightglossaryref{\glsraw{##1}}}
	\expandafter\renewcommand{\Gls}[1]{\highlightglossaryref{\Glsraw{##1}}}
	\expandafter\renewcommand{\acrshort}[1]{\highlightglossaryref{\acrshortraw{##1}}}
}

\newcommand{\printGlossary}{
	\glsaddall
	\printnoidxglossaries
}
