ConTeXt:创建一个列表,显示右侧的下一个项目?

ConTeXt:创建一个列表,显示右侧的下一个项目?

如何在 ConTeXt 中创建一个列表以显示 ConTeXt 右侧的下一个项目?

\starttext
    \startitemize[n]
        \item Here is some text.
        \item Here is some more.
        \item Here is yet more.
        \item Here is yet even more text here.
        \item This text also fits.
        \item Here is an example of what happens when the text is really long it just is on its own filling the whole text width.
        \item This is short.
        \item This is really long and look what happens to the text is stays with the block that it is  provided, as if it were surrounded by an invisible box.
        \item This is anther longer text.
        \item This is short.
        \item This is bad it should not smash text like this too much.
    \stopitemize
\stoptext

正常的枚举列表如下所示:

1. Here is some text.

2. Here is some more.

3. Here is yet more.

如果按列显示的话,则如下所示:

1. Here is some    3. Here is yet
   text.              more.

2. Here is some
   more.

我需要创建一个列表,使列表显示得就像是在水平列中,而不是垂直列中:

1. Here is some text.    2. Here is some more.    3. Here is yet more.

4. Here is yet even more text here.    4. This text also fits.

5. Here is an example of what happens when the text is really long
   it just is on its own filling the whole text width.

6. This is short.    7. This is really long and look what happens to
                        the text is stays with the block that it is
                        provided, as if it were surrounded by an
                        invisible box.

8. This is anther longer text.   9. This is short.  10. This is
                                                        bad it
                                                        should not
                                                        smash text
                                                        like this 
                                                        too much.

有没有办法在 ConTeXt 中实现这种效果?(注意:避免上例中第 10 项被砸碎的问题)

答案1

最接近您的问题的解决方案是使用:

\starttext

Some previous sentence before the list

\startitemize[a,horizontal,three]
\startitem first \stopitem
\startitem second \stopitem
\startitem third \stopitem
\startitem fourth \stopitem
\startitem fifth \stopitem
\startitem sixth \stopitem
\stopitemize

And the text continues after the list

\stoptext

代码执行的输出

此信息来自这里

相关内容