Rewrite Rulesams/vmatrix-env-to-vert-matrix

ams/vmatrix-env-to-vert-matrix

Rewrite the fenced vmatrix environment to explicit vertical bars around a core matrix environment.

Rewrite patterns#

  1. \begin{vmatrix} #1 \end{vmatrix}\left|\begin{matrix} #1 \end{matrix}\right|

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|\begin{matrix} a & b \\ c & d \end{matrix}\right|

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