Thanks a lot, very concise. I was wondering if the \stopchapter (or more generally \stop<head>) were needed ? In my document I write in some instances:

\startsubsection

Bla bla

\startsubsection

etc ….

and it seems to work fine (but perhaps pure luck or is the \startsubsection implictly ends the previous one).

Best regards
Joseph

Sent from Windows Mail

From: Alan BRASLAU
Sent: ‎Sunday‎, ‎October‎ ‎25‎, ‎2015 ‎6‎:‎00‎ ‎PM
To: josephcanedo@gmail.com
Cc: ntg-context@ntg.nl

Easier:

\setuplabeltext [chapter=Chapitre ] % with trailing space; blank by default
\starttext

 \startchapter
   Some text.
 \stopchapter

 \startchapter
   Some more text.
 \stopchapter

\stoptext


Alan


On Sun, 25 Oct 2015 17:32:30 +0100
"Thomas A. Schmitz" <thomas.schmitz@uni-bonn.de> wrote:

> Is that what you're looking for?
>
>
> \define[2]\MyChapterTitle%
> {#2: #1}
>
> \setuphead[chapter]
>    [command=\MyChapterTitle]
>
> \starttext
>
> \startchapter [title=Some Title]
>
> Some text.
>
> \stoptext
>
> When you define a command, #1 is your chapter/section/whatever
> number, #2 is your title.
>
> (For future reference: please make minimal examples when asking a
> question.)
>
> Thomas