Renderer support
| Package | MathJax | KaTeX | XeTeX |
|---|---|---|---|
physics | MathJax: Full | KaTeX: None | XeTeX: Full |
Syntax#
\smallmatrixquantitys*stard<(,)><[,]><{,}><|,|>(a)optional math contentArgspec s d<(,)><[,]><{,}><|,|> — two optional arguments. Reading argspecs
Examples#
In TeXForm#
TeXForm parses this entry as prefix syntax; the package determines its argument specification.
Expands to#
\smallmatrixquantity(#1) \left(\begin{smallmatrix}{} #1\end{smallmatrix}\right)Source constructs and reparses this macro string with array='smallmatrix'. Other branches use an unfenced \begin{smallmatrix}{}... form for {#1}, bracket/vertical-bar fences for [#1] and |#1|, an empty parenthesized smallmatrix when no body follows, and \lgroup/\rgroup for the starred parenthesized form.
Equivalent forms#
\smqty(#1)exact\smqtyis mapped to the same MatrixQuantity implementation with the small=true parameter.
See also#
\matrixquantityphysics\mqtyphysics\smqtyphysics
Test cases#
| Input | Case | MathJax | KaTeX | XeTeX |
|---|---|---|---|---|
\smallmatrixquantity | Positive · baseline | Pass | Fail | Pass |
\smallmatrixquantity* | Positive · vary:s[0] | Pass | Fail | Pass |
\smallmatrixquantity (a) | Positive · vary:d[1] | Pass | Fail | Pass |
\smallmatrixquantity*(a) | Positive · maximal | Pass | Fail | Pass |
\admat\antidiagonalmatrix\bmqty\diagonalmatrix\dmat\identitymatrix\imat\matrixdeterminant\matrixquantity\mdet\mqty\smallmatrixquantity