TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

share|improve this question

migrated from stackoverflow.com Dec 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
up vote 8 down vote accepted

Just use

\sum_{k=0}^{n}{}'' f(x_{k})
share|improve this answer
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.

\usepackage{mathtools}   % loads »amsmath«

    \sideset{}{''}\sum_{k=0}^{n} f(x_{k})
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.