cortexjs.io
cortexjs.io copied to clipboard
frac{12}
Why if math field \frac{1}{2} return \frac12? If \sqrt{\frac{1}{2}} return \sqrt{\frac{12}}
Only single numerator or denumerator
In LaTeX, some commands can have "single-token arguments", including \frac
and \sqrt
. This means that \frac12
is identical to \frac{1}{2}
and \sqrt2
is identical to \sqrt{2}
. Wether to use single-token variants or not is a style preference. The MathLive serializer uses the shorthand version when the numerator and denominator are both single digits.
In LaTeX, some commands can have "single-token arguments", including
\frac
and\sqrt
. This means that\frac12
is identical to\frac{1}{2}
and\sqrt2
is identical to\sqrt{2}
. Wether to use single-token variants or not is a style preference. The MathLive serializer uses the shorthand version when the numerator and denominator are both single digits.
how make single with {} for example \sqrt{4} not \sqrt4 withouth regex?