Regarding \setupenumerations
Hi, I would like to get numbering like this : Chapter 1 Section 1.1 Definition 1.1.1 Definition 1.1.2 Definition 1.1.3 Section 1.2 Definition 1.2.1 Definition 1.2.2 Definition 1.2.3 Thanks for your help. Fabrice \starttext \setuphead [section] [style=\bfc, sectionsegments=chapter:section, distance=1em, align={flushleft,broad}, ] \setuphead [subsection] [sectionsegments=section:subsection, distance=1em, style=\bfb, align={flushleft,broad}] \setuphead [subsubsection] [sectionsegments=section:subsubsection, style=\bfa, align={flushleft,broad}] \setupenumerations [before={\blank}, after={\blank}, alternative=serried, distance=0.5\emwidth, title=yes, titleleft=, titleright=, titlestyle=normal, prefix=yes, stretch=0, shrink=0, headcommand=\groupedcommand{}{}, numbercommand=\groupedcommand{}{}, titlecommand=\groupedcommand{(}{)}, width=fit] \defineenumeration [definition] [text=D�finition, style=italic, ] \startchapter [title=Chapter one] \startsection [title=Section one] \dorecurse{3}{ \startdefinition \stopdefinition } \stopsection \startsection [title=Section two] \dorecurse{3}{ \startdefinition \stopdefinition } \stopsection \stopchapter \stoptext
Am 01.09.2026 um 16:32 schrieb Fabrice Couvreur:
Hi, I would like to get numbering like this : Chapter 1 Section 1.1 Definition 1.1.1 Definition 1.1.2 Definition 1.1.3 Section 1.2 Definition 1.2.1 Definition 1.2.2 Definition 1.2.3 Thanks for your help. Fabrice
[...]
\defineenumeration [definition] [text=D�finition, style=italic, ] Add
prefixsegments=chapter:section,way=bysection, to your enumeration setup. Wolfgang
Hi Fabrice, Try this: \setuppapersize[A7,landscape] \setupbodyfont[8pt] \setuphead [section] [sectionsegments=chapter:section] \defineenumeration [definition] [text=Definition, style=italic, prefix=yes, prefixsegments=chapter:section, way=bysection] \starttext \startchapter [title={Chapter one}] \startsection [title={Section one}] \dorecurse{3}{ \startdefinition A definition. \stopdefinition } \stopsection \startsection [title={Section two}] \dorecurse{3}{ \startdefinition A definition. \stopdefinition } \stopsection \stopchapter \stoptext JP Le 01/09/2026 à 16:32, Fabrice Couvreur a écrit :
Hi, I would like to get numbering like this : Chapter 1 Section 1.1 Definition 1.1.1 Definition 1.1.2 Definition 1.1.3 Section 1.2 Definition 1.2.1 Definition 1.2.2 Definition 1.2.3 Thanks for your help. Fabrice
\starttext \setuphead [section] [style=\bfc, sectionsegments=chapter:section, distance=1em, align={flushleft,broad}, ]
\setuphead [subsection] [sectionsegments=section:subsection, distance=1em, style=\bfb, align={flushleft,broad}]
\setuphead [subsubsection] [sectionsegments=section:subsubsection, style=\bfa, align={flushleft,broad}]
\setupenumerations [before={\blank}, after={\blank}, alternative=serried, distance=0.5\emwidth, title=yes, titleleft=, titleright=, titlestyle=normal, prefix=yes, stretch=0, shrink=0, headcommand=\groupedcommand{}{}, numbercommand=\groupedcommand{}{}, titlecommand=\groupedcommand{(}{)}, width=fit]
\defineenumeration [definition] [text=D�finition, style=italic, ] \startchapter [title=Chapter one] \startsection [title=Section one] \dorecurse{3}{ \startdefinition
\stopdefinition } \stopsection \startsection [title=Section two] \dorecurse{3}{ \startdefinition
\stopdefinition } \stopsection \stopchapter \stoptext
Hi Wolfgang,
Thanks !
Fabrice
Le mar. 1 sept. 2026 à 16:41, Jean-Pierre Delange via ntg-context
Hi Fabrice,
Try this:
\setuppapersize[A7,landscape] \setupbodyfont[8pt]
\setuphead [section] [sectionsegments=chapter:section]
\defineenumeration [definition] [text=Definition, style=italic, prefix=yes, prefixsegments=chapter:section, way=bysection]
\starttext
\startchapter [title={Chapter one}]
\startsection [title={Section one}]
\dorecurse{3}{ \startdefinition A definition. \stopdefinition }
\stopsection
\startsection [title={Section two}]
\dorecurse{3}{ \startdefinition A definition. \stopdefinition }
\stopsection
\stopchapter
\stoptext
JP
Le 01/09/2026 à 16:32, Fabrice Couvreur a écrit :
Hi, I would like to get numbering like this : Chapter 1 Section 1.1 Definition 1.1.1 Definition 1.1.2 Definition 1.1.3 Section 1.2 Definition 1.2.1 Definition 1.2.2 Definition 1.2.3 Thanks for your help. Fabrice
\starttext \setuphead [section] [style=\bfc, sectionsegments=chapter:section, distance=1em, align={flushleft,broad}, ]
\setuphead [subsection] [sectionsegments=section:subsection, distance=1em, style=\bfb, align={flushleft,broad}]
\setuphead [subsubsection] [sectionsegments=section:subsubsection, style=\bfa, align={flushleft,broad}]
\setupenumerations [before={\blank}, after={\blank}, alternative=serried, distance=0.5\emwidth, title=yes, titleleft=, titleright=, titlestyle=normal, prefix=yes, stretch=0, shrink=0, headcommand=\groupedcommand{}{}, numbercommand=\groupedcommand{}{}, titlecommand=\groupedcommand{(}{)}, width=fit]
\defineenumeration [definition] [text=D�finition, style=italic, ] \startchapter [title=Chapter one] \startsection [title=Section one] \dorecurse{3}{ \startdefinition
\stopdefinition } \stopsection \startsection [title=Section two] \dorecurse{3}{ \startdefinition
\stopdefinition } \stopsection \stopchapter \stoptext
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___________________________________________________________________________________
Hi Jean-Pierre,
The proposed code meets my needs
Thanks.
Fabrice
Le mar. 1 sept. 2026 à 18:00, Fabrice Couvreur
Hi Wolfgang, Thanks ! Fabrice
Le mar. 1 sept. 2026 à 16:41, Jean-Pierre Delange via ntg-context
a écrit : Hi Fabrice,
Try this:
\setuppapersize[A7,landscape] \setupbodyfont[8pt]
\setuphead [section] [sectionsegments=chapter:section]
\defineenumeration [definition] [text=Definition, style=italic, prefix=yes, prefixsegments=chapter:section, way=bysection]
\starttext
\startchapter [title={Chapter one}]
\startsection [title={Section one}]
\dorecurse{3}{ \startdefinition A definition. \stopdefinition }
\stopsection
\startsection [title={Section two}]
\dorecurse{3}{ \startdefinition A definition. \stopdefinition }
\stopsection
\stopchapter
\stoptext
JP
Le 01/09/2026 à 16:32, Fabrice Couvreur a écrit :
Hi, I would like to get numbering like this : Chapter 1 Section 1.1 Definition 1.1.1 Definition 1.1.2 Definition 1.1.3 Section 1.2 Definition 1.2.1 Definition 1.2.2 Definition 1.2.3 Thanks for your help. Fabrice
\starttext \setuphead [section] [style=\bfc, sectionsegments=chapter:section, distance=1em, align={flushleft,broad}, ]
\setuphead [subsection] [sectionsegments=section:subsection, distance=1em, style=\bfb, align={flushleft,broad}]
\setuphead [subsubsection] [sectionsegments=section:subsubsection, style=\bfa, align={flushleft,broad}]
\setupenumerations [before={\blank}, after={\blank}, alternative=serried, distance=0.5\emwidth, title=yes, titleleft=, titleright=, titlestyle=normal, prefix=yes, stretch=0, shrink=0, headcommand=\groupedcommand{}{}, numbercommand=\groupedcommand{}{}, titlecommand=\groupedcommand{(}{)}, width=fit]
\defineenumeration [definition] [text=D�finition, style=italic, ] \startchapter [title=Chapter one] \startsection [title=Section one] \dorecurse{3}{ \startdefinition
\stopdefinition } \stopsection \startsection [title=Section two] \dorecurse{3}{ \startdefinition
\stopdefinition } \stopsection \stopchapter \stoptext
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___________________________________________________________________________________
Fabrice, Mais Wolfgang a dégainé quelques minutes plus tôt ! Terrifiant ! JP Le 02/09/2026 à 17:53, Fabrice Couvreur a écrit :
Hi Jean-Pierre, The proposed code meets my needs Thanks. Fabrice
Le mar. 1 sept. 2026 à 18:00, Fabrice Couvreur
a écrit : Hi Wolfgang, Thanks ! Fabrice
Le mar. 1 sept. 2026 à 16:41, Jean-Pierre Delange via ntg-context
a écrit : Hi Fabrice,
Try this:
\setuppapersize[A7,landscape] \setupbodyfont[8pt]
\setuphead [section] [sectionsegments=chapter:section]
\defineenumeration [definition] [text=Definition, style=italic, prefix=yes, prefixsegments=chapter:section, way=bysection]
\starttext
\startchapter [title={Chapter one}]
\startsection [title={Section one}]
\dorecurse{3}{ \startdefinition A definition. \stopdefinition }
\stopsection
\startsection [title={Section two}]
\dorecurse{3}{ \startdefinition A definition. \stopdefinition }
\stopsection
\stopchapter
\stoptext
JP
Le 01/09/2026 à 16:32, Fabrice Couvreur a écrit :
Hi, I would like to get numbering like this : Chapter 1 Section 1.1 Definition 1.1.1 Definition 1.1.2 Definition 1.1.3 Section 1.2 Definition 1.2.1 Definition 1.2.2 Definition 1.2.3 Thanks for your help. Fabrice
\starttext \setuphead [section] [style=\bfc, sectionsegments=chapter:section, distance=1em, align={flushleft,broad}, ]
\setuphead [subsection] [sectionsegments=section:subsection, distance=1em, style=\bfb, align={flushleft,broad}]
\setuphead [subsubsection] [sectionsegments=section:subsubsection, style=\bfa, align={flushleft,broad}]
\setupenumerations [before={\blank}, after={\blank}, alternative=serried, distance=0.5\emwidth, title=yes, titleleft=, titleright=, titlestyle=normal, prefix=yes, stretch=0, shrink=0, headcommand=\groupedcommand{}{}, numbercommand=\groupedcommand{}{}, titlecommand=\groupedcommand{(}{)}, width=fit]
\defineenumeration [definition] [text=D�finition, style=italic, ] \startchapter [title=Chapter one] \startsection [title=Section one] \dorecurse{3}{ \startdefinition
\stopdefinition } \stopsection \startsection [title=Section two] \dorecurse{3}{ \startdefinition
\stopdefinition } \stopsection \stopchapter \stoptext
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___________________________________________________________________________________
Je confirme !!
Le mer. 2 sept. 2026 à 17:55, Jean-Pierre Delange via ntg-context
Fabrice,
Mais Wolfgang a dégainé quelques minutes plus tôt ! Terrifiant !
JP
Le 02/09/2026 à 17:53, Fabrice Couvreur a écrit :
Hi Jean-Pierre, The proposed code meets my needs Thanks. Fabrice
Le mar. 1 sept. 2026 à 18:00, Fabrice Couvreur
a écrit : Hi Wolfgang, Thanks ! Fabrice
Le mar. 1 sept. 2026 à 16:41, Jean-Pierre Delange via ntg-context
a écrit : Hi Fabrice,
Try this:
\setuppapersize[A7,landscape] \setupbodyfont[8pt]
\setuphead [section] [sectionsegments=chapter:section]
\defineenumeration [definition] [text=Definition, style=italic, prefix=yes, prefixsegments=chapter:section, way=bysection]
\starttext
\startchapter [title={Chapter one}]
\startsection [title={Section one}]
\dorecurse{3}{ \startdefinition A definition. \stopdefinition }
\stopsection
\startsection [title={Section two}]
\dorecurse{3}{ \startdefinition A definition. \stopdefinition }
\stopsection
\stopchapter
\stoptext
JP
Le 01/09/2026 à 16:32, Fabrice Couvreur a écrit :
Hi, I would like to get numbering like this : Chapter 1 Section 1.1 Definition 1.1.1 Definition 1.1.2 Definition 1.1.3 Section 1.2 Definition 1.2.1 Definition 1.2.2 Definition 1.2.3 Thanks for your help. Fabrice
\starttext \setuphead [section] [style=\bfc, sectionsegments=chapter:section, distance=1em, align={flushleft,broad}, ]
\setuphead [subsection] [sectionsegments=section:subsection, distance=1em, style=\bfb, align={flushleft,broad}]
\setuphead [subsubsection] [sectionsegments=section:subsubsection, style=\bfa, align={flushleft,broad}]
\setupenumerations [before={\blank}, after={\blank}, alternative=serried, distance=0.5\emwidth, title=yes, titleleft=, titleright=, titlestyle=normal, prefix=yes, stretch=0, shrink=0, headcommand=\groupedcommand{}{}, numbercommand=\groupedcommand{}{}, titlecommand=\groupedcommand{(}{)}, width=fit]
\defineenumeration [definition] [text=D�finition, style=italic, ] \startchapter [title=Chapter one] \startsection [title=Section one] \dorecurse{3}{ \startdefinition
\stopdefinition } \stopsection \startsection [title=Section two] \dorecurse{3}{ \startdefinition
\stopdefinition } \stopsection \stopchapter \stoptext
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___________________________________________________________________________________
Le mer. 2 sept. 2026 à 17:55, Jean-Pierre Delange via ntg-context
a écrit :
Fabrice,
Mais Wolfgang a dégainé quelques minutes plus tôt ! Terrifiant !
There's something I can't imagine saying in English. But in French it sounds pretty cool. I imagine Wolfgang wandering around Le Grand Palais, weapon of choice in hand. Jim
Hi,
Is it a mistake on my part, or is the subsection numbering missing ?
Fabrice
\starttext
\setuphead
[section]
[style=\bfc,
sectionsegments=chapter:section,
distance=1em,
align={flushleft,broad},
]
\setuphead
[subsection]
[sectionsegments=chapter:section:subsection,
distance=1em,
style=\bfb,
align={flushleft,broad}]
\startchapter
[title={First chapter}]
\startsection
[title={First section}]
\startsubsection
[title={First subsection}]
\stopsubsection
\stopsection
\stopchapter
\stoptext
Le mer. 2 sept. 2026 à 20:11, Jim Diamond via ntg-context
Le mer. 2 sept. 2026 à 17:55, Jean-Pierre Delange via ntg-context
a écrit : Fabrice,
Mais Wolfgang a dégainé quelques minutes plus tôt ! Terrifiant !
There's something I can't imagine saying in English.
But in French it sounds pretty cool. I imagine Wolfgang wandering around Le Grand Palais, weapon of choice in hand.
Jim
___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___________________________________________________________________________________
Hi, Is it a mistake on my part, or is the subsection numbering missing ? Fabrice
\starttext \setuphead [section] [style=\bfc, sectionsegments=chapter:section, distance=1em, align={flushleft,broad}, ]
\setuphead [subsection] [sectionsegments=chapter:section:subsection,
Am 04.09.2026 um 15:36 schrieb Fabrice Couvreur: sectionsegments=chapter:subsection, you need only the names of the first and last level Wolfgang
Hi Wolfgang,
Thanks !
Fabrice
Le ven. 4 sept. 2026 à 16:58, Wolfgang Schuster
Hi, Is it a mistake on my part, or is the subsection numbering missing ? Fabrice
\starttext \setuphead [section] [style=\bfc, sectionsegments=chapter:section, distance=1em, align={flushleft,broad}, ]
\setuphead [subsection] [sectionsegments=chapter:section:subsection,
Am 04.09.2026 um 15:36 schrieb Fabrice Couvreur: sectionsegments=chapter:subsection,
you need only the names of the first and last level
Wolfgang
___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___________________________________________________________________________________
participants (4)
-
Fabrice Couvreur -
Jean-Pierre Delange -
Jim Diamond -
Wolfgang Schuster