www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 9d153e3a11cfc8bb931361ea50e72e5a98fd286d
parent 4b6a2f4ec3b58d7f811a538f39b5735884675de8
Author: Davide P. Cervone <dpvc@union.edu>
Date:   Wed, 31 Dec 2014 10:10:50 -0500

Make sure that tagged equations get mtables with the correct displaystyle (now that displaystyle is no longer inherited, see issue #839.)

Diffstat:
Munpacked/extensions/TeX/AMSmath.js | 3++-
Munpacked/jax/input/TeX/jax.js | 1+
2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/unpacked/extensions/TeX/AMSmath.js b/unpacked/extensions/TeX/AMSmath.js @@ -577,7 +577,8 @@ MathJax.Hub.Register.StartupHook("TeX Jax Ready",function () { var def = { side: TEX.config.TagSide, minlabelspacing: TEX.config.TagIndent, - columnalign: mml.displayAlign + columnalign: mml.displayAlign, + displaystyle: "inherit" // replaced by TeX input jax Translate() function with actual value }; if (mml.displayAlign === MML.INDENTALIGN.LEFT) { def.width = "100%"; diff --git a/unpacked/jax/input/TeX/jax.js b/unpacked/jax/input/TeX/jax.js @@ -2142,6 +2142,7 @@ mml = this.formatError(err,math,display,script); isError = true; } + if (mml.isa(MML.mtable) && mml.displaystyle === "inherit") mml.displaystyle = display; // for tagged equations if (mml.inferred) {mml = MML.apply(MathJax.ElementJax,mml.data)} else {mml = MML(mml)} if (display) {mml.root.display = "block"} if (isError) {mml.texError = true}