Skip to content

Instantly share code, notes, and snippets.

@AayushSameerShah
Last active July 24, 2022 09:43
Show Gist options
  • Save AayushSameerShah/16ba38aaef1bd39c646bb967de94d1ce to your computer and use it in GitHub Desktop.
Save AayushSameerShah/16ba38aaef1bd39c646bb967de94d1ce to your computer and use it in GitHub Desktop.
Set perfect limits in the sum in latex jupyer

Many times you want to write the formulae in which the limits need to be written up side and low side of the sigma. But the problem happens when it is not written as expected.

In such times, just add \displaystyle brfore the sum:

The problem:

$$\varrho(\tau) = \frac{ \sum_{t=1}^{T-\tau} (y_t - \mu) (y_{t + \tau} - \mu)} {(T - \tau)\varrho^2}$$

The solution

$$\varrho(\tau) = \frac{\displaystyle \sum_{t=1}^{T-\tau} (y_t - \mu) (y_{t + \tau} - \mu)} {(T - \tau)\varrho^2}$$

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment