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

I would like to represent a double sum with i\neq j. So I want two capital sigmas with text i\neq j underneath them. How can I achieve this?

share|improve this question
Oops, I read the question wrongly, sorry for the noise: it doesn't really appear to be a duplicate. – egreg Nov 3 '12 at 18:08
Despite the requested double summation sign, I would usually write such a sum as \( \sum_{i\ne j}... \) – Andrew Swann Nov 3 '12 at 18:20
up vote 22 down vote accepted

\mathop allows you to perform operator-related things (like sub-/superscripting underneath/over top in display style) on non-operator symbols:

enter image description here

\[ \mathop{\sum\sum}_{i\neq j} \]

Using amsmath, it is also possible to declare a new operator, say \sumsum, if you're using this notation on a more frequent basis:

\usepackage{amsmath}% http://ctan.org/pkg/amsmath
\[ \sumsum_{i\neq j} x_{ij} \]
share|improve this answer
Thanks, I ended up doing something similar: \underset{i\neq j}{\sum\sum} – bdeonovic Nov 3 '12 at 22:55
@Benjamin But remember that the classes like \mathop and similar are there for good reasons (spacing, interpretation, ...), therefore it is preffered to use \mathop or \DeclareMathOperator. – yo' Nov 22 '12 at 10:09

Your Answer


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

Not the answer you're looking for? Browse other questions tagged or ask your own question.