You can use “way=byhead” to reset the counter with each section.
Wolfgang
It does not work (with ConTeXt ver: 2012.05.30):
\defineenumeration[cool][text=Cool, way=byhead]
\starttext
\section{Cat}
\subsection{Cat}
\cool{}
\cool{}
\subsection{Cat}
\cool{}
\cool{}
\section{Cat}
\cool{}
Hello,
How to reset a counter bysection and bysubsection at the same time? The
following example does not work. Hans, could you had the support of lists
for the 'way' argument please?
E.g.:
\defineenumeration[cool][text=Cool, way={bysection, bysubsection}]
\starttext
\section{Cat}
Am 05.11.2013 um 01:41 schrieb Géry Ogam maggy...@gmail.com:
Hello,
How to reset a counter bysection and bysubsection at the same time? The
following example does not work. Hans, could you had the support of lists for
the 'way' argument please?
You can use “way=byhead” to reset the