Consider the following example, which compiles just fine:
Code: Select all
\documentclass{article}
\usepackage[version=3]{mhchem}
\begin{document}
\begin{equation}
\ce{CH3\sbond (CH2)_{n}\sbond COOH}
\end{equation}
\end{document}
Code: Select all
\ce{CH3\sbond (CH2)_{$n$}\sbond COOH}
Code: Select all
! Missing } inserted.
<inserted text>
}
l.7 \ce{CH3\sbond (CH2)_{$n$}\sbond COOH}
Can someone tell me how to get the n in mathmode? (Here is the mhchem manual.)
Furthermore, the space between `)' and 'n' seems (a least to me) to be too big. How do I correct this?
Thank you in advance!