I'd like a left/right harpoon arrow with text above the arrow.
This is the best I have so far, but I'd like the size of the arrow to be dynamic according to the text size.
\documentclass[12pt]{article}
\usepackage{amsmath, amssymb}
\usepackage{stackrel}
\newcommand{\lrhup}[2]{\ooalign{$#1\leftharpoonup$\cr$#1\rightharpoondown$\cr}}
\newcommand{\hpn}{\mathrel{\mathpalette\lrhup\relax}}
\begin{document}
$\stackrel{ABC}{\hpn}$
\end{document}
EDIT: I'm also interested in creating this double sided harpoon, but with fixed width, so "ABC" and "A" above the arrow would produce the same arrow, like the above example, but still somewhat wider.




mathtoolsalready comes with an extended version\xrightleftharpoons[...]{...}. There are two horizontal lines, though. If you just want one, maybe you could look up the definitions of these things and modify them. โ Oct 05 '18 at 17:46