Change \parskip only inside enumerate & itemize environment

前端 未结 4 1237
一个人的身影
一个人的身影 2021-02-15 12:08

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

I wan

4条回答
  •  鱼传尺愫
    2021-02-15 12:51

    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.

提交回复
热议问题