且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

仅在枚举&中更改\ parskip项目环境

更新时间:2022-06-20 10:04:32

是的,您可以;但是您将不得不从类文件中更改enumerateitemize环境(通过复制它们并添加\parskip),或者通过重新定义\@listi(适用于所有列表):

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

如果要在嵌套列表级别上使用其他设置,请更改\@listii\@listiii等.

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