With the aligned environment one can split equations across multiple lines. When using substack, more space might be required by a line, shifting any subsequent line further:

    F(M) = \bigcup_{\substack{x, y \in M\\ x \neq y}} \big\{\{x,y\} \mid& \text{long condition 1},\\
  & \text{long condition 2} \big\}

vertical space due to substack

Is there a way to remove or ignore the vertical space occupied by the substack (indicated by the red arrow)?

1 Answer 1


You could \smash the \substack but in this case I would simply use a different arrangement for the aligned environment.




F(M) = \bigcup_{\substack{x, y \in M\\ x \neq y}} \bigl\{ \{x,y\} \mid
  & \text{long condition 1}, \\
  & \text{long condition 2} \bigr\} 


enter image description here

Please note also the use of \bigl\{ and \bigr\} instead of \big\{ and \big\}.

  • Wow that was a fast answer. Thank you very much, it worked and was exactly what I was looking for. :) Will accept you answer in a minute. Aug 13, 2020 at 11:45
  • The \bigr| was not intended. Good catch. Removed it now. Aug 13, 2020 at 11:52

You must log in to answer this question.

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