Physics: vectors\vu

\vuCommand

Shorthand physics-package command for a bold unit vector with a hat accent.

\vu{v}
Available in
physics
Kind
prefix
Allowed mode
math
Frequency
Not measured
Commonality
low
Renderer support
PackageMathJaxKaTeXXeTeX
physicsMathJax: FullKaTeX: NoneXeTeX: Full
About the test scope

Syntax#

\vus*starm{a}math content

Argspec s m — one optional and one mandatory argument. Reading argspecs

Examples#

\vu*{v}

In TeXForm#

TeXForm parses this entry as prefix syntax; the package determines its argument specification.

Expands to#

\vu{#1} \hat{\vb{#1}}

If the optional star is present, the template parts are joined with '*', so \vu*{#1} reparses as \hat{\vb*{#1}}.

physics/vu-to-hat-mathbffrom Faithfulrender

Canonicalize vu to an explicit hat-wrapped mathbf form.

\vu{#1} \hat{\mathbf{#1}}

Equivalent forms#

  • \vectorunit{#1}exact
  • \vectorunit*{#1}exact

    Starred long-form equivalent.

  • \hat{\vb{#1}}exact
  • \hat{\vb*{#1}}exact

    Starred form.

See also#

Test cases#

physics
InputCaseMathJaxKaTeXXeTeX
\vu{a}Positive · baselinePassFailPass
\vu*{a}Positive · vary:s[0]PassFailPass
\vu aPositive · bare[1]PassFailPass
All 10 in Physics: vectors