Hi,
Concerned with the answers to the [that
topic](http://www.ntg.nl/pipermail/ntg-context/2014/077099.html), I was
thinking if I could define a command Exercise with a optional argument (the
Answer).
\defineblock[question]
\defineblock[answer]
\defineenumeration[question][text={Question}]
This:
\defineblock[question]
\defineblock[answer]
\defineenumeration[question][text={Question}]
\defineenumeration[answer] [text={Answer}]
\keepblocks[question]
\hideblocks[answer]
\def\mynewcommand{\dosingleempty\doMyNewCommand}
\def\doMyNewCommand[#1]#2{%
\iffirstargument
Am 30.03.2014 um 19:28 schrieb Xan dxpubl...@telefonica.net:
This:
\defineblock[question]
\defineblock[answer]
\defineenumeration[question][text={Question}]
\defineenumeration[answer] [text={Answer}]
\keepblocks[question]
\hideblocks[answer]
And so? This has not [mathematical] solution ;-)
Xan.
The block commands use a buffer to store the content and buffers can’t be
used in commands.
Wolfgang
___
If your question is of interest to others as well,