I don't like the way the vector with an arrow $\vec{x}$ looks. I would prefer to indicate it with a line underline but when I google it nothing comes up to show me how to do it. Does anyone know?




  • 1
    Welcome to TeX.sx! Please add a minimal working example (MWE) that illustrates your problem.
    – Mensch
    Commented Oct 7, 2012 at 19:53
  • I did but someone edited it out.
    – Magpie
    Commented Oct 7, 2012 at 20:30
  • 1
    the macro itself is not an MWE. It is customary here to include the simplest document starting from \documentclass{...} ... \end{document} such that users can copy/paste your code and work on it directly.
    – percusse
    Commented Oct 7, 2012 at 21:05

2 Answers 2


Here is a comparison of a few techniques to represent a vector (not sure about the \overline, \underline ones as I don't think that that is standard usage):

enter image description here



$\vec{x}$  $\overline{x}$  $\underline{x}$  $\mathbf{x}$

$\vec{\mathbf{x}}$  $\overline{\mathbf{x}}$  $\underline{\mathbf{x}}$ 
  • 3
    I really dislike using \mathbf since the font changes to upright. I want my vectors italic according to ISO 80000-2. Previously I have used the Boldmath bm package, now I use isomath for this. Commented Jul 25, 2015 at 20:08
  • @MartinUeding: I am not familiar with isomath. Perhaps you should post an answer. Commented Jul 26, 2015 at 1:42
  • Can you underline a single blank space in an align (math mode)?
    – Jeff
    Commented Apr 8, 2016 at 0:06
  • @Jeff: Should be able to. Try using \underline{\phantom{\space}}. Otherwise, I'd suggest posting a new question. Commented Apr 9, 2016 at 1:17

You can renew the command \vec.


In this case, if you use \vec your vector will be underlined. If you change mind and you want to use a dot or whatever, you can change the definition and all your \vec on the document will automatically change in the next compilation.



   \vec{x} = \cdots % "x" will be underlined

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .