Re: [NTG-context] Defining commands in \start ... \stop

2014-03-30 Thread Xan
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,

Re: [NTG-context] Defining commands in \start ... \stop

2014-03-30 Thread Wolfgang Schuster
Am 30.03.2014 um 19:28 schrieb Xan : > This: > > \defineblock[question] > \defineblock[answer] > > \defineenumeration[question][text={Question}] > \defineenumeration[answer] [text={Answer}] > > \keepblocks[question] > \hideblocks[answer] > > > \def\mynewcommand{\dosingleempty\doMyNewCommand

Re: [NTG-context] Defining commands in \start ... \stop

2014-03-30 Thread Xan
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 \beginquesti

[NTG-context] Defining commands in \start ... \stop

2014-03-30 Thread Xan
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}