Renderer support
| Package | MathJax | KaTeX | XeTeX |
|---|---|---|---|
physics | MathJax: Full | KaTeX: None | XeTeX: Full |
Syntax#
\evals*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#
\eval{#1} \left.#1\vphantom{\int}\right|The source also rewrites the bare form to \left.\vphantom{\int}\right|, and the starred braced form uses \smash{#1}. The ( ... | and [ ... | forms are handled via an auto-open stack item rather than string replacement.
Expand eval notation to the explicit fence-and-bar form.
\eval{#1}#2 \left.#1\vphantom{\int}\right|#2Equivalent forms#
\evaluated{#1}exactAlias from the same physics command map; the same bare, starred, braced, and ( ... | / [ ... | forms apply after replacing the command name.
See also#
\evaluatedphysics
Test cases#
| Input | Case | MathJax | KaTeX | XeTeX |
|---|---|---|---|---|
\eval | Positive · baseline | Pass | Fail | Pass |
\eval* | Positive · vary:s[0] | Pass | Fail | Pass |
\eval (a| | Positive · vary:d[1] | Pass | Fail | Pass |
\eval*(a| | Positive · maximal | Pass | Fail | Pass |