If I use amsmath and have an eqation as its own paragraph (surrounded by empty lines), the space around it is too large and the space above is much greater than the space below. Why is that? If I don't use amsmath, the space is small.
I want that the spaces around equations would be the same as spaces between paragraphs. How can that be done?
Here is a demonstration of the spacing:
\documentclass{minimal}
\usepackage[paperwidth=5cm, paperheight=5cm]{geometry}
\usepackage{amsmath}
\begin{document}
paragraph
\begin{equation}
a = b
\end{equation}
paragraph
\end{document}


$$Tex does not support starting a paragraph with a math display – David Carlisle Jan 04 '23 at 19:32%if you want a more or less empty line without ending a paragraph – David Carlisle Jan 04 '23 at 19:45\noindent\begin{equation*}– David Carlisle Jan 04 '23 at 19:57\noindentworks, but only in vacuum. It doesn't work in my case. The environment usesaddmarginfrom KOMA-Script, and, if the equation is at the beginning ofaddmargin,\noindentdoesn't work – matj1 Jan 04 '23 at 20:43%, that gets rid of the vertical space you don't want. Why are you objecting to that? – Teepeemm Jan 04 '23 at 20:52addmargin, a directly previous paragraph doesn't exist. – matj1 Jan 04 '23 at 20:59addmarginwith a displayed equation?" Is that correct? It might be better to ask that question. – Teepeemm Jan 04 '23 at 21:28addmargin, my case is that I have a paragraphs introducing the following equations; then I have several sets of equations where the equations are closely related in the sets, but not so much across the sets. Each set is in its ownalign*to be structurally separated from others. I separate paragraphs by spaces, so indentation is not my problem. – matj1 Jan 04 '23 at 22:24