TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I recently begun to worry about using \vec on numbers. The arrow is both off-center and slanted, which only works for italics. Is there a simple command to typeset number vectors properly?

$\vec{x}$ % ok
$\vec{0}$ % not ok


share|improve this question
Welcome to TeX.SX! You can have a look at our starter guide to familiarize yourself further with our format. It is usually best to post a complete compilable document, in this case that would remove any ambiguity about which fonts you are using. – Andrew Swann Oct 27 '13 at 9:02
up vote 6 down vote accepted

If you are prepared to compile with lualatex then you can use the unicode-math package:

Sample output



\( \vec x \)

\( \vec 0 \)

Depending on your text font, in pdflatex you could use the package MnSymbol, this fits with Minion Pro and related fonts.

share|improve this answer

Using the package esvect, you get the new command \vv{}, which not only solves your problem of slanted arrow, but can also be used for vectors above multiple letters. The package takes a letter (from a to h) as an option to customize the arrow type.


Preview of the use of the esvect package

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.