6
$\begingroup$

It would be nice to have mhchem enabled, by adding

TeX: { extensions: ["mhchem.js"] }

to the mathjax configuration. This would be useful to write nuclear reactions.

$\endgroup$
  • 2
    $\begingroup$ related: siunitx LaTeX package?. $\endgroup$ – AccidentalFourierTransform Aug 5 '17 at 10:50
  • $\begingroup$ FWIW, here's the related entries on Chemistry.SE. $\endgroup$ – Qmechanic Aug 5 '17 at 10:59
  • $\begingroup$ The siunitx package is not part of the standard mathjax distro: enabling mhchem is just a one-line change. I can't even understand why this would cause a debate. Bandwidth? $\endgroup$ – user154997 Aug 5 '17 at 11:31
  • $\begingroup$ For those of us who don't use mhchem it would be nice to have a link to a summary of what it is and how it works. Even the official LateX package documentation if the MathJax implementation adheres well. $\endgroup$ – dmckee Aug 5 '17 at 15:15
  • $\begingroup$ This may be the link I wanted: mhchem.github.io/MathJax-mhchem $\endgroup$ – dmckee Aug 5 '17 at 15:28
  • 5
    $\begingroup$ You can, of course, use \require{mhchem} in order to load mhchem as a one-off for the answer you are writing. E.g., $\require{mhchem} \ce{H20}$. You only need to use \require{mhchem} once on the page. $\endgroup$ – Davide Cervone Aug 7 '17 at 0:39
  • $\begingroup$ @DavideCervone I was not aware of that. Nice there is a workaround. $\endgroup$ – user154997 Aug 7 '17 at 0:45
  • $\begingroup$ @DavideCervone Hi. $\require{mhchem}$ loads the chemistry package, but $\require{physics}$ doesn't seem to load the physics package. For instance, $\require{physics}\dv[n]{f}{x}$ doesn't render. Any idea why? $\endgroup$ – Blue Jan 20 at 11:41
  • 2
    $\begingroup$ For security reasons, \require{} only loads extensions that are in the core MathJax distribution. The mhchem extension is there because I did a version of it some time ago, but the physics extension is a third-party extension. So it can't be loaded in that way unless the site sets it up specifically to allow that, which is not the case here. $\endgroup$ – Davide Cervone Jan 20 at 16:10
  • 1
    $\begingroup$ @Blue, forgot to tag you on my previous comment. See above. $\endgroup$ – Davide Cervone Jan 20 at 16:54
  • $\begingroup$ @DavideCervone Gotcha. Thanks for the response! :) $\endgroup$ – Blue Jan 20 at 16:57

You must log in to answer this question.