useshortskip
手动nccmath
调整上方空间align
但不调整下方空间align
。以下示例在第 1 页和第 2 页中产生不同的结果。
\documentclass{article}
\usepackage{amsmath,nccmath}
\begin{document}
hello. hello. hello. hello.
\begin{equation}
y=x.
\end{equation}
hello. hello. hello. hello. hello. hello. hello. hello.\clearpage
hello. hello. hello. hello.\useshortskip
\begin{align}
y=x.
\end{align}
%%%%%%%%%%%HOW CAN I ADJUST THIS SPACE?%%%%%%%%%%%
hello. hello. hello. hello. hello. hello. hello. hello.
\end{document}
我该如何控制后面的空间?我尝试在后面align
应用,但这种方式留下了一个与前面的空间不同的非常狭窄的空间。align
\end{align}
\end{equation}
附言amsmath-重新定义对齐以支持\abovedisplayshortskip 和 \belowdisplayshortskip?显示了一些解决方案。
\documentclass{article}
\usepackage{amsmath,nccmath}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage{xpatch}
\makeatletter
\xpatchcmd
{\NCC@ignorepar}
{\global}
{\belowdisplayskip\belowdisplayshortskip\global}
{}
{}
\makeatother
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{document}
hello. hello. hello. hello.
\begin{equation}
y=x.
\end{equation}
hello. hello. hello. hello. hello. hello. hello. hello.\clearpage
hello. hello. hello. hello.\useshortskip
\begin{align}
y=x.
\end{align}
hello. hello. hello. hello. hello. hello. hello. hello.
\end{document}