Physics: vectors\vectorunit

\vectorunitCommand

Used in physics notation to denote a bold unit vector with a hat accent.

\vectorunit{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#

\vectorunits*starm{a}math content

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

Examples#

\vectorunit*{v}

In TeXForm#

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

Expands to#

\vectorunit{#1} \hat{\vb{#1}}

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

Equivalent forms#

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

    Starred form.

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

    Starred alias form.

See also#

Test cases#

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