Change \parskip only inside enumerate & itemize environment

前端 未结 4 1117
闹比i
闹比i 2021-02-15 12:29

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:53

    Yes you can; but you will have to alter either the enumerate and itemize environments from your class file (by copying them and adding your \parskip), or by redefining \@listi, which works for all lists:

    \makeatletter
    
    \def\@listi{%
      % default settings for base LaTeX classes at 10pt:
      \parsep 4pt plus 2pt minus 1pt
      \topsep 8pt plus 2pt minus 4pt
      \itemsep 4pt plus 2pt minus 1pt
      % your settings:
      \parskip 1em plus 1pt minus 1pt
    }
    
    \makeatother
    

    If you want different settings at nested list levels, change \@listii, \@listiii etc.

提交回复
热议问题