Your are right. mhchem is also available in math mode. I can confirm, that
there is no preview.
Regards
Am 09.08.2016, 18:57 Uhr, schrieb Bernt Lie
Thanks for comment. I’m still confused:
Ø This has nothing to do with the math mode.
It must have something to do with math mode!?!
· The feature is described in LyX’s Math Help document (section 20
of LyX’s detailed Math manual for LyX v. 2.2.x)
· As far as I can see, LyX’s Math Help document has *not* included
the statement you suggest in its Preamble. Instead, it has specified
“Load automatically” package “mhchem” >under “Math Options” in the
Document Settings.
· In the Math Help document, it is stated “After inserting \ce to
a formula a new blue box appears where chemical formulas can be inserted
in an intuitive way”. I assume that “to >a formula” refers to a math
formula??!
· In Martin Hensel’s document “The mhchem Bundle” dated August 8,
2016, he states about his package that “This works in text mode (even in
headings) and in math mode.”
By playing around with my document, it seems like the chemical
expressions are correctly typeset in the pdf file both if I insert the
\ce expressions in TeX code, and in math mode.
However, my *problem* is that in *my* document, the chemical formulas do
not *preview* within LyX, while in LyX’s Math Help document, the correct
typesetting seems to >*preview* within LyX.
· WHY this difference?
· (Could it be that my document is based on LaTeX Book style,
while LyX’s documentation uses KOMA-script document styles??)
-Bernt L.