#StackBounty: #spacing #lists #paragraphs #enumitem Is it possible to have `partopsep` added below a list environment that is followed…

Bounty: 50

Given the following minimal example

documentclass[parskip=full]{scrreprt}
usepackage[onehalfspacing]{setspace}
usepackage{enumitem}
usepackage{lipsum}

setlist{
parsep=parsep,
itemsep=-.5parsep,
topsep=-.5parsep,
partopsep=.5parsep
}

begin{document}
lipsum[1]
begin{itemize}
item list
item between
item paragraphs
end{itemize}
lipsum[2]

begin{itemize}
item list
item in
item own
item paragraph
end{itemize}

lipsum[3]
begin{itemize}
item list
item above
item paragraph
end{itemize}

lipsum[4-5]
end{document}

The first and second lists are spaced as expected, with the second list spaced as an individual paragraph (compare with last two paragraphs).
However, the third list is spaced in the same way as the first one, even though it is followed by an unrelated paragraph.

This answer states that partopsep is added above and below a list environment if it begins a new paragraph.
Is there a (reasonably simple) way to get a partopsep added only to the bottom if a list environment is followed by a new paragraph?


Get this bounty!!!

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.