Hello,
I would like the numbering of the properties to be like this :

First chapter

Property 1.1

Property 1.2

Second chapter

Property 2.1

Property 2.2

I thought it was enough to use the key way = bychapter

Thanks

Fabrice


\define[1]\ProprieteHeadcommand
  {\textrule[top]{#1}}

\setupenumerations[
       text=Propriété ,
       title=no,
       way=bychapter,
       titlestyle=bold,
       style=slanted,
       width=fit,
       headcommand=\ProprieteHeadcommand,
       numbercommand=\groupedcommand{}{\nbsp},
       after=\textrule
]

\defineenumeration[propriete]


\starttext

\startchapter[title={First chapter}]

  \dorecurse{2}{
    \startpropriete
      \input ward
    \stoppropriete}


\stopchapter

\startchapter[title={Second chapter}]

 \dorecurse{2}{
    \startpropriete
      \input ward
    \stoppropriete}


\stopchapter


\stoptext
___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to