# I want to have '' after sum

\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 ''.

-

## migrated from stackoverflow.comDec 4 '11 at 15:06

This question came from our site for professional and enthusiast programmers.

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 '11 at 16:02

Just use

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

-
thx :) I would have never guessed {}'' – waszak Dec 4 '11 at 12:27
it's just that you now are double-priming the {}- but think about the notation, it is a bit nonstandard – epsilonhalbe Dec 4 '11 at 12:31
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 '11 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 – epsilonhalbe Dec 4 '11 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. – Thorsten Donig Dec 5 '11 at 9:39

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

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