Rewrite patterns#
- bra-auto-sized
\bra{#1}\left\langle #1 \right\vert - bra-fixed-size
\bra*{#1}\langle #1 \vert
Examples#
Each example shows this rule applied in isolation. A complete normalization profile may make additional changes.
bra acting on operator#
Rendering verified with the declared packages.
bra star fixed size#
Rendering verified with the declared packages.
Related rules#
Same family#
physics/expectation-expandExpand expectation-value helpers to explicit angle brackets.physics/matrixel-expandExpand matrix elements to explicit angle-bracket and bar fences.physics/physics-braket-expandExpand braket to an explicit angle-bracket form with a middle bar.physics/physics-ket-expandExpand ket to an explicit bar and angle-bracket fence form.physics/commutator-expandExpand commutators to explicit square-bracket fences.physics/poisson-bracket-expandExpand poisson brackets to explicit brace fences.
Notes#
Covers the physics star branch, where star suppresses automatic fence sizing. The parser-level branch that merges an immediately following ket is outside this rule’s single-command rewrite.
Disable this rule#
TransformEngine(profile="corpus", disable_rules=["physics/physics-bra-expand"])new TransformEngine({ profile: 'corpus', disableRules: ['physics/physics-bra-expand'] })