当段落以显示数学结束时,如何防止双倍行距?

当段落以显示数学结束时,如何防止双倍行距?

我更喜欢在文档中使用段落间距而不是缩进来区分不同的段落,但我的问题是,如果一个段落以显示数学结尾,那么就会留下双倍间距(因为我还将显示数学设置为上下 1em)有没有办法避免这种烦人的双倍间距?

\documentclass[a4paper, 12pt]{article}
\usepackage{graphicx}
\usepackage{amsmath}
\usepackage{bm}
\setlength{\parskip}{1em}

\begin{document}

\setlength{\abovedisplayskip}{1em}
\setlength{\belowdisplayskip}{1em}
\setlength{\jot}{0.5em}

\section{Section 1}
When I have text like this bit here, shortly followed by an equation such as
$$E = mc^2$$

\section{Section 2}
And a new section is started afterward, there is a double spacing between the end of the Maths and the start of section 2.

\end{document}

相关内容