Physics: matrices\smqty

\smqtyCommand

Used as the short command for small or inline physics-package matrix quantities, with optional parentheses, brackets, braces-as-input, or vertical bars around the body.

\smqty{a & b \\ c & d}
Available in
physics
Kind
prefix
Allowed mode
math
Frequency
Not measured
Commonality
low
Tags
mathjax-extension
Renderer support
PackageMathJaxKaTeXXeTeX
physicsMathJax: FullKaTeX: NoneXeTeX: Full
About the test scope

Syntax#

\smqtys*stard<(,)><[,]><{,}><|,|>(a)optional math content

Argspec s d<(,)><[,]><{,}><|,|> — two optional arguments. Reading argspecs

Examples#

\smqty(a & b \\ c & d)
\smqty[a]
\smqty|a|
\smqty*(a)

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

    \smallmatrixquantity is mapped to the same MatrixQuantity implementation with the small=true parameter.

See also#

Test cases#

physics
InputCaseMathJaxKaTeXXeTeX
\smqtyPositive · baselinePassFailPass
\smqty*Positive · vary:s[0]PassFailPass
\smqty (a)Positive · vary:d[1]PassFailPass
\smqty*(a)Positive · maximalPassFailPass
All 27 in Physics: matrices