mirror of
https://github.com/ankitects/anki.git
synced 2025-09-20 15:02:21 -04:00
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:
parent
80232f4d33
commit
4229f21084
1 changed files with 12 additions and 11 deletions
|
@ -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',
|
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue