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'm using the command \xrightarrow{}[] in a two column document. The problem is that the string above the arrow is too long and the arrow ends outside the column. Is there a way to "split" the arrow over two different lines?

share|improve this question
    
You can't really split a single symbol like that. And I'm not sure it would be a good idea to do so anyway. –  Seamus Jul 13 '12 at 14:31
    
But you probably can split in two lines the text over the arrow –  JLDiaz Jul 13 '12 at 14:59
    
Thanks Seamus and JLDiaz for your answers! Do you know how to split in two lines the text over the arrow??? Because \xrightarrow{text1 \\ text2}[] is no effective. –  taksun Jul 13 '12 at 15:06

1 Answer 1

up vote 5 down vote accepted

In general, to split the index below or above a \sum, or similar operator, use \substack from the amsmath package (or one of the other ams paclages, I'm not sure).

\documentclass{amsart}
\begin{document}
\[
a \xrightarrow{\substack{x \to 0 \\ y \to 0}} b   
\]
\end{document} 
share|improve this answer
    
Thank you very much Bruno! I think this is a very helpful solution! –  taksun Jul 13 '12 at 15:32

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.