[Tex/LaTex] How to create a zero vector

arrowsmath-modevector

$\vec{0}$ and $\overrightarrow{0}$ generate the following:

pdf output

pdf output

The first arrow is decentered (it assumes an italic font), the second one is clearly too large. How to get an upright version of \vec?

Best Answer

The esvect package provides nice vector arrows in most cases: The command is \vv (not \vec) and it provides a centered, non-slanted (better 'upright') arrow, which is shorter than the arrow given by \overrightarrow.

\documentclass{article}
\usepackage{mathtools}
\usepackage{esvect}


\begin{document}
\begin{tabular}{ll}
esvect:   & $\vv{0}$ \\
amsmath:  & $\overrightarrow{0}$ \\
standard: & $\vec{0}$ 
\end{tabular}

\end{document}

enter image description here

From Bernard's comment: esvect defines 8 different arrow (head) types, which can be chosen by \usepackage[a]{esvect} to \usepackage[h]{esvect}. Omitting the optional argument will use the (default) d variant