I am trying to declare a new command using the following string:
\newcommand{\to8}[1]{\xrightarrow{\mathmakebox[0.8cm]{#1}}}
but the compiler returns many errors. I just don't understand why if I write
\xrightarrow{\mathmakebox[0.8cm]{iiiii}}
in the math mode the compiler returns no error but the compile does not allow it when I want to define it as a new command?
