[NTG-context] Counter resetting

2013-11-05 Thread Géry Ogam
 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{}
\cool{}

Hello world!

\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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] Counter resetting

2013-11-04 Thread Géry Ogam
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}
\subsection{Cat}

\cool{}
\cool{}

\subsection{Cat}

\cool{}
\cool{}

\section{Cat}

\cool{}
\cool{}

\stoptext


Best regards.
___
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
___

Re: [NTG-context] Counter resetting

2013-11-04 Thread Wolfgang Schuster

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 counter with each section.

Wolfgang

___
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
___