Having sub/super scripts on the side for \sum

When writing \sum_{n=1}^\infty, the subscript and superscript will appear below and above the big Sigma symbol:

Though when writing \Sigma_{n=1}^\infty, they will appear on the sides:

I would like to use the \sum symbol, but having the sub/super script to appear on the side, just like with \Sigma. How do I achieve that? Due to space efficiency.

• \sum\nolimits_{i = 1}^n. Dec 19, 2015 at 21:48
• Dec 19, 2015 at 21:54
• the \limits style is the default in display. the version with limits to the side is the default in text. Dec 19, 2015 at 22:10

You can achieve this by using either \nolimits or \textstyle:

\documentclass{article}
\usepackage{amsmath}

\begin{document}
Here is a sum:
$\sum\nolimits_{i=1}^{n}X_i.$

Here is another sum:
${\textstyle\sum}_{i=1}^{n}X_i.$
\end{document}


• Adding the second option is appreciated. Thank you.
– Dor
Dec 19, 2015 at 21:53