It seems that the commands \xrightarrow
, etc. in mathtools package don't allow me to put text above or below two arrows (\rightrightarrows
). Is there any way to do this with extensible arrows? A crude way would be
\overset{b}{\underset{a}{\rightrightarrows}}
but the arrows are not extensible. For that matter, it also doesn't support \twoheadrightarrow
, etc.
Best Answer
The following example defines
\xtwoheadrightarrow
and\xtwoheadleftarrow
similar to the definitions of\xrightarrow
and\xleftarrow
:The case
\rightrightarrows
/\leftleftarrows
is much more complicate. Before there is a symbol\relbar
that is used for the extensible part of the arrow. But there is no symbol for the double line case. Thus the vertical positions of the lines and their thickness is not known. The following example defines\relrelbar
for this purpose that is composed of\relbar
lowered and raised by the amount given in macro\relrelbarsep
. Therefore this macro needs to be redefined for a different font. The example uses the AMS fonts:The numbers
0579
, ... are four arguments for\ext@arrow
that is defined by packageamsmath
:Some remarks:
\tw@
contains the maximal width of the text below. above and the symbol without text.