Configuration Generator menuSettings
Miniland1333 opened this issue · comments
Henry Agnew commented
extensions: ["tex2jax.js","mml2jax.js","MathMenu.js","MathZoom.js"],
TeX: {
extensions: ["autobold.js","mhchem.js","color.js","cancel.js", "AMSmath.js","AMSsymbols.js","noErrors.js","noUndefined.js"]
},
"HTML-CSS": { linebreaks: { automatic: true , width: "90%"}, scale: 90, mtextFontInherit: false},
menuSettings: { zscale: "150%", zoom: "Double-Click" },
SVG: { linebreaks: { automatic: true } }});
For the output, it should transform the menuSettings into options > menuOptions > settings : {}. Currently, it looks like the output that is generated is missing the settings:{} wrapper.
window.MathJax = {
chtml: {
scale: 0.9,
mtextInheritFont: false
},
options: {
menuOptions: {
zscale: "150%",
zoom: "Double-Click"
},
ignoreHtmlClass: 'tex2jax_ignore',
processHtmlClass: 'tex2jax_process'
},
tex: {
packages: ['base', 'mhchem', 'color', 'cancel', 'ams', 'noerrors', 'noundefined']
},
loader: {
load: ['[tex]/mhchem', '[tex]/color', '[tex]/cancel', '[tex]/noerrors']
}
};
</script>
<script src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-svg.js" id="MathJax-script"></script>```
Davide P. Cervone commented
Thanks, you are absolutely right. I will have to fix that.
Davide P. Cervone commented
Fixed!