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.schm...@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
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to