![](https://secure.gravatar.com/avatar/d7c3317235884569312c31f786d43bbc.jpg?s=120&d=mm&r=g)
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
![](https://secure.gravatar.com/avatar/c5ae4f9aa0d3a9bd5376e92b322c3e50.jpg?s=120&d=mm&r=g)
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
![](https://secure.gravatar.com/avatar/d7c3317235884569312c31f786d43bbc.jpg?s=120&d=mm&r=g)
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
___________________________________________________________________________________
participants (2)
-
Aditya Mahajan
-
Fabrice Couvreur