How to Force Limits to Be Above/Below Integral in LaTeX?

  • Context: LaTeX 
  • Thread starter Thread starter Kurret
  • Start date Start date
  • Tags Tags
    Latex Text
Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
3 replies · 19K views
Kurret
Messages
141
Reaction score
0
Sometimes when I write an integral or sum the limits are not written out under and above the integral/sum sign, but on the right making the total symbol rather big. I have not cared about this earlier, but this time it makes the equation so big that it doesn't fit the paper. Is there some way to fix this, to "force" the text in the limits to be below/above the integral symbol??
 
Physics news on Phys.org
You could try writing \displaystyle before the integral or sum. This sort of forces LaTeX to revert to how the equation would appear when writing between \begin[equation] tags. The default behavior of LaTeX is to make the integrals smaller and have the summation index to the right to have it all fit in one line.
 
You can control the positioning explicitly with

\sum\limits_{whatever}^{whatever} % positioned above and below
\sum\nolimits_{whatever}^{whatever} % positioned to the right

As metaleer said, the default depends on whether or not you are in displayed math or not, but changing that might affect other formatting as well.