[Tex/LaTex] How to change the gap between arrow and text

arrows

\documentclass[fleqn,12pt,a4paper]{article}
\usepackage{chemarrow}
\newcommand\Ra{$\autorightarrow{\scriptsize{Text over arrow}}{} $}
\begin{document}
\Ra 
\end{document}

As shown in the image, is it possible to change the gap between the arrow and the text over the arrow. Thanks for your help.
enter image description here

Best Answer

This can be done using a \raisebox with a negative value.

   \newcommand\Ra{$\autorightarrow{\scriptsize\raisebox{-1.5ex}[0pt][-1.5ex]{Text over arrow}}{} $}

Result: (old on top, new below; with surrounding \fbox)

enter image description here

Related Question