0

I have the following document. As you see after compiling, the subscript b is almost lies on the arrow. It should be upper. What are the way to fix it. An alternative solution is also welcomed.

\documentclass{article}
\usepackage{amsmath}

\begin{document}
$X\overset{f_b}{\rightarrow}Y$
\end{document}
  • 1
    I'd use the \xrightarow command from the mathtools package. – user121799 Jan 11 '18 at 13:37
  • 1
    \xrightarrow is also part of amsmath: $X\xrightarrow{f_b}Y$ – Steven B. Segletes Jan 11 '18 at 13:42
2

Here is an alternative solution: use the \xrightarrow command. (Thanks to egreg and Steven B. Segletes.)

\documentclass{article}
\usepackage{amsmath}
\begin{document}
$X\xrightarrow{f_b}Y$
\end{document}

enter image description here

  • Thanks, this solves the problem. Let me wait to have alternative solutions before accepting your answer. – Name Jan 11 '18 at 13:45
  • @egreg Mille grazie! – user121799 Jan 11 '18 at 13:50

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.