Rewrite patterns#
\uproot{#1}∅ removed
Examples#
Each example shows this rule applied in isolation. A complete normalization profile may make additional changes.
uproot inside sqrt degree#
The rendered result has pixel differences from the input.
Related rules#
Same family#
ams/cfrac-to-fracDrop continued-fraction styling from centered AMS cfrac forms.ams/dbinom-and-tbinom-to-binomRewrite AMS display-style and text-style binomial commands to binom.ams/dfrac-to-fracRewrite the AMS display-style fraction command to frac.ams/tfrac-to-fracRewrite the AMS text-style fraction command to frac.base/above-to-genfracRewrite above to a thickness-preserving genfrac form.base/abovewithdelims-to-genfracRewrite abovewithdelims to an explicit genfrac with delimiters and thickness.base/atop-to-genfracRewrite infix atop to an explicit no-rule genfrac form.base/atopwithdelims-to-genfracRewrite atopwithdelims to an explicit delimited no-rule genfrac form.base/brace-to-genfracRewrite infix brace to an explicit genfrac with brace delimiters.base/brack-to-genfracRewrite infix brack to an explicit genfrac with bracket delimiters.base/choose-to-binomRewrite infix choose to an explicit binom command.base/over-to-fracRewrite infix over to an explicit frac command.base/overwithdelims-to-genfracRewrite overwithdelims to an explicit genfrac with delimiters.base/root-of-to-sqrtRewrite legacy root-of syntax to bracketed sqrt notation.base/leftroot-dropDrop the leftroot index-position hint in cleanup-oriented normalization.
Notes#
AMS-TeX/amsmath root-index nudge, recorded in base following MathJax MoveRoot. MathJax only accepts it inside a root index (the optional degree of \sqrt or the degree of \root ... \of) and turns the integer into mpadded voffset/height. Corpus drops the command and its integer argument globally, including misplaced uses that MathJax would reject, so the eliminated-form contract can own cmd:uproot. Do not encode the offset back into LaTeX. Pixel mismatch on the in-root example is expected: the index content and reading order stay, only placement changes.
Disable this rule#
TransformEngine(profile="corpus", disable_rules=["base/uproot-drop"])new TransformEngine({ profile: 'corpus', disableRules: ['base/uproot-drop'] })