For a long time, I was using this way of coding multiple equations (I'm using the book class, in 12pt size):
Code: Select all
\begin{align}
A &= B, \\ \nonumber \\
C &= D.
\end{align}
Code: Select all
\begin{align*}
A &= B, \\ \\
C &= D.
\end{align*}
Code: Select all
\begin{align}
A &= B, \\[18pt]
C &= D.
\end{align}
Code: Select all
\begin{align*}
A &= B, \\[18pt]
C &= D.
\end{align*}
What are the advantages and inconvenients of each ? Or is there a better way of doing this ?
My "old" way (using
\\ \\
) gives a vertical spacing which feels a bit too wide. The other way (using \\[18pt]
) gives an almost identical output (slightly less wide), but feels a bit more regular.I need opinions on this, since I may convert all my old codes to the one I currently prefer, but it may be a "mistake".
In case a MWE is needed, here's one (the output of both ways of coding the vertical spacement appears to be identical, but that's because the equations are too simple here.) :
Code: Select all
\documentclass[12pt,letterpaper]{book}
\usepackage[T1]{fontenc}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{mathtools}
\usepackage[left=1.0in,top=1.0in,right=1.0in,bottom=1.0in]{geometry}
\begin{document}
This way :
\begin{align}
A &= B, \\ \nonumber \\
C &= D.
\end{align}
and :
\begin{align*}
A &= B, \\ \\
C &= D.
\end{align*}
Or this way :
\begin{align}
A &= B, \\[18pt]
C &= D.
\end{align}
and :
\begin{align*}
A &= B, \\[18pt]
C &= D.
\end{align*}
\end{document}