When I try to use the \left(
and \right)
commands in a chemistry equation, using mhchem
, I get multiple errors. It is also not possible to use \bigl(
or similar.
For example, the following:
\documentclass{article}
\usepackage{mhchem}
\begin{document}
\[\ce{Zn/Zn^{2+} \left(c = 1\frac{mol}{l}\right) // Pb^{2+} \left(c = 1\frac{mol}{l}\right)/Pb}\]
\end{document}
Gives these errors:
- line 4: Missing delimiter (. inserted). ...Pb^{2+} \left(c = 1\frac{mol}{l}\right)/Pb}
- line 4: Missing \right. inserted. ...Pb^{2+} \left(c = 1\frac{mol}{l}\right)/Pb}
- line 4: Missing \endgroup inserted. ...Pb^{2+} \left(c = 1\frac{mol}{l}\right)/Pb}
- line 4: Missing \endgroup inserted. ...Pb^{2+} \left(c = 1\frac{mol}{l}\right)/Pb}
- line 4: Missing delimiter (. inserted). ...Pb^{2+} \left(c = 1\frac{mol}{l}\right)/Pb}
- line 4: Extra \right. ...Pb^{2+} \left(c = 1\frac{mol}{l}\right)/Pb}
- line 4: Missing delimiter (. inserted). ...Pb^{2+} \left(c = 1\frac{mol}{l}\right)/Pb}
- line 4: Missing \right. inserted. ...Pb^{2+} \left(c = 1\frac{mol}{l}\right)/Pb}
- line 4: Missing $ inserted. ...Pb^{2+} \left(c = 1\frac{mol}{l}\right)/Pb}
- line 4: Display math should end with $$. ...Pb^{2+} \left(c = 1\frac{mol}{l}\right)/Pb}
- line 4: Missing delimiter (. inserted). ...Pb^{2+} \left(c = 1\frac{mol}{l}\right)/Pb}
- line 4: Extra \right. ...Pb^{2+} \left(c = 1\frac{mol}{l}\right)/Pb}
- line 4: Extra \endgroup. ...Pb^{2+} \left(c = 1\frac{mol}{l}\right)/Pb}
- line 4: Bad math environment delimiter. ...^{2+} \left(c = 1\frac{mol}{l}\right)/Pb}]
- line 4: \begin{document} ended by \end{equation*}. ...^{2+} \left(c = 1\frac{mol}{l}\right)/Pb}]
- line 4: Missing $ inserted. ...^{2+} \left(c = 1\frac{mol}{l}\right)/Pb}]
- line 4: Display math should end with $$. ...^{2+} \left(c = 1\frac{mol}{l}\right)/Pb}]
- line 4: Extra \endgroup. ...^{2+} \left(c = 1\frac{mol}{l}\right)/Pb}]
If I were to write the same code without a mhchem
equation, I would get no error.
Is there any workaround or another way to use parentheses that automatically scale in mhchem
?
\left( … \right)
for such a content as 1!\ce{1/2 O2}
or\ce{(1/2) O2}
should be sufficient for that.