www

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

commit 3f98e4759d3a19c75183c13708e27d028d6cec93
parent a719a551e1120c456333e7a18580e11185f29626
Author: Davide P. Cervone <dpvc@union.edu>
Date:   Sat, 27 Dec 2014 12:50:04 -0500

Merge branch 'issue982' into develop.  Issue #982.

Diffstat:
Munpacked/extensions/TeX/AMSmath.js | 14++++++++++----
1 file changed, 10 insertions(+), 4 deletions(-)

diff --git a/unpacked/extensions/TeX/AMSmath.js b/unpacked/extensions/TeX/AMSmath.js @@ -130,8 +130,8 @@ MathJax.Hub.Register.StartupHook("TeX Jax Ready",function () { 'alignat*': ['AlignAt',null,false,true], alignedat: ['AlignAt',null,false,false], - aligned: ['AlignedArray',null,null,null,'rlrlrlrlrlrl',COLS([0,2,0,2,0,2,0,2,0,2,0]),".5em",'D'], - gathered: ['AlignedArray',null,null,null,'c',null,".5em",'D'], + aligned: ['AlignedAMSArray',null,null,null,'rlrlrlrlrlrl',COLS([0,2,0,2,0,2,0,2,0,2,0]),".5em",'D'], + gathered: ['AlignedAMSArray',null,null,null,'c',null,".5em",'D'], subarray: ['Array',null,null,null,null,COLS([0,0,0,0]),"0.1em",'S',1], smallmatrix: ['Array',null,null,null,'c',COLS([1/3]),".2em",'S',1], @@ -314,6 +314,11 @@ MathJax.Hub.Register.StartupHook("TeX Jax Ready",function () { }); }, + AlignedAMSArray: function (begin) { + var align = this.GetBrackets("\\begin{"+begin.name+"}"); + return this.setArrayAlign(this.AMSarray.apply(this,arguments),align); + }, + /* * Handle alignat environments */ @@ -457,7 +462,7 @@ MathJax.Hub.Register.StartupHook("TeX Jax Ready",function () { }, /* - * Set the initial <mo> to have form="infix" and lspace="0", + * Set the initial <mo> to have form="infix", * skipping any initial space or empty braces (TeXAtom with child * being an empty inferred row). */ @@ -467,7 +472,8 @@ MathJax.Hub.Register.StartupHook("TeX Jax Ready",function () { (data[i].type !== "texatom" || (data[i].data[0] && data[i].data[0].data.length)))) { if (data[i].isEmbellished()) { var core = data[i].CoreMO(); - core.form = MML.FORM.INFIX; core.lspace = MML.LENGTH.MEDIUMMATHSPACE; + core.form = MML.FORM.INFIX; + core.useMMLspacing |= core.SPACE_ATTR.form; // use MathML space for this } break; }