Rewrite Rulesphysics/vb-to-mathbf

physics/vb-to-mathbf

Canonicalize vb to an explicit mathbf wrapper.

Rewrite patterns#

  1. vb\vb{#1}\mathbf{#1}
  2. vb-star\vb*{#1}\boldsymbol{#1}

Examples#

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

vb momentum#

Before

\vb{p}=mv

After this rule

\mathbf{p}=mv

Rendering verified with the declared packages.

vb star bold italic#

Before

\vb*{p}+\vb*{\alpha}

After this rule

\boldsymbol{p}+\boldsymbol{\alpha}

Rendering verified with the declared packages.

Upstream rules#

Same family#

Notes#

The star branch is not equivalent to plain mathbf: physics VectorBold uses bold-italic styling and includes lowercase Greek. This rule maps that branch to boldsymbol because it matches the rendered physics output for both Latin and Greek symbols.

Disable this rule#

TransformEngine(profile="corpus", disable_rules=["physics/vb-to-mathbf"])
new TransformEngine({ profile: 'corpus', disableRules: ['physics/vb-to-mathbf'] })

Open in Playground