
考慮下面的程式碼
\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