ConTeXt 枚舉中標題與標題之間的距離

ConTeXt 枚舉中標題與標題之間的距離

我在 ConTeXt 中定義了一個定義的枚舉:

\defineenumeration[definition][theorem][
    text={Definition},
    prefix=chapter,
    way=bychapter,
    right=.,
    titleleft=(,
    titleright=.),
    distance=0.5em,
    headstyle=\ss,
    title=yes,
    titlestyle=\ss,
    alternative=serried,
    width=broad,
    indentnext=no]

我想將標題(即“Defintion [numberOfTheDefintion]”)與其標題之間的距離設為 0.5em(就像我用鍵設定distance標題和定義文字之間的距離一樣)。

謝謝。

答案1

正如 Aditya 所說,解決方案是將金鑰設為titledistance這樣0.5em

\defineenumeration[definition][theorem][
    text={Definition},
    prefix=chapter,
    way=bychapter,
    right=.,
    title=yes,
    titledistance=0.5em, % the "titledistance" key does the job
    titleleft=(,
    titleright=.),
    distance=0.5em,
    headstyle=\ss,
    titlestyle=\ss,
    alternative=serried,
    width=broad,
    indentnext=no]

謝謝。

相關內容