Rewrite Rulesams/Bmatrix-env-to-brace-matrix

ams/Bmatrix-env-to-brace-matrix

Rewrite the fenced Bmatrix environment to explicit braces around a core matrix environment.

Rewrite patterns#

  1. \begin{Bmatrix} #1 \end{Bmatrix}\left\{\begin{matrix} #1 \end{matrix}\right\}

Examples#

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

Bmatrix#

Before

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

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/Bmatrix-env-to-brace-matrix"])
new TransformEngine({ profile: 'corpus', disableRules: ['ams/Bmatrix-env-to-brace-matrix'] })

Open in Playground