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.

My question is an extension of this one. I have the command

\documentclass{article}
\usepackage{amsmath}
\begin{document}
$a_n \xrightarrow{\scriptscriptstyle n\to\infty} 0$ 
\end{document}

which produces enter image description here.

How can I alter this command (hopefully in a simple way) to get enter image description here, i.e. the label is closer to the arrow, so the command doesn't produce ugly additional space between rows.

share|improve this question
add comment

1 Answer 1

up vote 3 down vote accepted

This is an ugly hack, but it does seem to work:

$a_n \xrightarrow{%
         \raisebox{-2pt}[0pt][0pt]{%
             \ensuremath{\scriptscriptstyle n\to\infty}}} 0$

If you want it to work more generally, you can throw something together using \mathchoice I presume.

share|improve this answer
    
It does seem to work, thank you :). I'll accept the answer tomorrow, in case there are any more suggestions. –  Leon Lampret Sep 23 '11 at 0:17
    
what do the optional arguments in \raisebox{-2pt}[0pt][0pt]{...} do? –  Leon Lampret Sep 23 '11 at 13:44
add comment

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.