5

I have a summation with long limits, I would like to specify the position at which I write the limits, is it possible?

Here is my code:

\documentclass{article}
\usepackage{newtxtext,newtxmath}
\begin{document}
\[\sum_\nolimits{t=i-r_{i}+d_j+1}^{r_i+d_i-1}f(t)\]
\end{document}

Using \limits:

\documentclass{article}
\usepackage{newtxtext,newtxmath}
\begin{document}
\[\sum\limits_{t=i-r_{i}+d_j+1}^{r_i+d_i-1}f(t)\]
\end{document}

but this is no looking good for me.

enter image description here

Can I specify the position at which I start the limits? Say for example, at the middle of the symbol sum I put the limits?

Something like this: enter image description here

1
  • 1
    Side note, but I love your profile picture LOL
    – K Split X
    Commented Nov 29, 2018 at 21:56

1 Answer 1

11

With the mathtools package:

\documentclass{article}
\usepackage{newtxtext,newtxmath}

\usepackage{mathtools}

\begin{document}
\[
\sum\limits_{\mathmakebox[1em][l]{t=i-r_{i}+d_j+1}}^{\mathmakebox[1em][l]{r_i+d_i-1}}f(t)
\]
\end{document}

enter image description here

(Change 1em to change the position)

You must log in to answer this question.

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