[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}]

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

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

2014-03-30 Thread Wolfgang Schuster
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]

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

2010-02-06 Thread Wolfgang Werners-Lucchini
Hallo, btw, i'm sure that you've seen \starttexdefinition blabla #1 #2 which like setups ignores spaces so one can have readable macros i was the one who requested the parameterless version \starttexdefinition commandonly I experimented a little with this:

[NTG-context] defining commands

2010-02-05 Thread Marius
Hello all, How do I define the \setuptitlepage and \placetitlepage commands in the environment file? These commands are used as shown in the example below. \environment docenv \setuptitlepage[author=weare, name=thisismyname,

Re: [NTG-context] defining commands

2010-02-05 Thread Wolfgang Schuster
Am 05.02.10 09:03, schrieb Marius: Hello all, How do I define the \setuptitlepage and \placetitlepage commands in the environment file? These commands are used as shown in the example below. Since you do not explain what do you expect from both commands it's not possible to give you an

Re: [NTG-context] defining commands

2010-02-05 Thread Marius
Thank you for the link, the answer to my question was as in the example you gave, but with a single argument. The solution to my problem given below works, but I can't find the answer to the following question. What is the difference between \dosingleempty and \dosingleargument ?

Re: [NTG-context] defining commands

2010-02-05 Thread Hans Hagen
On 5-2-2010 14:57, Marius wrote: Thank you for the link, the answer to my question was as in the example you gave, but with a single argument. The solution to my problem given below works, but I can't find the answer to the following question. What is the difference between \dosingleempty and

Re: [NTG-context] defining commands

2010-02-05 Thread Hans Hagen
On 5-2-2010 10:29, Wolfgang Schuster wrote: Am 05.02.10 09:03, schrieb Marius: Hello all, How do I define the \setuptitlepage and \placetitlepage commands in the environment file? These commands are used as shown in the example below. Since you do not explain what do you expect from both

Re: [NTG-context] defining commands

2010-02-05 Thread Wolfgang Schuster
Am 05.02.10 18:53, schrieb Hans Hagen: \setvariables [whatever] [set={\setup[whateverpage]}] nice feature for setvariables lovers :) Wolfgang ___ If your question is of interest to others as well, please

Re: [NTG-context] defining commands

2010-02-05 Thread Hans Hagen
On 5-2-2010 19:08, Wolfgang Schuster wrote: Am 05.02.10 18:53, schrieb Hans Hagen: \setvariables [whatever] [set={\setup[whateverpage]}] nice feature for setvariables lovers :) yes, for those getting the creeps of #1 an dso btw, i'm sure that you've seen \starttexdefinition blabla #1 #2

Re: [NTG-context] defining commands

2010-02-05 Thread Wolfgang Schuster
Am 05.02.10 19:19, schrieb Hans Hagen: btw, i'm sure that you've seen \starttexdefinition blabla #1 #2 which like setups ignores spaces so one can have readable macros i was the one who requested the parameterless version \starttexdefinition commandonly Wolfgang

Re: [NTG-context] defining commands

2010-02-05 Thread Hans Hagen
On 5-2-2010 19:21, Wolfgang Schuster wrote: Am 05.02.10 19:19, schrieb Hans Hagen: btw, i'm sure that you've seen \starttexdefinition blabla #1 #2 which like setups ignores spaces so one can have readable macros i was the one who requested the parameterless version \starttexdefinition