Rewrite Rulesphysics/zmat-to-xmat

physics/zmat-to-xmat

Expand zmat to the explicit xmat zero-filled builder.

Rewrite patterns#

  1. \zmat{#1}{#2}\xmat{0}{#1}{#2}

Examples#

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

zmat zero matrix#

Before

Z=\smqty(\zmat{2}{3})

After this rule

Z=\smqty(\xmat{0}{2}{3})

Rendering verified with the declared packages.

Same family#

Disable this rule#

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

Open in Playground