Rewrite Rulesbase/negthinspace-to-neg-comma-space

base/negthinspace-to-neg-comma-space

Collapse negthinspace to the explicit negative thin math space command.

Rewrite patterns#

  1. \negthinspace\!

Examples#

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

negthinspace before subscript#

Before

A\negthinspace_{i,j}+B_{i,j}

After this rule

A\!_{i,j}+B_{i,j}

Rendering verified with the declared packages.

Text negthinspace in abbreviation#

Before

\text{A\negthinspace/V}

After this rule

\text{A\!/V}

Rendering verified with the declared packages.

Same family#

Disable this rule#

TransformEngine(profile="corpus", disable_rules=["base/negthinspace-to-neg-comma-space"])
new TransformEngine({ profile: 'corpus', disableRules: ['base/negthinspace-to-neg-comma-space'] })

Open in Playground