TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I would like to put something at the top of the \longrightarrow, something like \longrightarrow^{k\rightarrow\infty}. However, instead of putting k\rightarrow\infty on the top right corner, I would like to put it in the middle on the top of \longrightarrow. Could someone help me?

share|improve this question
up vote 19 down vote accepted

In this instance, I think \xrightarrow would suit you better. Here's an example using the former, and the traditional \overset from amsmath:

enter image description here

\usepackage{amsmath}% http://ctan.org/pkg/amsmath
  \mathcal{X}\overset{k\rightarrow\infty}{\longrightarrow}\mathcal{Y} \qquad 

\xrightarrow{<stuff>} is an extensible arrow, which conforms in length to the overset argument <stuff>.

share|improve this answer
Thanks a lot! That's exactly what I wanted! – Paul Feb 27 '12 at 6:45



enter image description here

Alternatively, if you want the long arrow to stretch you may prefer


enter image description here

share|improve this answer
Thank you for your answer. However, I can accept only one answer. Anyway, thank you! – Paul Feb 27 '12 at 6:46

There is a great commend that allow you to put something on and under the \longrightarrow:

x ‎‎‎‎‎‎‎‎‎‎\und‎erset{down‎}{‎‎‎‎\ov‎‎erset{up‎}‎{‎‎\l‎ongrightarrow‎}}‎ y

I hope this will be helpful.

share|improve this answer
This is already covered in the other answers. – Werner Jan 29 at 21:45

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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