如何在 ConTeXt 中列表中的每个项目后添加空格?

如何在 ConTeXt 中列表中的每个项目后添加空格?

我有一份包含一些问题的文档。我需要给读者留出空间来写几句话作为答案。

我正在使用这个代码:

\startitemize[r]
    \item Where do most bears live?
    \item What kind of bears live in your area? When have you seen them?
    \item If you meet a bear, what should you do?
\stopitemize

打开网格后,每个项目后只留下一个空行,例如:

i. Where do most bears live?

ii. What kind of bears live in your area? When have you seen them?

iii. If you meet a bear, what should you do?

This is some other text.

如何在每个项目后添加 1 或 2 个额外的空行?

答案1

定义一个新的itemgroup问题,并设置inbetweenafter键以指定适当的空白处:

\defineitemgroup
  [questions]
  [inbetween={\blank[2*line]},
   after={\blank[2*line]},
   symbol=r]


\starttext
\input knuth
\startquestions
  \item Where do most bears live?
  \item What kind of bears live in your area? When have you seen them?
  \item If you meet a bear, what should you do?
\stopquestions
\input knuth
\stoptext

这样,您的常规物品就不会改变。

答案2

\starttext
\setupblank[4*big]
\startitemize[r]
    \item Where do most bears live?
    \item What kind of bears live in your area? When have you seen them?
    \item If you meet a bear, what should you do?
\stopitemize
\stoptext

相关内容