我有一个文档,包含一些 1 列和 2 列的段落,混合在一起,例如:
This sentence has no column-
s.
This part of are balanced
the document such that t-
has two col- he lines are
umns which equal.
This part of the document
has no columns. The text is
like normal.
我正在使用这样的代码:
\definecolumnset[customcolumns][n=2]
\starttext
This sentence has no columns.
\startcolumnset[customcolumns]
This part of the document has two columns which are balanced such that the lines are equal.
\stopcolumnset
This part of the document has columns. The text is like normal.
\stoptext
当我编译此代码时,最后一段被放在一个新页面上,但似乎应该有足够的空间让它出现在同一页面上。
- 如何确保列集末尾不添加分页符?
答案1
您不能将列集与常规文本混合使用。如果您希望使用列集在文档中使用单列文本,则必须定义跨度。另一个选项是使用\startcolumns
或其替代品\startmixedcolumns
。
\definemixedcolumns[customcolumns][
n=2,
balance=yes,
align=flushleft,
]
\starttext
\input ward
\\
\startmixedcolumns[customcolumns]
\input ward
\stopmixedcolumns
\\
\input douglas
\\
\startmixedcolumns[customcolumns]
\input knuth
\stopmixedcolumns
\stoptext
结果: