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 $f(x)\xrightarrow[x\to\infty] l$ to denote that a function tends to a certain value. However, this stretches the current line vertically. Is there any way to fix this?

share|improve this question
    
I should add this is a problem when I use it along text, not as a stand-alone equation. –  Fernando Martin Oct 12 '11 at 20:40
add comment

2 Answers

Perhaps you meant to say $f(x) \xrightarrow{x\to\infty} l$ which produces better results.

Otherwise, \scriptstyle does what is asked for, but not sure you'll like the results:

enter image description here

\documentclass{article}
\usepackage{amsmath}
\begin{document}
I'm using $f(x)  \scriptstyle \xrightarrow[x\to\infty] l$ to denote that a function tends to a certain value. However, this stretches the current line vertically. Is there any way to fix this?
\end{document}
share|improve this answer
add comment

This is a bad hack, but it seems to work:

\newcommand{\tendsto}[1]{%
  \xrightarrow{\smash{\raisebox{-2ex}{$\scriptstyle#1$}}}}

$f(x)\tendsto{x\to\infty}l$

You may have to adjust the "2ex" if the symbols used below the arrow are higher.

share|improve this answer
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.