This is my code:


     $${r \choose r} + {r+1 \choose r} + {r+1 \choose r} + ..... + {n 
    \choose r} = {n+1 \choose r+1}   $$

  we will prove this by using induction on n. \\
   $$\sum_{n=1}^{\infty} 2^{-n} = 1$$

as you can see in the picture it's not being displayed for some reason. Can someone help?

N.B: the stuff i wrote is far from done so don't judge me on that one :D


  • 1
    You use verbatim, which displays code, not the result. – TeXnician Dec 3 '17 at 11:00
  • how can i fix that? – Does it matter Dec 3 '17 at 11:00
  • 4
    What do you want to fix? Don't use verbatim? Or do you want the code printed next to the output? Do you want to increase the math font size only for that part? What is your question? – TeXnician Dec 3 '17 at 11:02
  • 1
    in addition to other comments, never use \\ before a math display. – David Carlisle Dec 3 '17 at 17:34
  • 1
    it destroys the layout, you should never use \\ at the end of any paragraph (including the partial paragraph before a display) you will get a spurious "white " line of the paragraph which stops the display adapting to the real last line of the paragraph and will give bad line and page breaking behaviour. – David Carlisle Dec 3 '17 at 18:08

it is fixed by removing verbatim as @TeXnician suggested and doing the following

{\large$${r \choose r} + {r+1 \choose r} + {r+1 \choose r} + ..... + {n 
\choose r} = {n+1 \choose r+1}   $$}:
  • 2
    Note that you're using plain TeX syntax here, in your LaTeX document, see for example Why is \[ … \] preferable to $$?. I think \[ \binom{r}{r} + \binom{r+1}{r} + \binom{r+1}{r} + \dots + \binom{n}{r} = \binom{n+1}{r+1} \] would be better. – Torbjørn T. Dec 3 '17 at 13:07

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.