Index: trunk/extensions/Math/modules/ext.math.mathjax.preload.js |
— | — | @@ -0,0 +1,18 @@ |
| 2 | +MathJax.Ajax.Preloading( |
| 3 | + "[MathJax]/jax/input/TeX/config.js", |
| 4 | + "[MathJax]/jax/output/HTML-CSS/config.js", |
| 5 | + "[MathJax]/extensions/tex2jax.js", |
| 6 | + "[MathJax]/extensions/MathEvents.js", |
| 7 | + "[MathJax]/extensions/MathZoom.js", |
| 8 | + "[MathJax]/extensions/MathMenu.js", |
| 9 | + "[MathJax]/jax/element/mml/jax.js", |
| 10 | + "[MathJax]/extensions/toMathML.js", |
| 11 | + "[MathJax]/extensions/TeX/noErrors.js", |
| 12 | + "[MathJax]/extensions/TeX/noUndefined.js", |
| 13 | + "[MathJax]/jax/input/TeX/jax.js", |
| 14 | + "[MathJax]/extensions/TeX/AMSmath.js", |
| 15 | + "[MathJax]/extensions/TeX/AMSsymbols.js", |
| 16 | + "[MathJax]/jax/output/HTML-CSS/jax.js", |
| 17 | + "[MathJax]/jax/output/HTML-CSS/autoload/mtable.js" |
| 18 | +); |
| 19 | + |
Property changes on: trunk/extensions/Math/modules/ext.math.mathjax.preload.js |
___________________________________________________________________ |
Added: svn:eol-style |
1 | 20 | + native |
Index: trunk/extensions/Math/modules/ext.math.mathjax.enabler.js |
— | — | @@ -10,8 +10,8 @@ |
11 | 11 | |
12 | 12 | mathJax.Config = function() { |
13 | 13 | MathJax.Hub.Config({ |
14 | | - root: mediaWiki.config.get('wgExtensionAssetsPath') + '/Math/modules/MathJax/', |
15 | | - config: "TeX-AMS-texvc_HTML.js", |
| 14 | + root: mediaWiki.config.get('wgExtensionAssetsPath') + '/Math/modules/MathJax', |
| 15 | + //config: "TeX-AMS-texvc_HTML.js", |
16 | 16 | "v1.0-compatible": false, |
17 | 17 | styles: { ".mtext": { "font-family": "sans-serif ! important", "font-size": "80%" } }, |
18 | 18 | displayAlign: "left", |
— | — | @@ -21,14 +21,18 @@ |
22 | 22 | MathJax.Message.styles["#MathJax_Message"].right = MathJax.Message.styles["#MathJax_Message"].left; |
23 | 23 | delete MathJax.Message.styles["#MathJax_Message"].left; |
24 | 24 | if ( typeof(mathJax.userConfig) !== "undefined" ) MathJax.Hub.Config( mathJax.userConfig ); |
25 | | - if ( typeof(mathJax.fontDir) !== "undefined" ) MathJax.OutputJax.fontDir = mathJax.fontDir; else MathJax.Hub.Config({ NativeMML: {webFont: null} }); |
| 25 | + //if ( typeof(mathJax.fontDir) !== "undefined" ) MathJax.OutputJax.fontDir = mathJax.fontDir; else MathJax.Hub.Config({ NativeMML: {webFont: null} }); |
26 | 26 | MathJax.Hub.Register.StartupHook("End Extensions", function() { |
| 27 | + /* |
| 28 | + // this section is newly commented out while updating to MJ 2.0 |
27 | 29 | var TEX = MathJax.InputJax.TeX; |
28 | 30 | var MACROS = TEX.config.Macros; |
29 | 31 | for (var id in MACROS) { |
30 | 32 | if (typeof(MACROS[id]) === "string") TEX.Macro(id, MACROS[id]); |
31 | 33 | else TEX.Macro(id, MACROS[id][0], MACROS[id][1]); |
32 | 34 | } |
| 35 | + */ |
| 36 | + // this next section was already commented out |
33 | 37 | /* TEX.Parse.Augment({ |
34 | 38 | Cr: function(name) { |
35 | 39 | this.GetBrackets(name); |