Merge pull request from dpvc/issue1023

Fix problems with \middle.  
This commit is contained in:
Davide P. Cervone 2016-06-08 07:13:05 -04:00
commit 9779801c51

View File

@ -1335,9 +1335,11 @@
Middle: function (name) {
var delim = this.GetDelimiter(name);
this.Push(MML.TeXAtom().With({texClass:MML.TEXCLASS.CLOSE}));
if (this.stack.Top().type !== "left")
{TEX.Error(["MisplacedMiddle","%1 must be within \\left and \\right",name])}
this.Push(MML.mo(delim).With({stretchy:true}));
this.Push(MML.TeXAtom().With({texClass:MML.TEXCLASS.OPEN}));
},
NamedFn: function (name,id) {