Don't convert delimiters to unicode in \genfrac (since that is now done by \bigg and \big later on). Resolves issue #1033.

This commit is contained in:
Davide P. Cervone 2015-01-31 11:11:45 -05:00
parent 55df93cdf8
commit 6d6720ecf5

View File

@ -258,8 +258,8 @@ MathJax.Hub.Register.StartupHook("TeX Jax Ready",function () {
* Implement AMS generalized fraction
*/
Genfrac: function (name,left,right,thick,style) {
if (left == null) {left = this.GetDelimiterArg(name)} else {left = this.convertDelimiter(left)}
if (right == null) {right = this.GetDelimiterArg(name)} else {right = this.convertDelimiter(right)}
if (left == null) {left = this.GetDelimiterArg(name)}
if (right == null) {right = this.GetDelimiterArg(name)}
if (thick == null) {thick = this.GetArgument(name)}
if (style == null) {style = this.trimSpaces(this.GetArgument(name))}
var num = this.ParseArg(name);
@ -399,12 +399,9 @@ MathJax.Hub.Register.StartupHook("TeX Jax Ready",function () {
*/
GetDelimiterArg: function (name) {
var c = this.trimSpaces(this.GetArgument(name));
if (c == "") {return null}
if (TEXDEF.delimiter[c] == null) {
TEX.Error(["MissingOrUnrecognizedDelim",
"Missing or unrecognized delimiter for %1",name]);
}
return this.convertDelimiter(c);
if (c == "") return null;
if (TEXDEF.delimiter[c]) return c;
TEX.Error(["MissingOrUnrecognizedDelim","Missing or unrecognized delimiter for %1",name]);
},
/*