Rewrite Rulesphysics/vectorarrow-to-va

physics/vectorarrow-to-va

Collapse vectorarrow to the short va helper.

Rewrite patterns#

  1. vectorarrow\vectorarrow{#1}\va{#1}
  2. vectorarrow-star\vectorarrow*{#1}\va*{#1}

Examples#

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

vectorarrow trajectory#

Before

\vectorarrow{r}(t)=\vb{r}_0+t\vb{v}

After this rule

\va{r}(t)=\vb{r}_0+t\vb{v}

Rendering verified with the declared packages.

vectorarrow star bold italic#

Before

\vectorarrow*{\alpha}+\vectorarrow*{p}

After this rule

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

Rendering verified with the declared packages.

Downstream rules#

Same family#

Notes#

Star is preserved on the short alias; physics StarMacro propagates it into the nested vb branch used under vec.

Disable this rule#

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

Open in Playground