commit 6d6720ecf547af6ecdc3ca5141ceabba9482ba40
parent 55df93cdf8eb06d132613266f4ab8ca1d099f98a
Author: Davide P. Cervone <dpvc@union.edu>
Date: Sat, 31 Jan 2015 11:11:45 -0500
Don't convert delimiters to unicode in \genfrac (since that is now done by \bigg and \big later on). Resolves issue #1033.
Diffstat:
1 file changed, 5 insertions(+), 8 deletions(-)
diff --git a/unpacked/extensions/TeX/AMSmath.js b/unpacked/extensions/TeX/AMSmath.js
@@ -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]);
},
/*