3

How to achieve extensible double-harpoons in the style of the \xleftrightharpoons family of arrows from mathtools, but with both harpoons pointing in the same direction?

enter image description here

Preferably without Tikz.

1 Answer 1

2

Something like this? A quick and dirty method...

\documentclass[12pt]{article}
\usepackage{stackengine}
\usepackage{mathtools}


\newcommand{\xrightharpoonupdown}[2][-12pt]{%
\stackunder[#1]{$\xrightharpoonup{\text{#2}}$}{$\xrightharpoondown{\text{\phantom{#2}}}$}%
}%


\begin{document}


\xrightharpoonupdown{but with longer harpoons}%

\end{document}

enter image description here

Explanation:

Give the text to be harpooned as 2nd argument, in the first optional you can reduce the vertical spacing between the up and the down harpoon. If omitted, a default value of -10pt is used. This could be changed in command definition or when appropiate during usage of the command.

2
  • Ok, that's plausible solution (hadn't thought of using \phantom to hack two extensible harpoons to be of the same length). I'll give it a try. Thanks.
    – Roly
    Commented May 26, 2014 at 12:12
  • 1
    Perhaps you should change to -12pt also, it gives a better impression, in my point of view, the -10pt just were a first guess ;-)
    – user31729
    Commented May 26, 2014 at 12:13

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .