Hi  Aditya,
Thanks for your help, it works perfectly.
Fabrice

Le mer. 17 août 2022 à 17:48, Aditya Mahajan via ntg-context <ntg-context@ntg.nl> a écrit :
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___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : https://contextgarden.net
___________________________________________________________________________________