# [Tex/LaTex] How to write a vector with an underline instead of an arrow

math-modevector

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?

\documentclass[a4paper,11pt]{article}

\begin{document}

\vec{x}

\end{document}


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):

## Code:

\documentclass{article}
\usepackage{amsmath}

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

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