# Problem with long limits in \lim command [duplicate]

This question already has an answer here:

When I write a long limit there is a big gap between the limit and the function. How can I fix this? Furthermore is there a way to make the limits smaller so as not to be longer than the limit symbol? Also why is that gap there and that size difference between the length of the symbol and the limit under it? Shouldn't all be under it?

\documentclass[12pt]{article}
\usepackage{amsmath}
\usepackage{unicode-math}
\begin{document}

$\displaystyle \lim_{n\to +\infty}x(n)$

\end{document}


-

## marked as duplicate by Werner, Guido, Jesse, Adam Liter, Sean AllredApr 10 '14 at 5:58

That question doesn't answer mine. Just a fraction of it. –  Adam Apr 10 '14 at 3:16
Does Peter's answer answer your question? I would discourage fiddling with the size of the subscript... –  Werner Apr 10 '14 at 3:19
...you could try \scripscriptstyle... –  Werner Apr 10 '14 at 3:38
Thank you! And yes Peter's answer is great. –  Adam Apr 11 '14 at 2:35

You can use \mathclap from the mathtools package. Altough I would not recommend it, you can resize the subscript via the solutions from Reducing font size in equation:

## Code

\documentclass[12pt]{article}
\usepackage{mathtools}
\usepackage{graphicx}
\usepackage{calc}

% http://tex.stackexchange.com/questions/60453/reducing-font-size-in-equation/
\newcommand*{\Scale}[2][4]{\scalebox{#1}{$#2$}}%
\newcommand*{\Resize}[2]{\resizebox{#1}{!}{$#2$}}%

\begin{document}
\noindent
Without \verb|\mathclap|:
$\lim_{n\to +\infty}x(n)$
But with \verb|\mathclap|::
$\lim_{\mathclap{n \to +\infty}}x(n)$
Using \verb|\scriptstyle| to resize:
$\lim_{\scriptscriptstyle n \to +\infty} x(n)$
Using \verb|\Scale|
$\lim_{\Scale[0.5]{n \to +\infty}} x(n)$
Using \verb|\Resize|
$\lim_{\Resize{\widthof{\lim{}}}{n \to +\infty}} x(n)$
\end{document}

-
Thank you very helpful! Is it possible to make the limits to start at the beggining of the lim symbol and not ahead of it? I mean not to be centered the lim symbol and the limits. –  Adam Apr 11 '14 at 2:32
@Adam: I don't know how to do that, but I think that should be a separate question. –  Peter Grill Apr 11 '14 at 18:44
Ok thank you very much. –  Adam Apr 14 '14 at 15:04