Have TeX input jax load AMSmath if auto equation numbering is requested in the TeX configuration
This commit is contained in:
parent
f4f5263e2b
commit
94a2dc3389
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
|
@ -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
|
||||
//
|
||||
|
|
Loading…
Reference in New Issue
Block a user