[Tex/LaTex] Write on an Arrow math symbols

amsmathmath-mode

somebody know how to put math symbols on an arrow of given length ?

I know that I can put symbols on arrow using the command:

\xlongrightarrow{\makebox[2cm]{ 123 }}. 

The problem is that I can not put math symbols at the place of '123'.

Thank you very much.

Best Answer

\makekebox turn its content into text mode, so

$\xlongrightarrow{\makebox[2cm]{ $\alpha$ }}$

will do what you like to obtain:

enter image description here

Complete MWE:

\documentclass[margin=3mm]{standalone}
\usepackage{extarrows}

\begin{document}
$\xlongrightarrow{\makebox[2cm]{ $\alpha$ }}$
\end{document}