When I want to write limits with single dollar signs the index ($x\to n$) goes after the $\lim$ sign:
$L=\lim_{x\to 0}f(x)$
But when using double dollar signs the index (correctly) goes below the limit sign:
$$L=\lim_{x\to 0}f(x)$$
What's the reason for this difference? How to write the index below limit sign with single dollar signs?
Is this problem only seen in limits?
\lim\limits_{x\to a}
. However it is best to avoid it in typical inline usage. $\endgroup$