[NTG-context] Special numbering

Fabrice Couvreur fabrice1.couvreur at gmail.com
Wed Aug 17 17:25:46 CEST 2022


Hello,
how to get this
Définition 1.1.
Proposition 1.2.
Définition 1.3.
Proposition 1.4.

Thanks
Fabrice

\setupenumerations
  [before={\blank},
   after={\blank},
   alternative=serried,
   distance=0.5em,
   title=yes,
   titleleft=,
   titleright=,
   titlestyle=normal,
   prefix=yes,
   prefixsegments=chapter,
   way=bychapter,
   headcommand=\groupedcommand{}{.},
   numbercommand=\groupedcommand{}{},
   titlecommand=\groupedcommand{(}{)},
   width=broad]

\defineenumeration
   [definition]
   [text=Définition,
    number=yes,
    style=italic]

\defineenumeration
   [proposition]
   [text=Proposition,
    number=yes,
    style=italic]

\starttext
\startchapter
  [title={First chapter}]
  \dorecurse{2}{
    \startdefinition

\stopdefinition
\startproposition

\stopproposition}
\stopchapter
\stoptext
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ntg.nl/pipermail/ntg-context/attachments/20220817/12cb0e4c/attachment.htm>


More information about the ntg-context mailing list