Rewrite Rulesbase/strut-drop

base/strut-drop

Drop the fixed empty strut node in cleanup-oriented normalization.

Rewrite patterns#

  1. \strut∅ removed

Examples#

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

strut after tall term#

Before

x_1 + y^2\strut + z_3

After this rule

x_1 + y^2 + z_3

The rendered result has pixel differences from the input.

strut inside radical changes root size#

Before

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

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/strut-drop"])
new TransformEngine({ profile: 'corpus', disableRules: ['base/strut-drop'] })

Open in Playground