## LaTeX forum ⇒ Math & Science ⇒ Aligning Math Symbols Topic is solved

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
learningtex
Posts: 2
Joined: Fri Nov 16, 2012 5:49 am

### Aligning Math Symbols  Topic is solved

Hi there! I'm a beginner to Latex and need some help with aligning subscripts and superscripts in Maths. Here's what I have:

 \documentclass{article}    \usepackage[utf8]{inputenc}   \usepackage[T1]{fontenc}   \usepackage{geometry}   \geometry{a4paper}    \usepackage[frenchb]{babel}    \title{Remaining Maths Homework}   \author{Herp Derp}   \date{15 November 2012}    \begin{document}   \maketitle \Large Exercise 5.1 \normalsize\\\\Q1. (a) The graph of $f(x)$ has a domain $D \in [0,8]$, which is divided into four rectangles of equal base, $x = 2$. The actual area under the graph of $f(x)$ isestimted as: $\sum_{i=1}^{+\infty}{f(x)}$ and $\int_{x_0}^{x_1}$    \end{document}

And here's the output:

Output
example.PNG (17.14 KiB) Viewed 1012 times

As you can see, the $\infty and i=1$ are to the side of the sigma function and not on top of it. How do I solve this?

kaiserkarl13
Posts: 581
Joined: Tue Mar 25, 2008 5:02 pm
Location: Columbia, Missouri, USA
TeX normally typesets summation and product symbols with the indices on the sides in "text" style math fields, but on top/bottom in "display" style math. You can select a math display with $...$, which is equivalent to the displaymath environment. If you want it in text mode, but still want display-sized symbols, use the \displaystyle command (there is also a \textstyl command). I provide an example of both here.
      \documentclass{article}        \usepackage[utf8]{inputenc}       \usepackage[T1]{fontenc}       \usepackage{geometry}       \geometry{a4paper}        \usepackage[frenchb]{babel}        \title{Remaining Maths Homework}       \author{Herp Derp}       \date{15 November 2012}        \begin{document}       \maketitle      \Large Exercise 5.1 \normalsize     \\     \\Q1. (a) The graph of $f(x)$ has a domain $D \in [0,8]$, which is divided into four rectangles of equal base, $x = 2$. The actual area under the graph of $f(x)$ isestimted [sic] as: $\sum_{i=1}^{+\infty}{f(x)}$ and $\int_{x_0}^{x_1}$ Option 1:     \\Q1. (a) The graph of $f(x)$ has a domain $D \in [0,8]$, which isdivided into four rectangles of equal base, $x = 2$. The actual area under thegraph of $f(x)$ is estimated as: $\sum_{i=1}^{+\infty}{f(x)}$ and $\int_{x_0}^{x_1}$ \\Option 2:     \\Q1. (a) The graph of $f(x)$ has a domain $D \in [0,8]$, which isdivided into four rectangles of equal base, $x = 2$. The actual area under thegraph of $f(x)$ is estimated as: $\displaystyle\sum_{i=1}^{+\infty}{f(x)}$ and $\displaystyle\int_{x_0}^{x_1}$ \\       \end{document}

learningtex
Posts: 2
Joined: Fri Nov 16, 2012 5:49 am
Thanks, \displaystyle was just what I wanted.