Rewrite Rulesbase/uproot-drop

base/uproot-drop

Drop the uproot index-position hint in cleanup-oriented normalization.

Rewrite patterns#

  1. \uproot{#1}∅ removed

Examples#

Each example shows this rule applied in isolation. A complete normalization profile may make additional changes.

uproot inside sqrt degree#

Before

\sqrt[\uproot{2}3]{k}

After this rule

\sqrt[3]{k}

The rendered result has pixel differences from the input.

Same family#

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'] })

Open in Playground