Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

LaTeX: How to adjust how the Sum symbol turns out

Tags:

latex

Not sure if LaTeX counts as programming, or if my question even makes sense, but I have this LaTeX expression (or what you call it):

\sum_{k=1}^n k^2 = 1+4+9+\ldots +n^2 = \frac{1}{3}n^3 + \frac{1}{2}n^2 + \frac{1}{6}n 

The problem is that the k=1 and n comes next to, i.e. after, the sum symbol, instead of above and below it. Is there a way I can change this? I have tried to show visually what I mean below. The sum symbol represented as Xs :

 n XXX          XXX n XXX    vs    XXX XXX          XXX k=1 k=1 

I want the first kind, but am getting the second.

like image 817
Svish Avatar asked Sep 24 '09 11:09

Svish


People also ask

How do you make the sum symbol in LaTeX?

Sums and products Like integral, sum expression can be added using the \sum_{lower}^{upper} command. In similar way you can obtain expression with product of a sequence of factors using the \prod_{lower}^{upper} command.

How do you increase the size of a summation in LaTeX?

If you're willing to use the Mathtime Professional II font package, you could use its \xl\sum , \XL\sum , \XXL\sum etc commands to get larger summation symbols.

How do you write capital Sigma in LaTeX?

Use as \bm{\Sigma} .


1 Answers

Try

\sum\limits_{k=1}^n k^2 

if you want the sum limits to appear above and below the sum sign in an inline equation.

like image 124
Martin B Avatar answered Oct 21 '22 09:10

Martin B