I would like to put chemical formulas into subscripts/superscripts. For example, $M_\ce{H}$ should denote mass of H atom. However, this fails in recent version of mhchem (4.02)
\documentclass{report}
\usepackage{mhchem}
\begin{document}
\begin{equation}
M_\ce{H}
\end{equation}
\end{document}
Saying
! Missing { inserted.
<to be read again>
\tex_let:D
l.6 M_\ce{H}
? q
I know that it used to work in previous version of mhchem (3.07), but adding \usepackage[version=3]{mhchem} doesn't help. Is there some other way how to do it?
mhchem. If this ever worked I guess it was by chance http://tex.stackexchange.com/questions/239301/mhchem-macro-in-subscript – cgnieder Nov 02 '15 at 17:00