Last modified: 2014-10-20 09:20:14 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T7856, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 5856 - Add support for mhchem package in <math> markup
Add support for mhchem package in <math> markup
Status: RESOLVED WONTFIX
Product: MediaWiki extensions
Classification: Unclassified
Math (Other open bugs)
unspecified
All All
: Low enhancement with 2 votes (vote)
: ---
Assigned To: Nobody - You can work on this!
http://www.tug.org/tex-archive/help/C...
:
: 17133 (view as bug list)
Depends on:
Blocks: 17598 make-mathjax-default
  Show dependency treegraph
 
Reported: 2006-05-06 22:11 UTC by Edward Z. Yang
Modified: 2014-10-20 09:20 UTC (History)
8 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Edward Z. Yang 2006-05-06 22:11:12 UTC
Currently, most chemical equations are represented in plain text or LaTeX (if
there are complicated arrows, ions or symbols). These systems are cumbersome and
difficult to use. Mhchem was developed as a solution for typesetting chemical
equations, and comes with a quite intuitive syntax, e.g.:

  \ce{HCl + H2O -> Cl- + H3O+}

It would be nice if we could use this package in the math environment, i.e.
<math>\ce{C6H12O6 ->M[\Delta] 6C + 6H2O}</math>. Additionally, creating a <chem>
parser hook to automatically put the expression into \ce{} would offer nice
convenience.

There may be security issues with this, however. I do not know enough texvc to say.
Comment 1 Chad H. 2009-01-23 22:35:00 UTC
*** Bug 17133 has been marked as a duplicate of this bug. ***
Comment 2 Mike.lifeguard 2009-02-13 22:36:25 UTC
(In reply to comment #0)
> Currently, most chemical equations are represented in plain text or LaTeX (if
> there are complicated arrows, ions or symbols). These systems are cumbersome and
> difficult to use. Mhchem was developed as a solution for typesetting chemical
> equations, and comes with a quite intuitive syntax, e.g.:
> 
>   \ce{HCl + H2O -> Cl- + H3O+}
> 
> It would be nice if we could use this package in the math environment, i.e.
> <math>\ce{C6H12O6 ->M[\Delta] 6C + 6H2O}</math>. Additionally, creating a <chem>
> parser hook to automatically put the expression into \ce{} would offer nice
> convenience.

Yes, that'd be nice... but perhaps the best possible solution would be to have a <tex></tex> tag in addition, which will be agnostic as to what kind of TeX input it's getting. Then you can use
*normal TeX markup in <tex>, including $...$ etc for math and \ce{} for chem
*math markup in <math>, including \text{} for text and \ce{} for chem
*mhchem markup in <chem>, including $...$ etc for math and \text{} for text
Comment 3 zasnuty 2010-03-10 15:44:56 UTC
Just if someone would search for solution:
Take a look at the bottom of site: http://wiki.biol.uw.edu.pl/w/Brudnopis#Pisanie_wzor.C3.B3w_chemicznych_z_u.C5.BCyciem_LaTeXa

(found here: http://www.mediawiki.org/wiki/User:PSt , there is also contact email given)
Comment 4 nageh 2012-05-03 17:09:20 UTC
mhchem is available as an extension to MathJax. It may be worthwhile to add this support once MathJax is selected as the default rendering method.
Comment 5 physikerwelt 2014-10-19 18:29:44 UTC
Seems a very old request (from 2006). Please reopen if still needed.
Comment 6 Peter Krautzberger 2014-10-20 09:20:14 UTC
@Physikerwelt shouldn't this just work in MathML mode now? Or did mathoid intentionally dop the extension?

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links