Skip to content

Commit

Permalink
Merge pull request #1508 from dpvc/issue1023
Browse files Browse the repository at this point in the history
Fix problems with \middle.  #1023
  • Loading branch information
dpvc committed Jun 8, 2016
2 parents fb5505c + 00864b0 commit 9779801
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions unpacked/jax/input/TeX/jax.js
Expand Up @@ -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) {
Expand Down

0 comments on commit 9779801

Please sign in to comment.