4

I have the following code \sum_{i<j}^{}\sum Cov(X_i, X_j) which renders

formula rendering

How can I move the i<j subscript to the center underneath the two sigmas (which will result in a "shift")? Preference will be given to the simplest solution.

Arzigoglu
  • 1,348
m33lky
  • 259

2 Answers2

6
\documentclass{article}
\usepackage{amsmath}

\DeclareMathOperator{\Cov}{Cov}
\DeclareMathOperator*{\doublesum}{\sum\sum}

\begin{document}

\[\doublesum_{i<j} \Cov(X_i, X_j)\]

\end{document} 

enter image description here

karlkoeller
  • 124,410
2

You can use \mathop to stack symbols under (as a subscript) or over (as a superscript) math operators:

enter image description here

\documentclass{article}
\usepackage{amsmath}% http://ctan.org/pkg/amsmath
\begin{document}

\[
  \mathop{\sum\sum}_{i < j} \text{Cov}(X_i, X_j)
\]

\end{document} 
Werner
  • 603,163