表示数式後の \smallskip がなぜこんなに大きいのでしょうか?

表示数式後の \smallskip がなぜこんなに大きいのでしょうか?

以下の MWE では、\smallskip表示計算の後に余分なスペースが追加されているのはなぜですか? (また、これを修正するにはどうすればいいですか?)

\documentclass[12pt]{article}
\usepackage[english]{babel}
\usepackage{amsmath}

\begin{document}
This line.

Next line.
\smallskip

Next line after small skip.

\[displaymath\]

Next line.

\[displaymath\]
\smallskip

Next line after small skip.
\end{document}

ここに画像の説明を入力してください

答え1

良いLaTeX構文は一度もない1行以上の空白行を残す(暗黙的に段落区切りを生成する)前に表示数式グループ。必要に応じて、新しい段落を開始できます。ディスプレイ数学グループ。

を使用しながら、1 つの displaymath グループの終わりと次の段落の間に過剰な垂直方向の空白が生成されることを避けたい場合は\smallskip、命令と次の段落の間に空白行を挿入しないようにしてください\smallskip

ここに画像の説明を入力してください

\documentclass[12pt]{article}
\usepackage{amsmath}
\setlength\parindent{0pt} % just for this example
\setlength\textwidth{3in} % just for this example
\begin{document}
This line.

Another line.

\smallskip              % no blank line after \smallskip
Line after a smallskip. % no blank line *before* \[...\]
\[\text{displaymath}\]

Line with no smallskip. % no blank line *before* \[...\]
\[\text{displaymath}\]

\smallskip              % no blank line after \smallskip
Line after a smallskip.
\end{document}

答え2

表示数式の前後に空白行を使用しないでください。次のように使用します。

\documentclass[12pt]{article}
\usepackage[english]{babel}
\usepackage{amsmath}

\begin{document}
    This line.

    Next line.
    \smallskip

    Next line after small skip.
%   
    \[displaymath\]
%   
    Next line.
%   
    \[displaymath\]
    \smallskip

    Next line after small skip.
%
    \[displaymath\]
%   
    Next line after small skip.
\end{document}

関連情報