Rewrite Rulesbase/mathstrut-drop

base/mathstrut-drop

Drop the invisible mathstrut layout helper in cleanup-oriented normalization.

Rewrite patterns#

  1. \mathstrut∅ removed

Examples#

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

mathstrut after tall term#

Before

x_1 + y^2\mathstrut + z_3

After this rule

x_1 + y^2 + z_3

Rendering verified with the declared packages.

mathstrut inside radical changes root size#

Before

\sqrt{x\mathstrut}+\sqrt{x^i\mathstrut}

After this rule

\sqrt{x}+\sqrt{x^i}

The rendered result has pixel differences from the input.

Same family#

Disable this rule#

TransformEngine(profile="corpus", disable_rules=["base/mathstrut-drop"])
new TransformEngine({ profile: 'corpus', disableRules: ['base/mathstrut-drop'] })

Open in Playground