I was redefining vertical whitespace between formulas and text, which is controlled by four lengths, according to Voss' Math mode: \abovedisplayskip, \abovedisplayshortskip, \belowdisplayskip and \belowdisplayhortskip. Surprisingly for me, setting up those lengths in the preamble did nothing, I can only redefine them inside the document. Please test the following example (don't pay much attention to the typeset text

Code: Select all
\documentclass[a4paper]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\setlength\parindent{0pt}
% This won't work
\setlength\abovedisplayskip{40pt}
\begin{document}
This is the first line, which just fills space with text before the formula:
\[
f(x) = \int_0^{\infty} \frac{\sin x}{x}\ dx
\]
after the formula, this line works as a reference to see the vertical spacing.
\vspace{2\baselineskip}
% This time it will work
\setlength\abovedisplayskip{40pt}
This is the first line, which just fills space with text before the formula:
\[
f(x) = \int_0^{\infty} \frac{\sin x}{x}\ dx
\]
after the formula, this line works as a reference to see the vertical spacing.
\end{document}