Rewrite Rulesams/Vmatrix-env-to-Vert-matrix

ams/Vmatrix-env-to-Vert-matrix

Rewrite the fenced Vmatrix environment to explicit double bars around a core matrix environment.

Rewrite patterns#

  1. \begin{Vmatrix} #1 \end{Vmatrix}\left\Vert\begin{matrix} #1 \end{matrix}\right\Vert

Examples#

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

Vmatrix#

Before

\begin{Vmatrix} a & b \\ c & d \end{Vmatrix}

After this rule

\left\Vert\begin{matrix} a & b \\ c & d \end{matrix}\right\Vert

Rendering verified with the declared packages.

Same family#

Disable this rule#

TransformEngine(profile="corpus", disable_rules=["ams/Vmatrix-env-to-Vert-matrix"])
new TransformEngine({ profile: 'corpus', disableRules: ['ams/Vmatrix-env-to-Vert-matrix'] })

Open in Playground