Is there a way to modify sum so that \sum_{...} behaves as \sum_{\substack{...}}? It is of course possible to have a command containing the underscore, but I'm interested in if the underscore can be preserved.

  • Are you able and willing to compile your document with LuaLaTeX?
    – Mico
    Commented Jun 12 at 19:06

1 Answer 1


I think something like this should work. My guess is it will break something...





$abc\sum^\infty_{x\in X} def\sum_{x\in X\\ x\in X}^\infty ghi$

\[abc\sum_{x\in X}^\infty def\sum_{x\in X\\ x\in X}^\infty ghi\]


You must log in to answer this question.

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