$\vec{0}$
and $\overrightarrow{0}$
generate the following:
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
?
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It only takes a minute to sign up.
Sign up to join this communityThe 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}
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
\overrightarrow
isn't the right answer in any event. what is really needed is an arrow with an "upright" (e.g. "not italic") arrowhead. something to think about.
Sep 6, 2015 at 13:02
May be for this particular case have \0
defined
\newcommand\0{\kern-1.2pt\vec{\kern1.2pt 0}}
In that case whatever definition you choose, you can change it at the end if there's a more practical way.
\0
looks strange, but seems to work (+1)
\0
and then uses it along the document, at the end he can choose wether he prefers \vv{0}
or any other definition.