
次のコードを検討してください
\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