Renderer support
| Package | MathJax | KaTeX | XeTeX |
|---|---|---|---|
physics | MathJax: Full | KaTeX: None | XeTeX: Full |
Syntax#
\quantityd<(,)><[,]><{,}><|,|>(a)optional math contentArgspec d<(,)><[,]><{,}><|,|> — one optional argument. Reading argspecs
Examples#
In TeXForm#
TeXForm parses this entry as prefix syntax; the package determines its argument specification.
Collapse quantity to the shorter qty helper.
\quantity(#1) \qty(#1)Equivalent forms#
\qtyexactMathJax 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#
| Input | Case | MathJax | KaTeX | XeTeX |
|---|---|---|---|---|
\quantity | Positive · baseline | Pass | Fail | Pass |
\quantity (a) | Positive · vary:d[0] | Pass | Fail | Pass |