[l2h] mhchem package problem

gnusosa gnusosa at gnusosa.net
Fri Sep 26 19:50:30 CEST 2008

Dr Nicola L C Talbot wrote:
>> Hi, my main problem is trying to get rendered images of my chemical 
>> equations.
>> It seems that when compiling the text in latex, the chemical equations 
>> are rendered; but on latex2html, no images are rendered, text just appears.
>> Most of the text is in [ce] [/ce] also tried \ce {CO2}, this the \ce 
>> {CO2} it works well on latex but on latex2html, it does not render the 
>> images.
>> Anybody knows about this package? or something going on with latex2html?
> I imagine there's no LaTeX2HTML implementation of mhchem (i.e. there's 
> no file called mhchem.perl). Does latex2html issue any warnings along 
> the lines of
> No implementation found for style `mhchem'
> and does it list ce as an unknown command?
> If latex2html encounters a command it doesn't know, it ignores the 
> command which means that any arguments are processed as is.
> You need to tell latex2html to pass \ce to LaTeX and create an image. I 
> haven't tested it, but if you put the following in your .latex2html-init 
> file, it should work:
> &process_commands_inline_in_tex (<<_RAW_ARG_CMDS_);
> ce # {}
> Regards
> Nicola Talbot
> _______________________________________________
> latex2html mailing list
> latex2html at tug.org
> http://tug.org/mailman/listinfo/latex2html
Hi, i have already resolved, using two packages amsmath and mhchem.
i just had to the math symbol before \ce.
Example : $\ce{H2O}$
Although it does render a little choppy but it's quality useful for a 
Everything works as expected.

Thank you for the reply.

More information about the latex2html mailing list