My document has a number of equations that are surrounded by text. After long sentences, the equations look fine. However, after short sentences, they do not: the problem is that the equations are 'shifting up' into the empty space.
Is there a solution to this? One option is to add lots of white text above equations (to lengthen short sentences) but I imagine that better solutions are available.
Here is an example (I wasn't sure what might be relevant so have erred on the side of inclusion):
\documentclass[12pt,a4paper]{article}
\begin{document}
**Example 1 (no problem)**. This is a 'long sentence' followed by
\begin{equation} 2x = 10 \end{equation}
**Example 2 (problem)**
\begin{equation} 2x = 10 \end{equation}
\end{document}

latex, don't use the plain TeX construct$$ ... $$, use\[ ... \]instead. – Bernard Dec 19 '19 at 16:34\documentclass{...}and ends with\end{document}. Maybe you want to give\abovedisplayshortskipthe same value as\abovedisplayskipbut maybe there is something else going on (e.g. blank lines as Bernard pointed out). – campa Dec 19 '19 at 16:37\[ ... \]preferable to$$ ... $$? and What are the differences between$$,\[,align,equationanddisplaymath? – Mico Dec 19 '19 at 16:38