Rewrite patterns#
- commutator-auto-sized
\comm{#1}{#2}\left[#1,#2\right] - commutator-fixed-size
\comm*{#1}{#2}[#1,#2]
Examples#
Each example shows this rule applied in isolation. A complete normalization profile may make additional changes.
Commutator angular momentum#
Rendering verified with the declared packages.
Commutator 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/poisson-bracket-expandExpand poisson brackets to explicit brace fences.
Notes#
Covers the star branch, where star suppresses automatic fence sizing. Explicit big-size control after the command is parsed by MathJax but is outside the current argspec metadata and is outside this rule’s rewrite.
Disable this rule#
TransformEngine(profile="corpus", disable_rules=["physics/commutator-expand"])new TransformEngine({ profile: 'corpus', disableRules: ['physics/commutator-expand'] })