When I want to write limits with single dollar signs the index ($x\to n$) goes after the $\lim$ sign:
But when using double dollar signs the index (correctly) goes below the limit sign:
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?