Renderer support
| Package | MathJax | KaTeX | XeTeX |
|---|---|---|---|
physics | MathJax: Full | KaTeX: None | XeTeX: Full |
Syntax#
\qtyd<(,)><[,]><{,}><|,|>(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.
Equivalent forms#
\quantityexactMathJax 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 |
|---|---|---|---|---|
\qty | Positive · baseline | Pass | Fail | Pass |
\qty (a) | Positive · vary:d[0] | Pass | Fail | Pass |