Renderer support
| Package | MathJax | KaTeX | XeTeX |
|---|---|---|---|
physics | MathJax: Full | KaTeX: None | XeTeX: Full |
Syntax#
\vectorarrows*starm{a}math contentArgspec s m — one optional and one mandatory argument. Reading argspecs
Examples#
In TeXForm#
TeXForm parses this entry as prefix syntax; the package determines its argument specification.
Expands to#
\vectorarrow{#1} \vec{\vb{#1}}If the optional star is present, the template parts are joined with '*', so \vectorarrow*{#1} reparses as \vec{\vb*{#1}}.
Collapse vectorarrow to the short va helper.
\vectorarrow{#1} \va{#1}Equivalent forms#
\vec{\vb{#1}}exact\vec{\vb*{#1}}exactStarred form.
\va{#1}exact\va*{#1}exactStarred alias form.
See also#
\vaphysics\vectorunitphysics\vuphysics
Test cases#
| Input | Case | MathJax | KaTeX | XeTeX |
|---|---|---|---|---|
\vectorarrow{a} | Positive · baseline | Pass | Fail | Pass |
\vectorarrow*{a} | Positive · vary:s[0] | Pass | Fail | Pass |
\vectorarrow a | Positive · bare[1] | Pass | Fail | Pass |