1

I have two categories and one functor in each direction, with relatively long names. I would like to write both functors at the same time, one over a right arrow and another one over a left arrow, so it would be like, from top to bottom, text, left arrow, right arrow and text. It would be something like the first answer to this question How can I label \rightleftarrows above and below?, but more like \xrightarrow would show it, with its length growing to meet the text.

Any help would be appreciated. Thanks a lot!

1 Answers1

2

Maybe the package extarrows is what you are looking for.

% arara: pdflatex

\documentclass{article}
\usepackage{extarrows}

\begin{document}
    \[a \xLeftrightarrow[\text{nur der Mann im Mond schaut zu}]{\text{la li lu}} b\]
\end{document}

enter image description here


I understood you wrong, sorry. Here is some other solution with harpoons:

\documentclass{article}
\usepackage{mathtools}

\begin{document}
    \[a \xrightleftharpoons[\text{nur der Mann im Mond schaut zu}]{\text{la li lu}} b\]
    \[a \xleftrightharpoons[\text{nur der Mann im Mond schaut zu}]{\text{la li lu}} b\]
\end{document}

If you really want to have arrows, you will have to tweak something like here: https://tex.stackexchange.com/a/233898

LaRiFaRi
  • 43,807