Using amsmath and extarrows packages, we have many extensible arrows. But these arrows look ugly, since some parts in an arrow are boldfaced.

Are there any better-looking extensible arrows?
Using amsmath and extarrows packages, we have many extensible arrows. But these arrows look ugly, since some parts in an arrow are boldfaced.

Are there any better-looking extensible arrows?
This is a substitute for \xrightarrow made with Xy-pic
\documentclass{article}
\usepackage[all,cmtip]{xy}
\newlength{\xywd}
\newcommand{\xyrightarrow}[2][]{%
\sbox{0}{$\scriptstyle#1$}%
\xywd=\wd0
\sbox{0}{$\scriptstyle#2$}%
\ifdim\wd0>\xywd \xywd=\wd0 \fi
\xymatrix@C\dimexpr\xywd+1em\relax{{}\ar[r]^{#2}_{#1}&{}}%
}
\begin{document}
[
X \xyrightarrow[r_1-r_2]{r_2-r_1} Y
]
[
X \xyrightarrow[r_1-r_2+r_3]{r_2-r_1} Y
]
[
X \xyrightarrow{r_2-r_1} Y
]
\end{document}

\xywd instead of \xywd0 in the code above.
– Pedro Sánchez Terraf
Jun 23 '20 at 18:27
xypic, long arrows look better than these. – Z.H. Oct 07 '13 at 09:03tikzorxypicas an operater inside a math formula? It seems not easy. – Z.H. Oct 07 '13 at 09:14