I would like to have several subscripts in my sum, like "sum over all i but not for i = 3". I have tried using \subscript from amsmath but failed with undefined control sequence. I've also failed to use the subarray environment. Please tell me what is a step by step proper way to have several subscripts?


1 Answer 1

% arara: lualatex

\usepackage{mathtools} % amsmath plus some more features...

\[\text{you may write }\sum_{i\mid i\neq 3} x_i\text{ or your idea } \sum_{\mathclap{\substack{\text{over all }i\\\text{but not }i=3}}}x_i\]

enter image description here

Not the answer you're looking for? Browse other questions tagged .