mathjax and mhchem?

mathjax and mhchem?

by James Ripps -
Number of replies: 1

We are using 3.0.3


I would like to be able to use the \lewis command in either tex or mathjax. I know I have to have mhchem installed to be able to use it, but I'm getting stuck at this point. I've dug through the mathjax documentation and the moodle documentation and it makes it sound like I copy over one phrase into the configuration window and then everything should work. But it just isn't.



According to the moodle doc, I'm supposed to copy this: TeX: {extensions: ["mhchem.js","color.js","AMSmath.js","AMSsymbols.js","noErrors.js","noUndefined.js"]},


into that window. But doing so breaks mathjax. Nothing renders at all. So I am stuck.


This is what I've done:



When I say it breaks it, it does this:


Those are written with the $$ symbol in front and at the end, not the \( that it is currently displaying.


Average of ratings: -
In reply to James Ripps

Re: mathjax and mhchem?

by Ricardo Caiado -
Picture of Particularly helpful Moodlers
Try this:

"...
MathJax.Hub.Config({
TeX: {extensions: ["AMSmath.js","AMSsymbols.js","mhchem.js","noErrors.js","noUndefined.js"]},
config: ["Accessible.js", "Safe.js"],
errorSettings: { message: ["!"] },
skipStartupTypeset: true,
messageStyle: "none"
});
..."
Average of ratings: Useful (1)