描述编号为 Section.Number

描述编号为 Section.Number

我有这个描述

\defineenumeration
  [exercici]
  [alternative=serried,text={Exercici},stopper={.\space},width=fit]

我想放这样的东西

Exercici 1.1. Bla

当我输入:

\startexercici Bla
\stopexercici

其中第一个 1 是节的编号(而不是Exercici 1

答案1

像这样吗?

%\setuppapersize[A6]
\defineenumeration[exercici]
    [alternative=serried,
     prefix=yes,
     prefixsegments=section,
     way=bysection, %comment it so that the enumeration counter isn't reset
     text={Exercici},stopper={.\space},
     width=fit]
\starttext
\startsection[title=nice]
\startexercici This
\stopexercici
\startexercici isn't
\stopexercici
\stopsection
\startsection[title=nice]
\startexercici an
\stopexercici
\startexercici example
\stopexercici
\stopsection
\stoptext

在此处输入图片描述

相关内容