On 11/18/2011 02:55 AM, Guenter Milde wrote:
On 2011-11-18, eric katz wrote:
I've found the mhchem module from CTAN to be very useful for writing
chemical equations. It works beautifully for pdf output. However, when
I export to HTML, it looks like the mhchem codes don't get interpreted
at all. I get things like: "\ceNa +" and "\ceNO3 −" right in the
text, instead of formatted chemistry. The rest of the document comes
out looking very nice; mathematical equations look great.
Can it be fixed?
File a bug report for the LyxHTML converter.
It should be fairly easy to fix this. Please try to say, as best you can
in the bug report, exactly what the output should be like. Posting an
example file that contains all the main constructs would be especially
helpful.
In the meantime, you can force LyX to output images for these
constructs, instead of MathML or whatever, by (I think) including a
"\relax" somewhere in the formula. LyX won't know what to do with that,
so it will fall back to outputting images.
Richard