Rewrite Rulesphysics/bmqty-to-mqty

physics/bmqty-to-mqty

Expand bmqty to the core mqty builder with bracket fence syntax.

Rewrite patterns#

  1. \bmqty{#1}\mqty[#1]

Examples#

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

bmqty gram matrix#

Before

G=\bmqty{g_{11}&g_{12}\\g_{21}&g_{22}}

After this rule

G=\mqty[g_{11}&g_{12}\\g_{21}&g_{22}]

Rendering verified with the declared packages.

Same family#

Notes#

mqty is a physics matrix quantity command and is intentionally produced by this expansion.

Disable this rule#

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

Open in Playground