1

I am trying to customize the vertical spacing in description environment. A global setting such as:

\setlist[description]{%
  topsep=10pt
}

adjusts the vertical spacing both “before” and “after” the environment.

What is the proper way to adjust those vertical spaces separately?

1
  • The underlying latex list mechanism does not have separate parameters for space before and after the list, so simplest thing is just to use a correction \vspace after the environment, or need to patch the list implementation to add an extra parameter. Mar 2, 2016 at 14:16

1 Answer 1

4

You could use option before and/or option after to change the vertical spaces seperatly.

Example:

\documentclass{article}
\usepackage{lipsum}
\usepackage{enumitem}
\setlist[description]{
  topsep=0pt,
  before=\vspace{20pt},
  %after=\vspace{5pt}
}
\begin{document}
\lipsum[1]
\begin{description}
\item[Item 1] Text
\item[Item 2] Text
\end{description}
\lipsum[1]
\end{document}

enter image description here

You must log in to answer this question.

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