[NTG-context] Resetcounter in custom enumeration environment

Jan-Erik Hägglöf skrantajanneman at gmail.com
Mon Jan 3 11:51:27 CET 2022


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

I hope that is clear enough to describe what I want to achieve

Many thanks in advance

Yours Sincerely

Jan-Erik


More information about the ntg-context mailing list