[NTG-context] Exercise file with statements and correction
Fabrice Couvreur
fabrice1.couvreur at gmail.com
Tue Mar 17 23:18:34 CET 2020
Hi Otared,
https://mailman.ntg.nl/pipermail/ntg-context/2016/087487.html
Thanks
Fabrice
Le mar. 17 mars 2020 à 22:56, Fabrice Couvreur <fabrice1.couvreur at gmail.com>
a écrit :
> Hi Wolfgang,
> Is it possible to adapt your code with the environment that you proposed
> to me ?
> Thank you.
> Fabrice
>
> https://mailman.ntg.nl/pipermail/ntg-context/2016/087487.html
>
> \defineframed
> [EXFRAME]
> [frame=off,
> offset=0pt,
> location=low,
> width=\struttotal,
> background=color,
> backgroundcolor=black,
> foregroundcolor=white,
> forgroundstyle=bold]
>
> \defineprocessor[ACPROCESSOR][command=\EXFRAME]
> \defineconversionset[ACCONVERSION][][ACPROCESSOR->n]
>
> \defineenumeration
> [ex]
> [text=,
> width=fit,
> numberconversionset=ACCONVERSION,
> alternative=serried,
> number=yes]
>
> Le mar. 17 mars 2020 à 22:14, Fabrice Couvreur <
> fabrice1.couvreur at gmail.com> a écrit :
>
>> Hi Pablo,
>> Thank you very much, it's a great base to start with.
>> Fabrice
>>
>> Le mar. 17 mars 2020 à 22:09, Pablo Rodriguez <oinos at gmx.es> a écrit :
>>
>>> 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 at 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
>>>
>>> ___________________________________________________________________________________
>>>
>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ntg.nl/pipermail/ntg-context/attachments/20200317/3354ee94/attachment-0001.htm>
More information about the ntg-context
mailing list