[NTG-context] Using defaults and indexes

2009-01-21 Thread Cecil Westerhof
In my template I have: \long\def\letterclosing#1#2{ \blank[line]#1, \blank[3*line]#2 } And in the main file I have: \letterclosing{Hoogachtend}{Cecil Westerhof} But I would like to have this as the default, so I could use: \letterclosing Beside that I would like t

Re: [NTG-context] Using defaults and indexes

2009-01-21 Thread Wolfgang Schuster
Am 21.01.2009 um 16:02 schrieb Cecil Westerhof: And in the main file I have: \letterclosing{Hoogachtend}{Cecil Westerhof} But I would like to have this as the default, so I could use: \letterclosing Beside that I would like to have the possibility to use: \letterclosing{business}

Re: [NTG-context] Using defaults and indexes

2009-01-21 Thread Cecil Westerhof
2009/1/21 Wolfgang Schuster : >> And in the main file I have: >> >> \letterclosing{Hoogachtend}{Cecil Westerhof} >> >> But I would like to have this as the default, so I could use: >> >> \letterclosing >> >> Beside that I would like to have the possibility to use: >> >> \letterclosing{busines

Re: [NTG-context] Using defaults and indexes

2009-01-21 Thread Wolfgang Schuster
Am 21.01.2009 um 18:11 schrieb Cecil Westerhof: Goes a long way. With two parameters it works. When using 'unknown' or 'dummy', I get \wait= messages. When giving enter, the document is still generated. But that is not a real problem. But when using: \letterclosing or \letterclosing{} I

Re: [NTG-context] Using defaults and indexes

2009-01-21 Thread Tad Ashlock
Cecil Westerhof wrote: [snip] Found the problem. \doifelsenothing{#1} {\doletterclosing{Hoogachtend,}{Cecil Westerhof}}% should be: \doifelsenothing{#1} {\doletterclosing{Hoogachtend,}{Cecil Westerhof}}% Now it seems to do what I want. I don't see the difference. Would

Re: [NTG-context] Using defaults and indexes

2009-01-21 Thread Cecil Westerhof
2009/1/21 Wolfgang Schuster : When the first parameter is filled, but not with a recognized value, then the second parameter should be filled. If not, the compilation of the file should generate an error. > > I did only what you wrote. I was not clear enough again. What I mend was t

Re: [NTG-context] Using defaults and indexes

2009-01-21 Thread Cecil Westerhof
2009/1/21 Tad Ashlock : > Cecil Westerhof wrote: > [snip] >> >> Found the problem. >> \doifelsenothing{#1} >> {\doletterclosing{Hoogachtend,}{Cecil Westerhof}}% >> should be: >> \doifelsenothing{#1} >> {\doletterclosing{Hoogachtend,}{Cecil Westerhof}}% >> >> Now it seems to do w

Re: [NTG-context] Using defaults and indexes

2009-01-21 Thread Wolfgang Schuster
Am 21.01.2009 um 18:59 schrieb Tad Ashlock: Cecil Westerhof wrote: [snip] Found the problem. \doifelsenothing{#1} {\doletterclosing{Hoogachtend,}{Cecil Westerhof}}% should be: \doifelsenothing{#1} {\doletterclosing{Hoogachtend,}{Cecil Westerhof}}% Now it seems to do what I

Re: [NTG-context] Using defaults and indexes

2009-01-21 Thread Wolfgang Schuster
Am 21.01.2009 um 19:28 schrieb Cecil Westerhof: 2009/1/21 Wolfgang Schuster : When the first parameter is filled, but not with a recognized value, then the second parameter should be filled. If not, the compilation of the file should generate an error. I did only what you wrote. I was