Renderer support
| Package | MathJax | KaTeX | XeTeX |
|---|---|---|---|
physics | MathJax: Full | KaTeX: None | XeTeX: Full |
Syntax#
\mqtys*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#
\mqty(#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}, bracket or vertical-bar \left...\right forms for [#1] and |#1|, an empty parenthesized array with no following body, and \lgroup/\rgroup for \mqty*(#1).
Equivalent forms#
\matrixquantity(#1)exact\matrixquantityis mapped to the same MatrixQuantity implementation for the same following syntax.
See also#
\matrixquantityphysics\smallmatrixquantityphysics\smqtyphysics
Test cases#
| Input | Case | MathJax | KaTeX | XeTeX |
|---|---|---|---|---|
\mqty | Positive · baseline | Pass | Fail | Pass |
\mqty* | Positive · vary:s[0] | Pass | Fail | Pass |
\mqty (a) | Positive · vary:d[1] | Pass | Fail | Pass |
\mqty*(a) | Positive · maximal | Pass | Fail | Pass |
\admat\antidiagonalmatrix\bmqty\diagonalmatrix\dmat\identitymatrix\imat\matrixdeterminant\matrixquantity\mdet\mqty\paulimatrix