I am trying to include a summation in a paper. I was able to get it to work using this code orignially:

$$\sum_{r=1}^{\infty} \frac{1}{r^{n}} = 1 + \frac{1}{2^n} + \frac{1}{3^n} + ... + \frac{1}{r^n}$$

However, I had wanted everything in the equation to be larger overall. I found another post on here that answered that exact question but I keep getting an error when I run it and I've checked it over several times and can't figure out what is going wrong. The code and error are listed below. I am also using the \relsize package for the larger code.


"...larger{‎‎\sum}}_{r=1}^{\infty‎}\frac{1}{r^n} = ‎1 + \frac{1}..."


 $\mathlarger{\mathlarger{‎‎\sum}}_{r=1}^{\infty‎}\frac{1}{r^n} = ‎1 + \frac{1}{2^n} + \frac{1}{3^n} + ... + \frac{1}{r^n}$  

Any feedback would be appreciated.

  • 4
    Using center for equations is wrong, as also is using $$.
    – egreg
    Apr 29, 2019 at 23:03

2 Answers 2


First, as @egreg said, don't use center for equations and $$ is obsolete, use \[ .. \] instead. Second, you seem to have copy-pasted the formula from somewhere and there have been hidden unicode characters at different places; before \sum, after \infty and before 1, remove these and the formula will compile successfully.


\mathlarger{\mathlarger{\sum}}_{r=1}^{\infty} \frac{1}{r^{n}} = 1 + \frac{1}{2^n} + \frac{1}{3^n} + ... + \frac{1}{r^n}

  • Thank you! This solved the problem. Apr 29, 2019 at 23:17

enter image description here
The request was to increase size overall (not just the sum part) allowing for multiple expansion

$\mathop{\mathlarger{\sum_{r=1}^{\infty} \frac{1}{r^{n}} = 1 + \frac{1}{2^n} + \frac{1}{3^n} + ... + \frac{1}{r^n}}}$

$\mathop{\mathlarger{\mathlarger{\sum_{r=1}^{\infty} \frac{1}{r^{n}} = 1 + \frac{1}{2^n} + \frac{1}{3^n} + ... + \frac{1}{r^n}}}}$

$\mathop{\mathlarger{\mathlarger{\mathlarger{\sum_{r=1}^{\infty} \frac{1}{r^{n}} = 1 + \frac{1}{2^n} + \frac{1}{3^n} + ... + \frac{1}{r^n}}}}}$

Note if using exscale and amsmath then they should be loaded in that order see Compatibility between amsmath and exscale


I do not know if the order for relsize is important, there are mixed answers and comments for its efficacy in different scenarios, however the nested and repeated use of \mathlarger was shown to benefit from the application of exscale. In that solution the \mathop{whole definition} was proposed, I ( a cut and paste advocate) followed that proposal. However note David Carlisle (who has much experience of such usage) has questioned if that is advisable hence it may not be necessary and could be dropped in many cases.

  • \mathop around the whole expression? Apr 30, 2019 at 7:04

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .