Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Change \parskip only inside enumerate & itemize environment

Tags:

latex

markup

Is there any way that I can change \parskip to a different value inside certain environments, namely enumerate and itemize.

I want to have space between paragraphs (\setlength{\parskip}{1em plus 1pt minus 1pt}), but not inside itemize or enumerate.

like image 663
Jeffrey Aylesworth Avatar asked Feb 01 '10 22:02

Jeffrey Aylesworth


1 Answers

If you use the enumitem package, you can say in your preamble

\setlist[itemize]{parsep=0pt}
\setlist[enumerate]{parsep=0pt}

to get what you want. enumitem allows for doing much more list customization, see its documentation for details.

like image 196
equaeghe Avatar answered Sep 20 '22 01:09

equaeghe