I have a symbol in my nomenclature that needs a negative thinspace command \! in the subscript. But whenever I try to do that in the nomenclature, it fails to compile. The error I get is:
Missing $ inserted.
<inserted text>
$
l.6 \subitem
[{$V_{\
This is a MWE where the problem occurs:
\documentclass{memoir}
\usepackage{nomencl}
\makenomenclature
\begin{document}
\nomenclature[$V_{\infty}$]{$V_{\!\infty}$}{Freestream velocity}
\printnomenclature[0.75in]
\end{document}
I compile this using pdflatex example.tex, then, makeindex example.nlo -s nomencl.ist -o example.nls, and then pdflatex example.tex again.
Any idea how to get it to compile with negative space?