Rewrite Rulesbase/thinspace-to-comma-space

base/thinspace-to-comma-space

Collapse thinspace to the explicit thin math space command.

Rewrite patterns#

  1. \thinspace\,

Examples#

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

thinspace around equals#

Before

f(x) \thinspace = \thinspace g(x+1)

After this rule

f(x) \, = \, g(x+1)

Rendering verified with the declared packages.

Text thinspace before number#

Before

\text{Section\thinspace 3.2}

After this rule

\text{Section\,3.2}

Rendering verified with the declared packages.

Downstream rules#

Same family#

Disable this rule#

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

Open in Playground