
Diese Frage betrifft die Abstände nach angezeigten mathematischen Angaben und wie diese mit Abständen innerhalb einer enumerate
Umgebung 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, \belowdisplayskip
als 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 amsmath
oben eingefügt, aber dieses Problem tritt auch ohne amsmath
Laden 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 \item
beginnt einen Absatz und TeX fügt \parskip
glue ein, das die Listen auf den Wert von \parsep
(der von der Klasse festgelegt wird) setzt, außerdem \itemsep
; das \itemsep
kommt in diesem Fall nicht durch, aber \parskip
schon.
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}
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}
Es kann sinnvoll sein, das enumitem
Paket 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.