Skip to content

Commit 2b1948f

Browse files
committed
Force cases environment to use textstyle rather than displaystyle. Resolves issue #485.
1 parent 55b5803 commit 2b1948f

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

unpacked/jax/input/TeX/config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727

2828
MathJax.InputJax.TeX = MathJax.InputJax({
2929
id: "TeX",
30-
version: "2.2.1",
30+
version: "2.2.2",
3131
directory: MathJax.InputJax.directory + "/TeX",
3232
extensionDir: MathJax.InputJax.extensionDir + "/TeX",
3333

unpacked/jax/input/TeX/jax.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,7 @@
267267
if (item.isCR) {this.EndEntry(); this.EndRow(); this.clearEnv(); return false}
268268
this.EndTable(); this.clearEnv();
269269
var mml = MML.mtable.apply(MML,this.table).With(this.arraydef);
270+
debug(show(this.arraydef));
270271
if (this.frame.length === 4) {
271272
mml.frame = (this.frame.dashed ? "dashed" : "solid");
272273
} else if (this.frame.length) {
@@ -992,7 +993,7 @@
992993
Bmatrix: ['Array',null,'\\{','\\}','c'],
993994
vmatrix: ['Array',null,'\\vert','\\vert','c'],
994995
Vmatrix: ['Array',null,'\\Vert','\\Vert','c'],
995-
cases: ['Array',null,'\\{','.','ll',null,".1em"],
996+
cases: ['Array',null,'\\{','.','ll',null,".2em",'T'],
996997

997998
equation: [null,'Equation'],
998999
'equation*': [null,'Equation'],
@@ -1757,6 +1758,7 @@
17571758
if (open) {array.open = this.convertDelimiter(open)}
17581759
if (close) {array.close = this.convertDelimiter(close)}
17591760
if (style === "D") {array.arraydef.displaystyle = true}
1761+
else if (style) {array.arraydef.displaystyle = false}
17601762
if (style === "S") {array.arraydef.scriptlevel = 1} // FIXME: should use mstyle?
17611763
if (raggedHeight) {array.arraydef.useHeight = false}
17621764
this.Push(begin);

0 commit comments

Comments
 (0)