Dear readers of this list, I am using LyX 1.5.5 on Ubuntu Linux 8.04 (Hardy) to write down some chemistry. I found the following hint in the LyX Wiki on using the LaTeX package mhchem in LyX math mode in order to preview the formulas on screen: http://wiki.lyx.org/LyX/LyXForX (see the point Chemistry - Typesetting formulae) However, I am unable to reproduce the example mhchem.lyx given on that internet site: When I type Ctrl-m Ctrl-m in order to get into text in math mode, I end up in an mbox, and as soon as I enter a space after H+ to write something like this into that mbox: \ce{H+ + OH- <=>> H2O}, the cursor jumps out of the box. So I can only type single compounds, but no reactions. If I type Ctrl-m to enter math mode and then press Ctrl-l to enter ERT \text{\ce{H+ + OH- <=>> H2O}} the cursor also jumps out of the text-box as soon as I enter a space after H+. Again, as a result, only single compounds are possible with preview. The LaTeX amsmath-package is available and checked in LyX document settings. It is possible to enter pure ERT like $\text{\ce{H+ + OH- <=>> H2O}}$ and get it typeset by LyX/LaTeX, but then I have no preview.
So my question: How do I enter something like \text{\ce{H+ + OH- <=>> H2O}} in math mode? Thanks for helpful hints Yours sincerely Tobias Hilbricht