www

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

commit 7c39f064d0913a459e05a25edc5b70a20c4a089a
parent ecbfb344c3092b48f089b8b2ac360fa9dfe0739c
Author: Davide P. Cervone <dpvc@union.edu>
Date:   Sun,  1 Nov 2015 19:22:11 -0500

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

Diffstat:
Munpacked/jax/input/TeX/jax.js | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/unpacked/jax/input/TeX/jax.js b/unpacked/jax/input/TeX/jax.js @@ -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) {