|
186 | 186 | if (this.open || this.close) {
|
187 | 187 | mml.texClass = MML.TEXCLASS.INNER;
|
188 | 188 | mml.texWithDelims = true;
|
189 |
| - mml = TEX.mfenced(this.open,mml,this.close); |
| 189 | + mml = TEX.fenced(this.open,mml,this.close); |
190 | 190 | }
|
191 | 191 | return [STACKITEM.mml(mml), item];
|
192 | 192 | }
|
|
200 | 200 | stopError: /*_()*/ ["ExtraLeftMissingRight", "Extra \\left or missing \\right"],
|
201 | 201 | checkItem: function (item) {
|
202 | 202 | if (item.type === "right")
|
203 |
| - {return STACKITEM.mml(TEX.mfenced(this.delim,this.mmlData(),item.delim))} |
| 203 | + {return STACKITEM.mml(TEX.fenced(this.delim,this.mmlData(),item.delim))} |
204 | 204 | return this.SUPER(arguments).checkItem.call(this,item);
|
205 | 205 | }
|
206 | 206 | });
|
|
276 | 276 | if ((this.arraydef.columnlines||"none") != "none" ||
|
277 | 277 | (this.arraydef.rowlines||"none") != "none") {mml.padding = 0} // HTML-CSS jax implements this
|
278 | 278 | }
|
279 |
| - if (this.open || this.close) {mml = TEX.mfenced(this.open,mml,this.close)} |
| 279 | + if (this.open || this.close) {mml = TEX.fenced(this.open,mml,this.close)} |
280 | 280 | mml = STACKITEM.mml(mml);
|
281 | 281 | if (this.requireClose) {
|
282 | 282 | if (item.type === 'close') {return mml}
|
|
2122 | 2122 | },
|
2123 | 2123 |
|
2124 | 2124 | /*
|
2125 |
| - * Create an mrow that represents the equivalent of an mfenced |
| 2125 | + * Create an mrow that has stretchy delimiters at either end, as needed |
2126 | 2126 | */
|
2127 |
| - mfenced: function (open,mml,close) { |
| 2127 | + fenced: function (open,mml,close) { |
2128 | 2128 | var mrow = MML.mrow();
|
2129 | 2129 | mrow.open = open; mrow.close = close;
|
2130 |
| - if (open) {mrow.Append(MML.mo(open).With({fence:true, texClass:MML.TEXCLASS.OPEN}))} |
| 2130 | + if (open) {mrow.Append(MML.mo(open).With({fence:true, stretchy:true, texClass:MML.TEXCLASS.OPEN}))} |
2131 | 2131 | if (mml.type === "mrow") {mrow.Append.apply(mrow,mml.data)} else {mrow.Append(mml)}
|
2132 |
| - if (close) {mrow.Append(MML.mo(close).With({fence:true, texClass:MML.TEXCLASS.CLOSE}))} |
| 2132 | + if (close) {mrow.Append(MML.mo(close).With({fence:true, stretchy:true, texClass:MML.TEXCLASS.CLOSE}))} |
2133 | 2133 | return mrow;
|
2134 | 2134 | },
|
2135 | 2135 |
|
|
0 commit comments