Trying to have a theorem with [name=Dominio e codominio dell'operatore $D^{\vct{q}}$,label=thm:oss:DomCodomDq] gives the following error:
The error is given by the following MWE:
\documentclass[a4paper]{report}
\usepackage{amsmath,amssymb,thmtools}
\newtheorem{oss}{Osservazione}
\begin{document}
\begin{oss}[name=Dominio e codominio dell'operatore $D^{\overrightarrow{q}}$,label=thm:oss:DomCodomDq]
\end{oss}
\end{document}
where \vct has been replaced by its primitive name \overrightarrow. The error is apparently related to \vct, as removing that removes the error. What does that mean and how do I solve it?
\vct, how can we tell something sensible? – egreg Dec 30 '13 at 11:43\overrightarrowtoo. – Thruston Dec 30 '13 at 11:47...$D^{\vec{q}}$...to avoid the error. – Thruston Dec 30 '13 at 11:48\protect\overrightarrowwhen used inname=fixes the issue. – egreg Dec 30 '13 at 11:49