enter image description here

\sum_{k=0}^{n} f(x_{k})

I want to change sth in this code to get sth like this image. I have problem where put ''.

  • Welcome to TeX.sx! Your question was migrated here from Stack Overflow. Please register on this site, too, and make sure that both accounts are associated with each other, otherwise you won't be able to comment on or accept answers or edit your question.
    – Werner
    Dec 4, 2011 at 16:02

2 Answers 2


Just use

\sum_{k=0}^{n}{}'' f(x_{k})
  • thx :) I would have never guessed {}''
    – waszak
    Dec 4, 2011 at 12:27
  • it's just that you now are double-priming the {}- but think about the notation, it is a bit nonstandard Dec 4, 2011 at 12:31
  • 2
    With your method, the "double prime" symbols tend to be a bit too low. It's much better to use the command \sideset (see the other answer) for this reason. That said, your code reproduces the image that the OP posted exactly... :-)
    – Mico
    Dec 4, 2011 at 16:38
  • really i - knew about \sideset - but i clearly forgot about it, in this case - the only thing i find a bit awkward is the space between the n and the \sum-symbol Dec 4, 2011 at 17:56
  • @epsilonhalbe: This space is due to the possibility that the upper limit might exceed the width of the sum operator and thus overwrite the added marker. Dec 5, 2011 at 9:39

The \sideset command from the amsmath package is probably more suitable.

\usepackage{mathtools}   % loads »amsmath«

    \sideset{}{''}\sum_{k=0}^{n} f(x_{k})

You must log in to answer this question.