Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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

2 Answers 2

up vote 7 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

\documentclass{article}
\usepackage{amsmath}% http://ctan.org/pkg/amsmath
\begin{document}    
\[
  \mathcal{X}\overset{k\rightarrow\infty}{\longrightarrow}\mathcal{Y} \qquad 
  \mathcal{X}\xrightarrow{k\rightarrow\infty}\mathcal{Y}
\]
\end{document}

\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

Use

\stackrel{k\rightarrow\infty}{\longrightarrow}

enter image description here

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

\xrightarrow{k\rightarrow\infty}

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

Your Answer

 
discard

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.