I've a user-defined symbol like this:
\newcommand{\myexclam}{\mathrel{\stackinset{c}{}{t}{}{\rotatebox{-45}{\scalebox{.5}{$/$}}}{$!$}}}
This symbol should be used in one of my glossary's entries as below (gloss.tex
):
\newglossaryentry{mykey}{name={\ensuremath{\delta_{\text{act}}(a,\tau)\myexclam}}, description={Activity automaton}}
and here is main.tex
:
\documentclass[doublespaced,12pt]{article}
\usepackage{amsmath}
\usepackage{graphicx}
\usepackage[english]{babel}
\usepackage[symbols]{glossaries}
\usepackage{stackengine}
\usepackage{hyperref}
\newcommand{\myexclam}{\mathrel{\stackinset{c}{}{t}{}{\rotatebox{-45}{\scalebox{.5}{$/$}}}{$!$}}}
\makenoidxglossaries
\loadglsentries{gloss}
\begin{document}
Here is my formula \gls{mykey}
\printnoidxglossary[sort=standard,title={List of Symbols}]
\end{document}
But the compilation throws an undefined control sequence
corresponding to \myexclam
.
How can I properly use this command in my glossary?
\myexclam
?\myexclam
directly, i.e. withoutglossaries
at all, so there error is inside\myexclam
, not with\gls
etc.\stackinset
from hisstackengine
package