Rewrite Rulesphysics/pmqty-to-mqty

physics/pmqty-to-mqty

Expand pmqty to the core mqty builder with paren fence syntax.

Rewrite patterns#

  1. \pmqty{#1}\mqty(#1)

Examples#

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

pmqty matrix assignment#

Before

A=\pmqty{a&b\\c&d}

After this rule

A=\mqty(a&b\\c&d)

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/pmqty-to-mqty"])
new TransformEngine({ profile: 'corpus', disableRules: ['physics/pmqty-to-mqty'] })

Open in Playground