I want the limits of the sum sign to be placed where I placed the red lines in the photo. This is the line of script I used:
$Result = p + \sum_{i=0}^{n} f(x)$
This is what I get and the red lines is what I want.
Best Answer
The problem is that you're trying to use displaystyle limits in text mode. Which is not that good, as I explain below.
I don't know if it's typographically correct but the code is
$\sum\limits_{i=0}^n f(x)$
The \limits command allows the limits to be positioned above and below the symbol.
The fact that inline math has "text style" limits is just that inline formulas typeset like display style are usually ugly, disrupt the natural flow of the document (the limits usually create a line whose height and depth is bigger than the other ones), and they are not usually as readable as when they are placed in display.
Please be cautious when considering what using "displaystyle limits" in text mode.
In this instance a better approach would be to use mathtools's \mathclap, which provides a centred overlap in math mode. The centred overlap implies a zero-width box containing stuff that overlaps on the left and right:
\documentclass{article}
\usepackage{mathtools}% http://ctan.org/pkg/mathtools
\begin{document}
\begin{align*}
A &= \sum_{n=-\infty}^{+\infty} f(x) \\
B &= \smashoperator[r]{\sum_{n=-\infty}^{+\infty}} f(x) \\
C &= \sum_{\mathclap{n=-\infty}}^{+\infty} f(x) \\
D &= \sum_{\substack{n={}\\-\infty}}^{+\infty} f(x) \\
E &= \sum_{-\infty}^{\infty}\mathop{}_{\mkern-5mu n} f(x)
\end{align*}
\end{document}
Sure mathtools also loads amsmath, but both these provide excellent tools in terms of typesetting mathematical content (and otherwise).
The reason is the different height of the subscripts, t is smaller than k. One way to fix this (not beautiful, I know) is to put an invisible k below the first sum via \vphantom:
Best Answer
The problem is that you're trying to use displaystyle limits in text mode. Which is not that good, as I explain below.
I don't know if it's typographically correct but the code is
The
\limits
command allows the limits to be positioned above and below the symbol.The fact that inline math has "text style" limits is just that inline formulas typeset like display style are usually ugly, disrupt the natural flow of the document (the limits usually create a line whose height and depth is bigger than the other ones), and they are not usually as readable as when they are placed in display.
Please be cautious when considering what using "displaystyle limits" in text mode.