Physics: quantities\quantity

\quantityCommand

Used in physics-style notation to wrap an expression in automatically chosen fences, e.g. parentheses, brackets, braces, or absolute-value bars, with an empty default when no recognized delimiter follows.

\quantity
Available in
physics
Kind
prefix
Allowed mode
math
Frequency
Not measured
Commonality
low
Renderer support
PackageMathJaxKaTeXXeTeX
physicsMathJax: FullKaTeX: NoneXeTeX: Full
About the test scope

Syntax#

\quantityd<(,)><[,]><{,}><|,|>(a)optional math content

Argspec d<(,)><[,]><{,}><|,|> — one optional argument. Reading argspecs

Examples#

\quantity(a)
\quantity[a]
\quantity{a}
\quantity|a|

In TeXForm#

TeXForm parses this entry as prefix syntax; the package determines its argument specification.

Equivalent forms#

  • \qtyexact

    MathJax maps both names to the same parse method with the same parameters, including the optional paired-delimiter form and the no-argument fallback.

See also#

Test cases#

physics
InputCaseMathJaxKaTeXXeTeX
\quantityPositive · baselinePassFailPass
\quantity (a)Positive · vary:d[0]PassFailPass
All 28 in Physics: quantities