Renderer support
| Package | MathJax | KaTeX | XeTeX |
|---|---|---|---|
physics | MathJax: Full | KaTeX: None | XeTeX: Full |
Syntax#
\matrixquantitys*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#
\matrixquantity(#1) \left(\begin{array}{} #1\end{array}\right)Source constructs and reparses this macro string. Other branches use \begin{array}{} #1\end{array} for {#1}, \left[...\right] for [#1], \left|...\right| for |#1|, an empty parenthesized array when no body follows, and \lgroup/\rgroup for the starred parenthesized form.
Equivalent forms#
\mqty(#1)exact\mqtyis mapped to the same MatrixQuantity implementation for the same following syntax.
See also#
\mqtyphysics\smallmatrixquantityphysics\smqtyphysics
Test cases#
| Input | Case | MathJax | KaTeX | XeTeX |
|---|---|---|---|---|
\matrixquantity | Positive · baseline | Pass | Fail | Pass |
\matrixquantity* | Positive · vary:s[0] | Pass | Fail | Pass |
\matrixquantity (a) | Positive · vary:d[1] | Pass | Fail | Pass |
\matrixquantity*(a) | Positive · maximal | Pass | Fail | Pass |
\admat\antidiagonalmatrix\bmqty\diagonalmatrix\dmat\identitymatrix\imat\matrixdeterminant\matrixquantity\mdet\mqty\paulimatrix