Syntax#
\rootu{\of}a\ofmath contentm{b}math contentArgspec u{\of} m — two mandatory arguments. Reading argspecs
Examples#
In TeXForm#
TeXForm parses this entry as prefix syntax; the package determines its argument specification.
Rewrite legacy root-of syntax to bracketed sqrt notation.
\root #1 \of #2 \sqrt[#1]{#2}Equivalent forms#
\sqrt[#1]{#2}approximateFor ordinary nth-root usage this matches
\sqrt[#1]{#2} semantically, but MathJax's\sqrthas an extra convenience case for an unbraced following\fracthat\rootdoes not.
Test cases#
| Input | Case | MathJax | KaTeX | XeTeX |
|---|---|---|---|---|
a \root 3 \of x | Positive · ctx:basic | Pass | Fail | Pass |