\xxxdisplayskip 的默认值

\xxxdisplayskip 的默认值

\abovedisplayskip我更改了和的值\belowdisplayskip,但我想在特定方程后将它们恢复正常。标准值是什么?

答案1

% arara: pdflatex

\documentclass{article}

\begin{document}
\the\abovedisplayskip{} and \the\belowdisplayskip
\end{document}

在此处输入图片描述

答案2

您可以使用 TeX 的分组功能,而不是重置值:

\documentclass{article}

\begin{document}

Some text that wraps over two lines, let's hope
it's long enough, but, just in case, let's add some
more nonsense
\begingroup\abovedisplayskip=30pt \belowdisplayskip=30pt
\[
1+1=2
\]
\endgroup
Some text that wraps over two lines, let's hope
it's long enough, but, just in case, let's add some
more nonsense
\[
1+1=2
\]
Some text that wraps over two lines, let's hope
it's long enough, but, just in case, let's add some
more nonsense

\end{document}

在此处输入图片描述

相关内容