Rewrite Rulesbase/widehat-to-hat

base/widehat-to-hat

Drop stretchiness from \widehat by rewriting it to \hat.

Rewrite patterns#

  1. \widehat{#1}\hat{#1}

Examples#

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

Wide accent size drop#

Before

\widehat{AB}

After this rule

\hat{AB}

The rendered result has pixel differences from the input.

Same family#

Notes#

The wide and short forms retain the same accent identity and mathematical attachment to the same body. For an arbitrary multi-symbol body, however, the wide extent is a visible scope cue; replacing it with a short accent can weaken readability and make the intended span less apparent. The rule therefore first enters Equiv and claims only Math fidelity.

Disable this rule#

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

Open in Playground