Rewrite Rulesphysics/va-to-vec-mathbf

physics/va-to-vec-mathbf

Canonicalize va to an explicit vec-wrapped mathbf form.

Rewrite patterns#

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

Examples#

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

va angular momentum#

Before

\va{L}=\vb{r}\times\vb{p}

After this rule

\vec{\mathbf{L}}=\vb{r}\times\vb{p}

Rendering verified with the declared packages.

va star bold italic#

Before

\va*{p}+\va*{\alpha}

After this rule

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

Rendering verified with the declared packages.

Upstream rules#

Same family#

Notes#

The star branch propagates into the nested vb under vec, so this rule maps it to vec over boldsymbol rather than vec over mathbf.

Disable this rule#

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

Open in Playground