Have TeX input jax load AMSmath if auto equation numbering is requested in the TeX configuration

This commit is contained in:
Davide P. Cervone 2011-05-02 09:55:58 -04:00
parent f4f5263e2b
commit 94a2dc3389
8 changed files with 19 additions and 7 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1717,6 +1717,18 @@
prefilterHooks: MathJax.Callback.Hooks(true), // hooks to run before processing TeX
postfilterHooks: MathJax.Callback.Hooks(true), // hooks to run after processing TeX
//
// Check if AMSmath extension must be loaded and push
// it on the extensions array, if needed
//
Config: function () {
this.SUPER(arguments).Config.apply(this,arguments);
if (this.config.equationNumbers.autoNumber !== "none") {
if (!this.config.extensions) {this.config.extensions = []}
this.config.extensions.push("AMSmath.js");
}
},
//
// Convert TeX to ElementJax
//