label double arrows in both directions

2,436

The excellent Mathmode document explains how to make extensible arrows of all kinds (§38; pp.78-79). Here is an xleftrightarrow:

\documentclass{article}
\usepackage{mathtools, amssymb}

\makeatletter
\newcommand\xlongleftrightarrow[2][]{%
\ext@arrow 0059{\longleftrightarrowfill@}{#1}{#2}%
}
\def\longleftrightarrowfill@{%
\arrowfill@ ← \relbar → }
\makeatother

\begin{document}

\begin{equation*}
  A \xlongleftrightarrow[\quadα\quad]{γ\quadχ}B%
  \xlongleftrightarrow[\alpha]{γ} C \xlongleftrightarrow[ζ\,η\,θ\,ι\,\varkappa]{\,α\,β\,γ\,δ\,ε\,}D
\end{equation*}

\end{document} 

enter image description here

Share:
2,436

Related videos on Youtube

User1291
Author by

User1291

Updated on March 05, 2020

Comments

  • User1291
    User1291 over 3 years

    How can I do something like this

    $L_1 \xrightarrow[\alpha]{\xleftarrow{\gamma}}L_2$
    

    where both arrows are of the same length?

    • Henri Menke
      Henri Menke over 7 years
      Is $L_1 \xleftrightharpoons[\gamma]{\alpha} L_2$ acceptable? (might need the mathtools package instead of amsmath)
    • User1291
      User1291 over 7 years
      @HenriMenke Good call, but unfortunately not in this particular case. I'm trying to get that into Freeplane which - unfortuantely - does not come with mathtools (or at least I have not yet found an option that would allow me to use xleftrightharpoons).
  • User1291
    User1291 over 7 years
    Thank you. But I'd prefer two arrows to avoid ambiguity. Doesn't have to be straight arrows, if that helps.
  • Bernard
    Bernard over 7 years
    It seems I had misunderstood what you were asking for…
  • Steven B. Segletes
    Steven B. Segletes over 7 years
    Perhaps the OP wants left/right harpoons?
  • Bernard
    Bernard over 7 years
    I really have no idea.