Abstand nach angezeigter Mathematik, vor einem \item

Abstand nach angezeigter Mathematik, vor einem \item

Diese Frage betrifft die Abstände nach angezeigten mathematischen Angaben und wie diese mit Abständen innerhalb einer enumerateUmgebung interagieren. Genauer gesagt ist hier ein MWE:

\documentclass{article}
\usepackage{amsmath}
\begin{document}
First line. Blah blah blah blah blah blah blah blah.
\[a+b=c\] % The spacing above and below is the same
Second line. Blah blah blah blah blah blah blah blah.
\begin{enumerate}
\item First line. Blah blah blah blah blah blah blah.
\[a+b=c.\] % The spacing below is bigger than the spacing above
\item Second item. Blah blah blah blah blah blah blah.
\item Third item. Blah blah blah blah blah blah blah.
\end{enumerate}
\end{document}

Auf einer grundlegenden Ebene möchte ich, dass in diesem MWE der vertikale Abstand vor/nach der angezeigten Mathematik in beiden Fällen gleich ist.

Allgemeiner (und technischer) möchte ich \itemsep(oder was auch immer den zusätzlichen Platz hinzufügt) mit ihnen interagieren, \belowdisplayskipals wären sie \addvspace-Typ-Leerzeichen, sodass das Maximum der beiden genutzt wird. Kann jemand eine Möglichkeit vorschlagen, dies zu tun?

Notiz:Ich habe es amsmathoben eingefügt, aber dieses Problem tritt auch ohne amsmathLaden auf. An der Stelle, wo ich es brauche, brauche ich es eigentlich auch, um mit dem Paket zu arbeiten enumitem, aber ich glaube nicht, dass dies irgendeine Lösung beeinträchtigen wird.

Antwort1

So soll es sein, je nachdem, wie Listen implementiert sind. Any \itembeginnt einen Absatz und TeX fügt \parskipglue ein, das die Listen auf den Wert von \parsep(der von der Klasse festgelegt wird) setzt, außerdem \itemsep; das \itemsepkommt in diesem Fall nicht durch, aber \parskipschon.

Beispiel (zweispaltiges Format für einfacheren Vergleich)

\documentclass[twocolumn]{article}
\usepackage{amsmath}
\begin{document}
First line. Blah blah blah blah blah blah blah blah.
\[a+b=c\] % The spacing above and below is the same
Second line. Blah blah blah blah blah blah blah blah.
\newpage
\begin{enumerate}
\item First line. Blah blah blah blah blah blah blah.
\[a+b=c.\] % The spacing below is bigger than the spacing above
\item Second item. Blah blah blah blah blah blah blah.
\item Third item. Blah blah blah blah blah blah blah.
\end{enumerate}

\end{document}

Bildbeschreibung hier eingeben

Fest:

\documentclass[twocolumn]{article}
\usepackage{amsmath}
\begin{document}
First line. Blah blah blah blah blah blah blah blah.
\[a+b=c\] % The spacing above and below is the same
Second line. Blah blah blah blah blah blah blah blah.
\newpage
\begin{enumerate}
\item First line. Blah blah blah blah blah blah blah.
\[a+b=c.\vspace{-\parskip}\] % The spacing below is equal to the spacing above
\item Second item. Blah blah blah blah blah blah blah.
\item Third item. Blah blah blah blah blah blah blah.
\end{enumerate}

\end{document}

Bildbeschreibung hier eingeben

Es kann sinnvoll sein, das enumitemPaket zu laden:

\documentclass[twocolumn]{article}
\usepackage{amsmath,enumitem}
\begin{document}
First line. Blah blah blah blah blah blah blah blah.
\[a+b=c\] % The spacing above and below is the same
Second line. Blah blah blah blah blah blah blah blah.
\newpage
\begin{enumerate}[itemsep=\glueexpr\itemsep+\parsep\relax,parsep=0pt]
\item First line. Blah blah blah blah blah blah blah.
\[a+b=c.\] % The spacing below is equal to the spacing above
\item Second item. Blah blah blah blah blah blah blah.
\item Third item. Blah blah blah blah blah blah blah.
\end{enumerate}

\end{document}

Dies wirkt sich jedoch natürlich auf die Absätze innerhalb eines einzelnen Elements aus.

verwandte Informationen