6

enter image description here

How do I get such a notation for vectors in LaTeX?

Au101
  • 10,278
lork251
  • 389
  • @nlatexg: Try this in your TeX file: \newcommand{\vect}[1]{\accentset{\rightharpoonup}{#1}} with the package accent – Saravanan Dec 19 '16 at 15:53
  • No it doesn't work. The arrow above AB stays small – lork251 Dec 19 '16 at 16:07
  • answer http://tex.stackexchange.com/questions/96141/how-can-i-make-an-overset-symbol-at-the-same-size-and-height-as-bar-except-with doesn't solve OP problem, she/he actually ask for extensible harpoons, something like as provided by package harpoon. – Zarko Dec 19 '16 at 16:39

1 Answers1

6

See, if this is what you looking for:

\documentclass[preview, margin=3mm]{standalone}
\usepackage{harpoon}% <---

\begin{document}
$\overrightharp{a}$    $\overrightharp{AB}$  
\end{document}

enter image description here

Zarko
  • 296,517