4

This question already has an answer here:

How can I make a subscript for sum in latex like the following picture:

enter image description here

I tried \sum_{q_i} but that doesn't make the result I want. It makes the following result: enter image description here

marked as duplicate by Heiko Oberdiek, Thorsten, Kurt, barbara beeton, lockstep Aug 9 '13 at 13:33

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

migrated from stackoverflow.com Aug 9 '13 at 11:14

This question came from our site for professional and enthusiast programmers.

  • Why not? (You did write this in math mode, right?) – Thomas Aug 8 '13 at 18:29
  • yes in math mode. I included a pic for the result – guckogucko Aug 8 '13 at 18:31
  • Welcome to TeX.SX! Your post was migrated here from Stack Overflow. Please register on this site, too, and make sure that both accounts are associated with each other (by using the same OpenID), otherwise you won't be able to comment on or accept answers or edit your question. – Torbjørn T. Aug 9 '13 at 11:21
  • 2
    Related: tex.stackexchange.com/questions/32824/… – Torbjørn T. Aug 9 '13 at 11:24
  • 2
    @ChrisH Don't do that please, rather use \textstyle in \[ .. \] (or some other displayed environment). – Torbjørn T. Aug 9 '13 at 12:26
4

That is expected; it's a matter of inline math mode versus display math mode.

Inline math is meant for small fragments inside the running text, so it is typeset in a compact way, with the subscript to the side of the sum symbol. Inline math is done with $...$.

Display math is meant for larger, standalone equations, and is set in a paragraph of its own. Because it has more space, the subscript can be put underneath the sum symbol. Display math is done with \[...\] or a whole variety of environments.

1

I tried it out rightnow. If you write something like

  \begin{equation}
  \sum_{q_i} {p x r}
  \end{equation}

It should give you the result you do not want to have, but if you enter mathmode in text

 I want to show you this sum $\sum_{q_i} {p x r}$ blabla

Then you would get theresult you want to have.

  • 3
    \textstyle{} and \displaystyle{} will allow you to switch styles in the middle of whatever you are doing. – John Kormylo Aug 9 '13 at 22:59
  • Thanks, didn't know that, but this should solve the problem – Martin Aug 10 '13 at 4:27

Not the answer you're looking for? Browse other questions tagged or ask your own question.