Renderer support
| Package | MathJax | KaTeX | XeTeX |
|---|---|---|---|
physics | MathJax: Full | KaTeX: None | XeTeX: Full |
Syntax#
\divergenced<(,)><[,]><{,}>(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.
Expands to#
\divergence \vnabla\vdotIf followed by {...}, it expands to \vnabla\vdot \left\{ ... \right\} or \vnabla\vdot { ... } depending on fencing.
Equivalent forms#
\divexactBoth names map to the same physics-package VectorOperator entry with operator
\\vnabla\\vdot.\vnabla\vdotapproximateThis produces the same operator tokens, but it does not include the helper's special handling for an immediately following ( or [.
See also#
Test cases#
| Input | Case | MathJax | KaTeX | XeTeX |
|---|---|---|---|---|
\divergence | Positive · baseline | Pass | Fail | Pass |
\divergence (a) | Positive · vary:d[0] | Pass | Fail | Pass |