Re: [NTG-context] How to reset a new processor ?

2016-08-08 Thread Fabrice Couvreur
Oups, I forgot the  name "ex", I am confused.
Thanks
Fabrice

2016-08-08 13:27 GMT+02:00 Wolfgang Schuster :

> Fabrice Couvreur 
> 8. August 2016 um 13:11
> Hi Wolfgang,
> In fact, I have a project "Lesson" with components chapter 1, chapter 2,
> ...
> If I add \setupenumeration [] [way=bysubsection] to each component that
> does not work.
>
> \defineenumeration[exercise][text=Exercise ]
> \setupenumeration [exercise][way=bysection]
>
> \starttext
>
> \dorecurse{5}
> {\expanded{\chapter{Chapter \recurselevel}}
>  \dorecurse{3}
>{\expanded{\section{Section \recurselevel}}
> \dorecurse{3}
>   {\startexercise
>\input ward
>\stopexercise}}}
>
> \stoptext
>
> 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
> 
> ___
>
___
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] How to reset a new processor ?

2016-08-08 Thread Wolfgang Schuster

Fabrice Couvreur 
8. August 2016 um 13:11
Hi Wolfgang,
In fact, I have a project "Lesson" with components chapter 1, chapter 
2, ...
If I add \setupenumeration [] [way=bysubsection] to each component 
that does not work.

\defineenumeration[exercise][text=Exercise ]
\setupenumeration [exercise][way=bysection]

\starttext

\dorecurse{5}
{\expanded{\chapter{Chapter \recurselevel}}
 \dorecurse{3}
   {\expanded{\section{Section \recurselevel}}
\dorecurse{3}
  {\startexercise
   \input ward
   \stopexercise}}}

\stoptext

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
___

Re: [NTG-context] How to reset a new processor ?

2016-08-08 Thread Fabrice Couvreur
Hi Wolfgang,
In fact, I have a project "Lesson" with components chapter 1, chapter 2, ...
If I add \setupenumeration [] [way=bysubsection] to each component that
does not work.
Fabrice

2016-08-08 12:30 GMT+02:00 Wolfgang Schuster :

> Fabrice Couvreur 
> 8. August 2016 um 12:27
> Hi,
> I use a counter for each "Exercises" section of each chapter (Wolfgang thank
> you !).
> How to reset the counter to 1 for each section ?
> thank you,
> Fabrice
>
>
> \defineprocessor[ACPROCESSOR][command=\EXFRAME]
> \defineconversionset[ACCONVERSION][][ACPROCESSOR->n]
>
> \setupenumeration[...][way=bysection] % way=bychapter etc.
>
> 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
> 
> ___
>
___
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] How to reset a new processor ?

2016-08-08 Thread Wolfgang Schuster

Fabrice Couvreur 
8. August 2016 um 12:27
Hi,
I use a counter for each "Exercises" section of each chapter (Wolfgang 
thank you!).

How to reset the counter to 1 for each section ?
thank you,
Fabrice


\defineprocessor[ACPROCESSOR][command=\EXFRAME]
\defineconversionset[ACCONVERSION][][ACPROCESSOR->n]


\setupenumeration[...][way=bysection] % way=bychapter etc.

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
___

[NTG-context] How to reset a new processor ?

2016-08-08 Thread Fabrice Couvreur
Hi,
I use a counter for each "Exercises" section of each chapter (Wolfgang thank
you !).
How to reset the counter to 1 for each section ?
thank you,
Fabrice


\defineprocessor[ACPROCESSOR][command=\EXFRAME]
\defineconversionset[ACCONVERSION][][ACPROCESSOR->n]
___
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
___