ConTeXt:文本与标题在连续枚举中重叠

ConTeXt:文本与标题在连续枚举中重叠

考虑以下一段代码

\defineenumeration[axiom]
                    [prefix=yes,
                    alternative=serried,
                    text=Axiom,
                    right={.~},
                    title=yes,
                    titlestyle={\tf},
                    titleleft={(},
                    titleright={)},
                    style={\it}]

\startTEXpage
\startaxiom[title={Incidence Axiom I}]
  For every pair of distinct points $P$ and $Q$ there is exactly one line $l$ such that $P$ and $Q$ lie on $l$.
\stopaxiom
\stopTEXpage

这段代码生成了一个简单的公理枚举。现在,使用它时,标题与公理的文本内容重叠,就像这样:

在此处输入图片描述

我怎样才能避免这种行为?

答案1

添加width=fit

\defineenumeration
  [axiom]
  [prefix=yes,
  alternative=serried,
  text=Axiom,
  right={.~},
  title=yes,
  titlestyle={\tf},
  titleleft={(},
  titleright={)},
  width=fit,
  style={\it}]

\startTEXpage[offset=1dk]
\startaxiom[title={Incidence Axiom I}]
  For every pair of distinct points $P$ and $Q$ there is exactly one line $l$ such that $P$ and $Q$ lie on $l$.
\stopaxiom
\stopTEXpage

与与=适合

相关内容