问题描述
有什么方法可以在某些环境中将 parskip
更改为不同的值,即 enumerate
和 itemize
.
Is there any way that I can change parskip
to a different value inside certain environments, namely enumerate
and itemize
.
我希望段落之间有空格(setlength{parskip}{1em plus 1pt minus 1pt}
),但不在 itemize 或 enumerate 内.
I want to have space between paragraphs (setlength{parskip}{1em plus 1pt minus 1pt}
), but not inside itemize or enumerate.
推荐答案
是的,你可以;但是您必须从您的类文件中更改 enumerate
和 itemize
环境(通过复制它们并添加您的 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
opsep 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.
这篇关于仅在 enumerate & 内更改 parskip逐项列出环境的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!