我知道我可以\itemsep
像这样设置任意长度,
\setlength{\itemsep}{0pt}
但是如果我想设置\itemsep
橡胶长度(例如\bigskip
),我该怎么做?
\setlength{\itemsep}{\bigskip}
不起作用。
答案1
跳过是\bigskipamount
;\bigskip
是的\vskip
,\bigskipamount
因此您可以使用
\setlength{\itemsep}{\bigskipamount}
当然,你可以说
\setlength{\itemsep}{12pt plus4pt minus4pt}
需要说明的是,Plain 中的定义如下:
\newskip\smallskipamount % the amount of a \smallskip
\smallskipamount=3pt plus1pt minus1pt
\newskip\medskipamount % the amount of a \medskip
\medskipamount=6pt plus2pt minus2pt
\newskip\bigskipamount % the amount of a \bigskip
\bigskipamount=12pt plus4pt minus4pt
\def\smallskip{\vskip\smallskipamount}
\def\medskip{\vskip\medskipamount}
\def\bigskip{\vskip\bigskipamount}
在 LaTeX 内核中:
\def\smallskip{\vspace\smallskipamount}
\def\medskip{\vspace\medskipamount}
\def\bigskip{\vspace\bigskipamount}
\newskip\smallskipamount
\smallskipamount=3pt plus 1pt minus 1pt
\newskip\medskipamount
\medskipamount =6pt plus 2pt minus 2pt
\newskip\bigskipamount
\bigskipamount =12pt plus 4pt minus 4pt