[Tex/LaTex] How to get a limit arrow without modifying the current line’s height

math-modespacing

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?

Best Answer

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}
Related Question