LaTeX forum ⇒ Math & ScienceAligning 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

Postby learningtex » Fri Nov 16, 2012 5:54 am

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

  1. \documentclass{article}
  2.  
  3. \usepackage[utf8]{inputenc}
  4. \usepackage[T1]{fontenc}
  5. \usepackage{geometry}
  6. \geometry{a4paper}
  7.  
  8. \usepackage[frenchb]{babel}
  9.  
  10. \title{Remaining Maths Homework}
  11. \author{Herp Derp}
  12. \date{15 November 2012}
  13.  
  14. \begin{document}
  15. \maketitle
  16.  
  17. \Large Exercise 5.1 \normalsize
  18. \\
  19. \\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}$
  20.  
  21. \end{document}


And here's the output:

example.PNG
Output
example.PNG (17.14 KiB) Viewed 990 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?

Link:
BBcode: Topic is solved[/url]" title="Click to select post's link in BBcode format" onclick="this.focus();this.select();" />
HTML: Topic is solved</a>" title="Click to select post's link in HTML format" onclick="this.focus();this.select();" />
Hide post links
Show post links

kaiserkarl13
Posts: 579
Joined: Tue Mar 25, 2008 5:02 pm
Location: Columbia, Missouri, USA

Postby kaiserkarl13 » Fri Nov 16, 2012 7:23 am

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.
  1. \documentclass{article}
  2.  
  3. \usepackage[utf8]{inputenc}
  4. \usepackage[T1]{fontenc}
  5. \usepackage{geometry}
  6. \geometry{a4paper}
  7.  
  8. \usepackage[frenchb]{babel}
  9.  
  10. \title{Remaining Maths Homework}
  11. \author{Herp Derp}
  12. \date{15 November 2012}
  13.  
  14. \begin{document}
  15. \maketitle
  16.  
  17. \Large Exercise 5.1 \normalsize
  18. \\
  19. \\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}$
  20.  
  21. Option 1:
  22. \\Q1. (a) The graph of $f(x)$ has a domain $D \in [0,8]$, which is
  23. divided into four rectangles of equal base, $x = 2$. The actual area under the
  24. graph of $f(x)$ is estimated as: \[\sum_{i=1}^{+\infty}{f(x)}\] and \[\int_{x_0}^{x_1}\] \\
  25. Option 2:
  26. \\Q1. (a) The graph of $f(x)$ has a domain $D \in [0,8]$, which is
  27. divided into four rectangles of equal base, $x = 2$. The actual area under the
  28. graph of $f(x)$ is estimated as: $\displaystyle\sum_{i=1}^{+\infty}{f(x)}$ and $\displaystyle\int_{x_0}^{x_1}$ \\
  29. \end{document}

Link:
BBcode:
HTML:
Hide post links
Show post links

learningtex
Posts: 2
Joined: Fri Nov 16, 2012 5:49 am

Postby learningtex » Sat Nov 17, 2012 3:32 am

Thanks, \displaystyle was just what I wanted.

Link:
BBcode:
HTML:
Hide post links
Show post links


Return to “Math & Science”

Who is online

Users browsing this forum: Bing [Bot] and 5 guests