[Tex/LaTex] Vector: Bold and arrow sign on top

vector

Consider I have a vector x containing different x_i values. I want x to be both blond and have arrow sign on top. But if I use $\vv\textbf{x}}$ the font of x would be different from the fonts of elements,x_i, in the vector.

Question: How can I define a bold vector x that has arrow on top and has the same font as the element x_i

Best Answer

\mathbf seems to be wrong for vector symbols, at least in conjunction with esvect package style vectors (\vv) command.

By the way: esvect provides eight different styles of arrows to be selected with \usepackage[a]{esvect} up to \usepackage[h]{esvect}. [d] is default.

\documentclass{article}

\usepackage{mathtools}
\usepackage{bm}
\usepackage{esvect}


\begin{document}


$\vv{\textbf{x}} \longrightarrow$ wrong

$\vv{\mathbf{x}} \longrightarrow$ still wrong

$\vv{\bm{x}} \longrightarrow$ correct


\end{document}

enter image description here