mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 06:22:22 -04:00

* 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
34 lines
612 B
JavaScript
34 lines
612 B
JavaScript
window.MathJax = {
|
|
tex: {
|
|
displayMath: [["\\[", "\\]"]],
|
|
processRefs: false,
|
|
processEnvironments: false,
|
|
packages: {
|
|
'[+]': [
|
|
'noerrors',
|
|
'mhchem',
|
|
],
|
|
}
|
|
},
|
|
startup: {
|
|
typeset: false,
|
|
pageReady: () => {
|
|
console.log('page is ready');
|
|
return MathJax.startup.defaultPageReady();
|
|
},
|
|
},
|
|
options: {
|
|
renderActions: {
|
|
addMenu: [],
|
|
checkLoading: []
|
|
},
|
|
ignoreHtmlClass: 'tex2jax_ignore',
|
|
processHtmlClass: 'tex2jax_process',
|
|
},
|
|
loader: {
|
|
load: [
|
|
'[tex]/noerrors',
|
|
'[tex]/mhchem',
|
|
]
|
|
}
|
|
};
|