0

Following directly on from the question https://tex.stackexchange.com/questions/454010/left-right-harpoon-arrow-with-text/651690#651690" and referring to the images below (@egreg's image in the referenced answer), I'm just wondering if this can be done with \leftrightharpoons?

Egreg's photo

How can I put text above the \leftrightharpoons which can be made as long as the harpoons without compromising the visual appeal of it (i.e. by not having the width of the text longer or shorter than the double harpoons)?

user202729
  • 7,143
Hendrix13
  • 105

1 Answers1

2

Use "mathtools" package

\documentclass[12pt]{article} 
\usepackage{amsmath, amssymb}
\usepackage{mathtools}

\begin{document} $$ A \xleftrightharpoons[abcde]{fghij}B$$ \end{document}

enter image description here

CrocoDuck
  • 3,875