1

If we have several lines in align environment, with very different complexity, e.g. some nonsense code below

\begin{align*}
    a&=\int_{\mathbb{R}} \frac{\|b+\frac{\mathcal{C}}{d}\|_{L_2}}{\|\mathcal{E}\|_{L_\infty}}\left(\int_{\mathbb{R}}R(x,y)\right)^\frac{a+\frac{d}{e}}{f}\\
    &=b+c
\end{align*}

Vertical space very different

The vertical space taken up by two lines are vastly different. It may be a desired feature of LaTeX, but when I have a large block of equations in my paper, it becomes extremely ugly.

Paper

Question:

  1. Is there any way that can make vertical space taken by each line in align environment similar?
  2. How to make the big equation block in my paper look better?
  • Welcome to tex.sx. This isn't automatic, but should give the result you're looking for. The tallest element in each line is an integral sign, so inserting a \vphantom{\int} in each shorter line will force the lines apart. – barbara beeton Dec 29 '22 at 14:53
  • 1
    In that longer equation I would be more concerned about the bad spacing to the right of the \leq. – mickep Dec 29 '22 at 15:48
  • @mickep Could you explain more? I also find the spacing disturbing, but I don't know how to improve. Maybe I should flush \leq to the left? – wangtj20 Dec 30 '22 at 04:39
  • It is difficult to give advice without knowing what you are doing, but maybe this answer helps? – mickep Dec 30 '22 at 06:17
  • Thanks a lot! I will check the answer. – wangtj20 Dec 30 '22 at 06:18

1 Answers1

2

Welcome to TeX.SE, hoep \jot will help you, and the MWE is:

\documentclass{book}
\usepackage{amsfonts,mathtools}

\begin{document} \setlength{\jot}{16pt}%vary how much you like \begin{align} a&=\int_{\mathbb{R}} \frac{|b+\frac{\mathcal{C}}{d}|{L_2}}{|\mathcal{E}|{L_\infty}}\left(\int_{\mathbb{R}}R(x,y)\right)^\frac{a+\frac{d}{e}}{f}\ &=b+c \end{align}

\end{document}

enter image description here

Another Method (thanks to dalief)

\begin{spreadlines}{10pt}%%change how much you like
\begin{algin}
...
\end{align}
\end{spreadlines}

also will works

MadyYuvi
  • 13,693