Re: [NTG-context] Resetcounter in custom enumeration environment

2022-01-04 Thread Jan-Erik Hägglöf via ntg-context
Many thanks, that was very structured and helpful. /Jan-Erik > 3 jan. 2022 kl. 12:07 skrev kauśika : > > 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): >>

Re: [NTG-context] Resetcounter in custom enumeration environment

2022-01-03 Thread kauśika via ntg-context
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 >

Re: [NTG-context] Resetcounter in custom enumeration environment

2022-01-03 Thread kauśika via ntg-context
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

[NTG-context] Resetcounter in custom enumeration environment

2022-01-03 Thread Jan-Erik Hägglöf via ntg-context
Hi! I’ve been doing this in my exams to define exercises in a structural way. \defineenumeration[uppgift] \setupenumerations[uppgift][alternative=left,width=1cm,text= ,after={\blank[2*big]}] \starttext \startuppgift Here comes the exercise \stopuppgift \stoptext I want a simple solution