There is an extra space between the section
and the align*
parts of the page. This does not occur if the equation is simply enclosed in \[...\]
.
\documentclass{article}
\usepackage[fleqn]{amsmath}
\setlength{\mathindent}{0cm}
\begin{document}
\section{Test}
\[
a^2 + b^2 = c^2
\]
\section{Test}
\begin{align*}
a^2 + b^2 &= c^2
\end{align*}
\end{document}
I could just raise up the align*
environment using a negative \vspace
, but I was wondering if there is a more proper way.
EDIT:
Having defined:
\newcommand{\A}[1]{{\setlength{\abovedisplayskip}{0pt}\begin{align*}#1%
\end{align*}}}
I replaced the necessary \begin{align*}...\end{align*}
with \A{...}
and now I am getting this (this is my actual document):
What could be causing this larger bottom space?
align
(andalign*
) has\abovedisplayskip
space above, which is an elastical length, being about 10pt ;-) This is true forequation
etc. as well. You could say\abovedisplayskip=0pt
, of course, in a group preferably\useshortskip
command frommnccmath
, just before thealign
environment.