Renderer support
| Package | MathJax | KaTeX | XeTeX |
|---|---|---|---|
physics | MathJax: Full | KaTeX: None | XeTeX: Full |
Syntax#
\smqtys*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#
\smqty(#1) \left(\begin{smallmatrix}{} #1\end{smallmatrix}\right)Source constructs and reparses this macro string with array='smallmatrix'. Other valid branches generate unfenced smallmatrix for {#1}, bracket or vertical-bar fenced smallmatrix forms for [#1] and |#1|, empty parentheses when no body follows, and \lgroup/\rgroup for \smqty*(#1).
Equivalent forms#
\smallmatrixquantity(#1)exact\smallmatrixquantityis mapped to the same MatrixQuantity implementation with the small=true parameter.
See also#
\matrixquantityphysics\mqtyphysics\smallmatrixquantityphysics
Test cases#
| Input | Case | MathJax | KaTeX | XeTeX |
|---|---|---|---|---|
\smqty | Positive · baseline | Pass | Fail | Pass |
\smqty* | Positive · vary:s[0] | Pass | Fail | Pass |
\smqty (a) | Positive · vary:d[1] | Pass | Fail | Pass |
\smqty*(a) | Positive · maximal | Pass | Fail | Pass |
\admat\antidiagonalmatrix\bmqty\diagonalmatrix\dmat\identitymatrix\imat\matrixdeterminant\matrixquantity\mdet\mqty\smqty