Using harpoon vector symbol in LaTeX

My favorite vector symbol is a harpoon, but the harpoon package defaults to text mode, which will fail when math characters like ell are used in the math mode.

putting harpoon vector symbol in Latex

in document header

\usepackage{harpoon}
\newcommand*{\vect}[1]{\overrightharp{\ensuremath{#1}}}

in document body where desired.

$\vect{x}$

reference

Categories:

Updated: