[Tex/LaTex] how to set vector and tensor symbols with horizontal bars above

tensorvector

(Newbie) hi, how do I produce vector (text symbol(s)) with horizontal bar over it? Better, if possible, would be the \rightharpoonup mark above the letter (or word) that is the vector in question.(hope \rightharpoonup is the correct name for it).

I also have some tensor work to include – is there a package specifically for vector/tensor text?

At the moment I've added the bm package and that fine for bold vector symbol – but I prefer the one described above.
thank you.

Best Answer

You can use the accents package:

\documentclass{article}
\usepackage{amsmath}
\usepackage{accents}

\begin{document}

$\accentset{\rightharpoonup}{x}$

\end{document}

enter image description here