[NTG-context] What's the difference between \dodoubleargument and \dodoubleempty?

2008-10-21 Thread Ruini Xue
It's difficult to understand them from the code. -- ruini ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl /

Re: [NTG-context] What's the difference between \dodoubleargument and \dodoubleempty?

2008-10-21 Thread Hans Hagen
Ruini Xue wrote: It's difficult to understand them from the code. the first one issues a warning when no argument is given - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061

Re: [NTG-context] What's the difference between \dodoub leargument and \dodoubleempty?

2008-10-21 Thread Ruini Xue
: == \def\test {\dodoubleargument\dotest} % use \dodoubleempty \def\dotest[#1][#2] {\iffirstargument First arg: #1 \fi \ifsecondargument Second arg: #2 \fi} \test[ok][ok] % 1. this is ok \test [ok] [] % 2. warning? \test [wrong] % 3. Error: lack one arg

Re: [NTG-context] What's the difference between \dodoubleargument and \dodoubleempty?

2008-10-21 Thread Wolfgang Schuster
mandatory arguments? I try this example: == \def\test {\dodoubleargument\dotest} % use \dodoubleempty \def\dotest[#1][#2] You need a comment sign at the end of the line. \def\dotest[#1][#2]% {\iffirstargument First arg: #1 \fi \ifsecondargument

Re: [NTG-context] What's the difference between \dodoub leargument and \dodoubleempty?

2008-10-21 Thread Ruini Xue
Wolfgang Schuster schuster.wolfgang at googlemail.com writes: You need a comment sign at the end of the line. \def\dotest[#1][#2]% All my faults come from the last comment sign! :) Thanks -- ruini ___ If

Re: [NTG-context] What's the difference between \dodoubleargument and \dodoubleempty?

2008-10-21 Thread Hans Hagen
Ruini Xue wrote: Hans Hagen pragma at wxs.nl writes: Ruini Xue wrote: It's difficult to understand them from the code. the first one issues a warning when no argument is given You mean both of them ask the following \command to take two mandatory arguments? I try this example: we use