I wish to define a LaTeX macro which would more or less function exactly as \overrightarrow except with a harpoon in place of an arrow. I've researched many solutions and none of them quite do the job.
- Tikz solution: looks nice, but is not variable width.
- Overset solution: works if you move the harpoon down, but also not variable width.
- Harpoon package solution: is variable width, but the harpoon is twice as tall as it should be. The shape of the harpoon also varies with its width, instead of keeping the same harpoon head and varying the length of the tail.
- Accent set solution: not variable width.
- XeTeX solution: this looks exactly like what I want, but I am typesetting my document in LaTeX.
Is there a way to reproduce the XeTeX solution in LaTeX, or alter one of the other solutions to fit the properties I want?


\newcommand{\foo}[1]{\overrightsmallharpoon{#1}}, where\foois a more sensible name for the accent. – egreg Jul 12 '17 at 20:08