[NTG-context] Special numbering

Aditya Mahajan adityam at umich.edu
Wed Aug 17 17:47:53 CEST 2022


On Wed, 17 Aug 2022, Fabrice Couvreur via ntg-context wrote:

> 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,

Add:

      counter=definition,

>     style=italic]


Now, definition and proposition share the same counter.

Aditya


More information about the ntg-context mailing list