Make \sqrt\frac{}{} not produce an error (resolves issue #75, at least for the example given).
This commit is contained in:
parent
a2d695c012
commit
afc36aac44
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -1154,7 +1154,9 @@
|
|||
},
|
||||
|
||||
Sqrt: function (name) {
|
||||
var n = this.GetBrackets(name), mml = this.ParseArg(name);
|
||||
var n = this.GetBrackets(name), arg = this.GetArgument(name);
|
||||
if (arg === "\\frac") {arg += "{"+this.GetArgument(arg)+"}{"+this.GetArgument(arg)+"}"}
|
||||
var mml = TEX.Parse(arg,this.stack.env).mml();
|
||||
if (n == "") {mml = MML.msqrt.apply(MML,mml.array())}
|
||||
else {mml = MML.mroot(mml,this.parseRoot(n))}
|
||||
this.Push(mml);
|
||||
|
|
Loading…
Reference in New Issue
Block a user