Enabling mhchem?

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.

• related: siunitx LaTeX package?. – AccidentalFourierTransform Aug 5 '17 at 10:50
• FWIW, here's the related entries on Chemistry.SE. – Qmechanic Aug 5 '17 at 10:59
• 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? – user154997 Aug 5 '17 at 11:31
• 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. – dmckee --- ex-moderator kitten Aug 5 '17 at 15:15
• This may be the link I wanted: mhchem.github.io/MathJax-mhchem – dmckee --- ex-moderator kitten Aug 5 '17 at 15:28
• 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. – Davide Cervone Aug 7 '17 at 0:39
• @DavideCervone I was not aware of that. Nice there is a workaround. – user154997 Aug 7 '17 at 0:45
• @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? – S.D. Jan 20 '19 at 11:41
• 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. – Davide Cervone Jan 20 '19 at 16:10
• @Blue, forgot to tag you on my previous comment. See above. – Davide Cervone Jan 20 '19 at 16:54
• @DavideCervone Gotcha. Thanks for the response! :) – S.D. Jan 20 '19 at 16:57