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.
article
class instead ofminimal
for MWEs. See also Why should the minimal class be avoided?\mathop{<arrow>}\limits^{<above>}_{<below>}
and where the spacing is hardwired in TeX (based on\fontdimen
parameters of the math extension font).