I find the vertical spacing of amsmath
's \xrightarrow
too large for the underset. Is there an easy way to reduce it (i.e. put "below" close to the arrow, in the example)?
\documentclass{minimal}
\usepackage{amsmath}
\begin{document}
\fbox{$\xrightarrow[\fbox{below}]{\fbox{above}}$}
\end{document}
I looked at the arrow definition (ext@arrow
, e.g. discussed in Understanding ext@arrows) and there, \limits^{}_{}
is used.
PS. I am interested in a short and simple solution. I know how to built a new extensible arrow from scratch, but wanted to know if there is an easier solution.
Best Answer
Remedied the valid comment of mh256, creating macro
\xxrightarrow[]{}
that reduces the space of the underset, but allows for the length of the underset.EDITED to make it
\mathrel
and also to use temp\box2
instead of\box0
, which appears to be also used by\xrightarrow
.