Include default MathJax packages

* by default load all the default tex-chtml packages, which additionally include:
  * require: using \require{package-name} to load a package
  * autoload: using a command from a different package automatically loads it
  * configmacros: allows for definition of predefined macros
This commit is contained in:
Henrik Giesel 2020-11-15 20:56:50 +01:00
parent 80232f4d33
commit 4229f21084

View file

@ -3,17 +3,19 @@ window.MathJax = {
displayMath: [["\\[", "\\]"]], displayMath: [["\\[", "\\]"]],
processRefs: false, processRefs: false,
processEnvironments: false, processEnvironments: false,
packages: [ packages: {
'base', '[+]': [
'ams', 'noerrors',
'noerrors', 'mhchem',
'noundefined', ],
'mhchem', }
'require',
]
}, },
startup: { startup: {
typeset: false typeset: false,
pageReady: () => {
console.log('page is ready');
return MathJax.startup.defaultPageReady();
},
}, },
options: { options: {
renderActions: { renderActions: {
@ -21,13 +23,12 @@ window.MathJax = {
checkLoading: [] checkLoading: []
}, },
ignoreHtmlClass: 'tex2jax_ignore', ignoreHtmlClass: 'tex2jax_ignore',
processHtmlClass: 'tex2jax_process' processHtmlClass: 'tex2jax_process',
}, },
loader: { loader: {
load: [ load: [
'[tex]/noerrors', '[tex]/noerrors',
'[tex]/mhchem', '[tex]/mhchem',
'[tex]/require',
] ]
} }
}; };