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