I first learnt to use LaTeX using the equation environment, and liked to set out my .tex document with spacing around equations. Now that I use the align environment, putting this additional space before an align will make a large space in my document (compared to a barely noticeable space), which I do not like. Is there a way to edit aligns so that they have behave similarly to equations in this respect?
For example:
\documentclass[a4paper]{article}
\usepackage{amsmath}
\begin{document}
text text text text text text text text text text text text
\begin{equation*}
a+b=c
\end{equation*}
text text text text text text text text text text text text
\begin{align*}
a+b=c
\end{align*}
text text text text text text text text text text text text
\begin{equation*}
a+b=c
\end{equation*}
text text text text text text text text text text text text
\begin{align*}
a+b=c
\end{align*}
text text text text text text text text text text text text
\end{document}
Best Answer
You should not leave empty lines before and after environments like
equation
align
etc to keep the spacing consistent. If you want your code to be more readable, you may put a%
instead of blank line. For example see the following and compare your out put with this:These environments add
\abovedisplayskip
above andbelowdisplayskip
below (there is also\abovedisplayshortskip
...) If you leave empty spaces, these spaces will be added to the\parskip
and you are bound to get inconsistent spacing.Don't add blank lines before and after