Hi Wolfgang,
Thanks !
Fabrice

Le mar. 1 sept. 2026 à 16:41, Jean-Pierre Delange via ntg-context
<[email protected]> 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 : [email protected] / 
> 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 : [email protected] / 
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
___________________________________________________________________________________

Reply via email to