I'm using glossaries-extra to define glossaries entries accepting parameters. To what I gathered from the glossaries documentation along with the fourth method of this post, I ended up with the following MWE.
\documentclass{book}
\usepackage[hidelinks]{hyperref}
\usepackage[debug=all, automake]{glossaries-extra}
\newglossary[slg]{symbolslist}{syi}{syg}{Notations}
\makeglossaries
\newcommand{\orthogonal}[1]{\ensuremath{\mathcal{O}_{#1}}}
\newglossaryentry{orthogonal}{%
user1={orthogonal},%
name=\ensuremath{\orthogonal{d}},%
description={The orthogonal group in dimension \(d\)},
type=symbolslist
}
\begin{document}
Here's \gls{orthogonal} and \glsxtrfmt{orthogonal}{5} and \glslink{orthogonal}{\orthogonal{7}}.
\printglossaries
\end{document}
However, this results in a weird dot appearing before the printing of the \gls and \glslink commands. Why is that the case, and how could I remove it?