TransWikia.com

Remove vertical space induced by substack

TeX - LaTeX Asked by PaulProgrammerNoob on June 19, 2021

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:

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

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)?

One Answer

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

documentclass{article}

usepackage{amsmath}

begin{document}

[
F(M) = bigcup_{substack{x, y in M x neq y}} bigl{ {x,y} mid
begin{aligned}[t]
  & text{long condition 1}, 
  & text{long condition 2} bigr} 
end{aligned}
]

end{document}

enter image description here

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

Correct answer by campa on June 19, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP