Renderer support
| Package | MathJax | KaTeX | XeTeX |
|---|---|---|---|
physics | MathJax: Full | KaTeX: None | XeTeX: Full |
Syntax#
\evaluateds*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#
\evaluated{#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.
Collapse evaluated to the shorter eval helper before eval expansion.
\evaluated{#1}#2 \eval{#1}#2Equivalent forms#
\eval{#1}exactAlias from the same physics command map; the same bare, starred, braced, and ( ... | / [ ... | forms apply after replacing the command name.
See also#
\evalphysics
Test cases#
| Input | Case | MathJax | KaTeX | XeTeX |
|---|---|---|---|---|
\evaluated | Positive · baseline | Pass | Fail | Pass |
\evaluated* | Positive · vary:s[0] | Pass | Fail | Pass |
\evaluated (a| | Positive · vary:d[1] | Pass | Fail | Pass |
\evaluated*(a| | Positive · maximal | Pass | Fail | Pass |