Many thanks, that was very structured and helpful. /Jan-Erik
> 3 jan. 2022 kl. 12:07 skrev kauśika <citt...@gmail.com>: > > On Monday, January 3, 2022 4:34:50 PM IST kauśika wrote: >> 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. > > In this case you would have something like : > > \startexercise[title={Exercises}] > \startuppgift > first exercise > \stopuppgift > > \startuppgift > second exercise > \stopuppgift > \stopexercise > > \startanswers > \startuppgift > answer to first exercise > \stopuppgift > > \startuppgift > answer to second exercise > \stopuppgift > \stopanswers > > kauśika > > ___________________________________________________________________________________ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___________________________________________________________________________________