[NTG-context] Exercise file with statements and correction

Pablo Rodriguez oinos at gmx.es
Tue Mar 17 22:09:24 CET 2020


On 3/17/20 9:14 PM, Fabrice Couvreur wrote:
> Hello,
> I would like to make files with statements of exercises and correction
> where it would be enough to click on "correction" to access the
> correction at the end of the file. I'm running out of time, does anyone
> have a model to share ?

Hi Fabrice,

I don’t have a model, but the following sample could give you a hint:

  \setupinteraction[state=start, focus=standard]
  \starttext
  \startbodymatter
  \chapter[lesson-1]{Lesson 1}
  \section[exercises-1]{Exercises 1}
  These are the exercises.

  Here you have their key (\about[key-1]).
  \stopbodymatter
  \startappendices
  \section[key-1]{Key to Lesson 1}
  This is the key

  Back to exercises (\about[exercises-1])
  \stopappendices
  \stoptext

I hope it helps,

Pablo
--
http://www.ousia.tk


More information about the ntg-context mailing list