Handle scriptlevel set on arrays via an mstyle node (affects smallmatrix). Resolves issue #1295.

This commit is contained in:
Davide P. Cervone 2015-11-01 19:22:11 -05:00
parent ecbfb344c3
commit 7c39f064d0

View File

@ -266,6 +266,7 @@
if (item.isEntry) {this.EndEntry(); this.clearEnv(); return false}
if (item.isCR) {this.EndEntry(); this.EndRow(); this.clearEnv(); return false}
this.EndTable(); this.clearEnv();
var scriptlevel = this.arraydef.scriptlevel; delete this.arraydef.scriptlevel;
var mml = MML.mtable.apply(MML,this.table).With(this.arraydef);
if (this.frame.length === 4) {
mml.frame = (this.frame.dashed ? "dashed" : "solid");
@ -276,6 +277,7 @@
if ((this.arraydef.columnlines||"none") != "none" ||
(this.arraydef.rowlines||"none") != "none") {mml.padding = 0} // HTML-CSS jax implements this
}
if (scriptlevel) {mml = MML.mstyle(mml).With({scriptlevel: scriptlevel})}
if (this.open || this.close) {mml = TEX.fenced(this.open,mml,this.close)}
mml = STACKITEM.mml(mml);
if (this.requireClose) {