2

Here at Stackexchange there are some questions related to vertical space in lists. For example: \topsep, \itemsep, \partopsep and \parsep - what does each of them mean (and what about the bottom)? How to remove the whitespace BEFORE itemize/enumerate?

My question just goes a little bit further:

I'd like to modify the whitespace BEFORE the list WITHOUT modifying the space AFTER the list. If i just change the parameter \topsep, both whitespaces will change. Ideally i want to change the parameters globally.

The only solution i found, is to include a negative vertical space before each list.

1
  • Welcome to TeX.SE. See documentation for the enumitem package. There is on page 3 sketch with all "spaces" -- measures of lists. Documentation is part of enumitem installation or you can find on CTAN or by help of Google.
    – Zarko
    Sep 8, 2019 at 10:52

1 Answer 1

1

Her is a simple solution with enumitem:

\documentclass{report}
\usepackage{enumitem}
\setlist[enumerate, 1]{before={\addtolength{\topsep}{1cm}}, after=\vspace*{-1cm}}

\begin{document}

Some text. Some text.Some text. Some text. Some text. Some text.Some text. Some text. Some text. Some text.Some text. Some text. Some text. Some text.Some text. Some text.
    \begin{enumerate}
      \item First item \the\topsep
      \item Second item
      \item Third item
    \end{enumerate}
Some more text. Some more text. Some more text. Some more text. Some more text. Some more text. Some more text. Some more text.

\end{document} 

enter image description here

2
  • thanks a lot! I didn't realize, that this could be done with "before" and "after"
    – MrTimo
    Sep 8, 2019 at 11:36
  • Only using enumitem. You can do it without enumitem, but it wll take more lines. Sep 8, 2019 at 14:47

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .