There are a few articles on how to do this for left arrow or right arrow but the method doesn't work for \leftrightarrow
.
What I want is to write a \longleftrightarrow
with “DFT” above it.
I've tried:
\longleftrightarrow{\text{DFT}}
\longleftrightarrow^{DFT}
\xlongleftrightarrow{\text{DFT}}
\longleftrightarrow\limits^{DFT}
None has worked.
Best Answer
You can define an extensible "leftright arrow" by the method explained in Section 38 in
Mathmode.pdf
by Herber Voß. You can read it withtexdoc mathmode
on your machine or via this link.The optional argument to
\xleftrightarrow
is for a "under label", so\xleftrightarrow[xyz]{}
will havexyz
under the arrow, while\xleftrightarrow[xyz]{abc}
will haveabc
over andxyz
under the arrow.