Rewrite patterns#
- matrixel-auto-sized
\matrixel{#1}{#2}{#3}\left\langle #1 \right\vert #2 \left\vert #3 \right\rangle - matrixel-fixed-size
\matrixel*{#1}{#2}{#3}\langle #1 \vert #2 \vert #3 \rangle - matrixel-middle-sized
\matrixel**{#1}{#2}{#3}\left\langle #1 \middle\vert #2 \middle\vert #3 \right\rangle
Examples#
Each example shows this rule applied in isolation. A complete normalization profile may make additional changes.
Matrix element operator#
Rendering verified with the declared packages.
Matrix element star fixed size#
Rendering verified with the declared packages.
Matrix element double star middle sized#
Rendering verified with the declared packages.
Related rules#
Same family#
physics/expectation-expandExpand expectation-value helpers to explicit angle brackets.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.physics/poisson-bracket-expandExpand poisson brackets to explicit brace fences.
Notes#
Covers both star levels from the shared braket output helper: single star suppresses automatic sizing, double star uses middle bars with outer automatic fences.
Disable this rule#
TransformEngine(profile="corpus", disable_rules=["physics/matrixel-expand"])new TransformEngine({ profile: 'corpus', disableRules: ['physics/matrixel-expand'] })