On Monday, January 3, 2022 4:21:27 PM IST Jan-Erik Hägglöf via ntg-context
wrote:
> I want a simple solution to reset the counter so it achieves the following
> result:
>
> Exercises
>
> 1 First exercise
>
> 2 Second exercise
>
> Answers to exercises
>
> 1 Answers to first exercise
>
> 2 Answers to second exercise
After all, one can do
\resetcounter[uppgift]
before 'Answers to exercises'.
If 'Exercises' and 'Answers to exercises' are some head structure (assuming
unnumbered since they are so in your example):
\definehead[exercises][subject]
\definehead[answers][subject]
then you can simply do
\setupenumeration[uppgift]
[alternative=left,
width=1cm,
text=,
after={\blank[2*big]},
way=bysubject]
and ConTeXt will automatically restart the number at every new subject block.
Best,
kauśika
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist : [email protected] / 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
___________________________________________________________________________________