I am using LyX to prepare an article. The document class is 'IOP article' and I am using the mhchem package to typeset chemical formulae in the paper. I include \usepackage[version=3]{mhchem} in the LaTeX preamble.
I am thrown 11 errors when I try to preview the document:
- LaTeX Error: Command \leftroot already defined.
- LaTeX Error: Command \uproot already defined.
- etc..
Suggestion/solutions much appreciated.
mhchembutamsmathwhich is loaded implicitly bymhchemand seems to be incompatible with theiopartclass. Do you need many chemical formulae and even reactions? – cgnieder Jan 16 at 21:31mhchem:\makeatletter\@namedef{ver@amsmath.sty}{}\makeatother– egreg Jan 16 at 21:46amstextbefore loadingmhchemas the latter relies on the macro\text(which is why it loadsamsmathin the first place, I guess) – cgnieder Jan 16 at 22:31