Skip to content

Commit 9779801

Browse files
committed
Merge pull request #1508 from dpvc/issue1023
Fix problems with \middle. #1023
2 parents fb5505c + 00864b0 commit 9779801

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

unpacked/jax/input/TeX/jax.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1335,9 +1335,11 @@
13351335

13361336
Middle: function (name) {
13371337
var delim = this.GetDelimiter(name);
1338+
this.Push(MML.TeXAtom().With({texClass:MML.TEXCLASS.CLOSE}));
13381339
if (this.stack.Top().type !== "left")
13391340
{TEX.Error(["MisplacedMiddle","%1 must be within \\left and \\right",name])}
13401341
this.Push(MML.mo(delim).With({stretchy:true}));
1342+
this.Push(MML.TeXAtom().With({texClass:MML.TEXCLASS.OPEN}));
13411343
},
13421344

13431345
NamedFn: function (name,id) {

0 commit comments

Comments
 (0)