Chemical Forums

General Forums => Comments for Staff and Comments from Staff => Topic started by: krackers on July 24, 2014, 01:10:27 AM

Title: Why doesn't this forum support the mchem latex package?
Post by: krackers on July 24, 2014, 01:10:27 AM
I'm not sure if I'm doing anything wrong but I don't see there is support for the mchem latex package. Using it would allow for much easier typsetting of chemical notations.
Title: Re: Why doesn't this forum support the mchem latex package?
Post by: Mitch on July 25, 2014, 01:00:21 AM
Not sure what technical challenges that may necessitate. We'll look into it.
Title: Re: Why doesn't this forum support the mchem latex package?
Post by: Borek on July 28, 2014, 02:09:53 PM
I am not sure about mchem, but you can try mhchem, just add \require{mhchem}:

Code: [Select]
\require{mhchem}\ce{C6H5-CHO}\\
\ce{$A$ ->[\ce{+H2O}] $B$}\\
\ce{SO4^2- + Ba^2+ -> BaSO4 v}

yields

[tex]\require{mhchem}\ce{C6H5-CHO}\\
\ce{$A$ ->[\ce{+H2O}] $B$}\\
\ce{SO4^2- + Ba^2+ -> BaSO4 v}[/tex]

For some reason I can't make it work globally >:(, will try again later. Edit: OK, I am an idiot, I forgot to add a comma, should work now.

However, I prefer equations and formulae formatted just with standard UBBC tags - we already have plenty of these and it is never a good idea to mix different styles of entering the same kind of data in the database. For example it will make automatic tagging of posts (that we may want to implement one day) much more difficult if the formulae were entered sometimes with UBBC tags and sometimes with LaTeX.