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:
parent
4b6a2f4ec3
commit
9d153e3a11
|
@ -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%";
|
||||
|
|
|
@ -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}
|
||||
|
|
Loading…
Reference in New Issue
Block a user