0

I have some critical problem writting series in compact notation, the problem is

Whenever I write the series in compact notation like

$\sum_{j=1}^{j=10}2^j$

The above series in enclosed just in two dollar sign, then summation looks likeenter image description here

When I enclose it in four dollars signs two before and two after the summation signs, then upper and lower indices just appear above and below, but then it comes to the center of new line, which I do not want. How to get the upper and lower indices just above the summation, instead of eclosing in four dollars signs getting it in center of newline.

10
  • That code does not give that image. Please provide a full minimal example instead of a sniplet like this can we cannot use for anything.
    – daleif
    Jul 2 '20 at 10:52
  • 1
    Additionally the bibtex tag is not relevant for your question'
    – daleif
    Jul 2 '20 at 10:53
  • @daleif Yes sir you are correct the code does not give the image i shared. I was just sharing sample, that it do like that image
    – Noor Aslam
    Jul 2 '20 at 11:15
  • 2
    As long as you do not provide any (complete) code that shows your problem we cannot help you.
    – daleif
    Jul 2 '20 at 11:40
  • 3
    you can use $\sum\limits_{j=1}^{j=10}2^j$, but inside a line that is not good style. Jul 2 '20 at 11:55
1

Use \limits: $\sum\limits_{j=1}^{j=10}2^j$.

1
  • 2
    That is actually not relevant in this case. The user had errors in their document and thus the choices LaTeX made to finish the compilation was wrong
    – daleif
    Jul 2 '20 at 12:01
2

From the chat we can see that the OP had an error in their code. One should never ignore errors in LaTeX

In most LaTeX editors LaTeX runs in a mode where it always finish. In this case if there is an error then LaTeX will attempt to make a good guess and move on. These guesses are of course not always right. In the end one can therefore end up with a PDF file where things are not formatted correctly. This is what happend in this case.

Again: never ignore compilation errors.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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