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

with=fit

관련 정보