Rewrite patterns#
- ket-auto-sized
\ket{#1}\left\vert #1 \right\rangle - ket-fixed-size
\ket*{#1}\vert #1 \rangle
Examples#
Each example shows this rule applied in isolation. A complete normalization profile may make additional changes.
ket eigenvalue#
Rendering verified with the declared packages.
ket 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/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.
Disable this rule#
TransformEngine(profile="corpus", disable_rules=["physics/physics-ket-expand"])new TransformEngine({ profile: 'corpus', disableRules: ['physics/physics-ket-expand'] })