ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* How to reset a new processor ?
@ 2016-08-08 10:27 Fabrice Couvreur
  2016-08-08 10:30 ` Wolfgang Schuster
  0 siblings, 1 reply; 5+ messages in thread
From: Fabrice Couvreur @ 2016-08-08 10:27 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 260 bytes --]

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]

[-- Attachment #1.2: Type: text/html, Size: 651 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: How to reset a new processor ?
  2016-08-08 10:27 How to reset a new processor ? Fabrice Couvreur
@ 2016-08-08 10:30 ` Wolfgang Schuster
  2016-08-08 11:11   ` Fabrice Couvreur
  0 siblings, 1 reply; 5+ messages in thread
From: Wolfgang Schuster @ 2016-08-08 10:30 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 432 bytes --]

> Fabrice Couvreur <mailto:fabrice1.couvreur@gmail.com>
> 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


[-- Attachment #1.2: Type: text/html, Size: 1794 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: How to reset a new processor ?
  2016-08-08 10:30 ` Wolfgang Schuster
@ 2016-08-08 11:11   ` Fabrice Couvreur
  2016-08-08 11:27     ` Wolfgang Schuster
  0 siblings, 1 reply; 5+ messages in thread
From: Fabrice Couvreur @ 2016-08-08 11:11 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 1210 bytes --]

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 <schuster.wolfgang@gmail.com>:

> Fabrice Couvreur <fabrice1.couvreur@gmail.com>
> 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
> ____________________________________________________________
> _______________________
>

[-- Attachment #1.2: Type: text/html, Size: 3778 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: How to reset a new processor ?
  2016-08-08 11:11   ` Fabrice Couvreur
@ 2016-08-08 11:27     ` Wolfgang Schuster
  2016-08-08 11:43       ` Fabrice Couvreur
  0 siblings, 1 reply; 5+ messages in thread
From: Wolfgang Schuster @ 2016-08-08 11:27 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 603 bytes --]

> Fabrice Couvreur <mailto:fabrice1.couvreur@gmail.com>
> 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

[-- Attachment #1.2: Type: text/html, Size: 2091 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: How to reset a new processor ?
  2016-08-08 11:27     ` Wolfgang Schuster
@ 2016-08-08 11:43       ` Fabrice Couvreur
  0 siblings, 0 replies; 5+ messages in thread
From: Fabrice Couvreur @ 2016-08-08 11:43 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 1275 bytes --]

Oups, I forgot the  name "ex", I am confused.
Thanks
Fabrice

2016-08-08 13:27 GMT+02:00 Wolfgang Schuster <schuster.wolfgang@gmail.com>:

> Fabrice Couvreur <fabrice1.couvreur@gmail.com>
> 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
> ____________________________________________________________
> _______________________
>

[-- Attachment #1.2: Type: text/html, Size: 3699 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2016-08-08 11:43 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-08-08 10:27 How to reset a new processor ? Fabrice Couvreur
2016-08-08 10:30 ` Wolfgang Schuster
2016-08-08 11:11   ` Fabrice Couvreur
2016-08-08 11:27     ` Wolfgang Schuster
2016-08-08 11:43       ` Fabrice Couvreur

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).