
Latex command!
Hi everyone!
I need to write text under text like in case of limit (\lim_{n \to \infty}) but I never get it under if I use this commands but beside like in this post $\displaystyle \lim_{n \to \infty}$. May anybody know what I must to do?
Thanks in advance!

\displaystyle \lim_{n \to \infty}
$\displaystyle \displaystyle \lim_{n \to \infty}$

The position of sub and superscripts of operators depends on whether this is a display or an inline formula. In an inline formula, limits are placed in the usual sub and superscript position, while in a display formula they are usually place below or above the operator, though this depends on the operator. The commands \displaystyle and \textstyle force the display or inline math mode. Thus, we have $\displaystyle \sum_{i=1}^n$, $\displaystyle \int_a^b$ in text mode and $\displaystyle \displaystyle\sum_{i=1}^n$, $\displaystyle \displaystyle\int_a^b$ in display mode.
Regardless of text and display modes, the placement of limits can be forced by saying \limits or \nolimits after an operator. Thus we have $\displaystyle \int\limits_a^b$ and $\displaystyle \displaystyle\sum\nolimits_{i=1}^n$. There is also \displaylimits that acts as \limits only in display mode; this is the default behavior.
There are also commands to add limits to things other than operators (sums, integrals, etc.). These are \stackrel to put something above a relation and \overset, \underset, which also work with ordinary symbols and binary operators, e.g., $\displaystyle \overset{*}{X}$ and $\displaystyle \underset{*}{X}$
Finally, one can have multiline limits using the command \substack and the environment subarray: $\displaystyle \displaystyle\sum_{\substack{1\le i\le n\\1\le j\le m}}P(i,j)$.