Rewrite patterns#
- poisson-bracket-auto-sized
\pb{#1}{#2}\left\{#1,#2\right\} - poisson-bracket-fixed-size
\pb*{#1}{#2}\{#1,#2\}
Examples#
Each example shows this rule applied in isolation. A complete normalization profile may make additional changes.
Poisson bracket canonical#
Rendering verified with the declared packages.
Poisson bracket 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-bra-expandExpand bra to an explicit angle-bracket and bar fence form.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.
Notes#
Covers the star branch, where star suppresses automatic fence sizing. Explicit big-size control after the command follows the shared commutator parser and is outside this rule's scope.
Disable this rule#
TransformEngine(profile="corpus", disable_rules=["physics/poisson-bracket-expand"])new TransformEngine({ profile: 'corpus', disableRules: ['physics/poisson-bracket-expand'] })