# How to write limits with single dollar signs?

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?

• In mathematical typography both versions that you're seeing are correct in place. Inline formulae (those produced by the single dollar sign enclosures) do not have as much space as display-style (double dollar sign, on a line of their own) formulae so the limits are conventionally displayed differently. Oct 15 at 8:18
• If you really want that use \lim\limits_{x\to a} . However it is best to avoid it in typical inline usage.
– Paramanand Singh Mod
Oct 15 at 9:03
• Or, you could use \displaystyle\limit_{x\to a} inside single dollar signs – but I agree with those who advise against it. Oct 15 at 11:49
• This adjustment occurs whenever the bottom parameter could be placed either on the side or right below the operation. For example, consider $\sup_{x \in A}f(x)$ and $$\sup_{x \in A} f(x).$$ The problem is not confined only to limits. Oct 15 at 14:03

What they said in the comments. Writing $$L=\lim_\limits{x\to 0}f(x)$$ as in-line text disrupts the line spacing.