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

This commit is contained in:
Davide P. Cervone 2014-12-31 10:10:50 -05:00
parent 4b6a2f4ec3
commit 9d153e3a11
2 changed files with 3 additions and 1 deletions

View File

@ -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%";

View File

@ -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}