Renderer support
| Package | MathJax | KaTeX | XeTeX |
|---|---|---|---|
physics | MathJax: Full | KaTeX: None | XeTeX: Full |
Syntax#
\commutators*starm{}{a}math contentm{b}math contentArgspec s m{} m — one optional and two mandatory arguments. Reading argspecs
Examples#
In TeXForm#
TeXForm parses this entry as prefix syntax; the package determines its argument specification.
Expands to#
\commutator{A}{B} \left[A,B\right]With star: [A,B] without \left/\right. With optional \big, \Big, \bigg, or \Bigg prefix: uses corresponding \bigl[...\bigr] sizing.
See also#
\acommphysics\anticommutatorphysics\commphysics\pbphysics\poissonbracketphysics
Test cases#
| Input | Case | MathJax | KaTeX | XeTeX |
|---|---|---|---|---|
\commutator{a}{b} | Positive · baseline | Pass | Fail | Pass |
\commutator*{a}{b} | Positive · vary:s[0] | Pass | Fail | Pass |
\commutator{a}b | Positive · bare[2] | Pass | Fail | Pass |