![如何选择性地改变图形和部分之间的填充](https://linux22.com/image/475897/%E5%A6%82%E4%BD%95%E9%80%89%E6%8B%A9%E6%80%A7%E5%9C%B0%E6%94%B9%E5%8F%98%E5%9B%BE%E5%BD%A2%E5%92%8C%E9%83%A8%E5%88%86%E4%B9%8B%E9%97%B4%E7%9A%84%E5%A1%AB%E5%85%85.png)
我正在写一篇短文,看起来之内正确填充了部分内容,并且新部分内容出现直接在文本之后已正确填充。但是,如果在图形之后直接出现新的部分,则填充会添加,从而导致较大的空间。
是否可以覆盖此内容?例如,如果两种机制尝试在同一个位置添加填充,则仅应计算较大的一个。
谢谢你!
下面是一个最小的工作示例:
\documentclass{article}
\begin{document}
\begin{figure}[ht]
\centering
This is a figure which is well-padded, before text
\end{figure}
Here's some filler text
\newpage
This is some filler text
\section{Here's a section which is well-padded, after text}
More filler text
\newpage
\begin{figure}[ht]
\centering
This is a figure which is over-padded, before a section
\end{figure}
\section{This section is over-padded}
Filler text.
\end{document}