Accents\vec

\vecCommand

Used to place an arrow accent over a symbol or grouped expression, especially for vectors.

\vec{v}
Topic
Accents
Available in
base
Kind
prefix
Allowed mode
math
Frequency
1.32% of corpus formulasrank 42 of 263
Commonality
high
Tags
decoration
Renderer support
PackageMathJaxKaTeXXeTeX
baseMathJax: FullKaTeX: FullXeTeX: Full
About the test scope

Syntax#

\vecm{a}math content

Argspec m — one mandatory argument. Reading argspecs

Common tasks#

How to put a vector arrow on a letter#

\vec{v}

How to write a vector from A to B#

\vec is a short accent; for a long run some fonts look cramped.

\vec{AB}

How to write a time derivative of a vector#

\dot{\vec{r}}

In TeXForm#

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

See also#

Test cases#

base
InputCaseMathJaxKaTeXXeTeX
\vec{a}Positive · baselinePassPassPass
\vec aPositive · bare[0]PassPassPass
All 45 in Accents