Re: [NTG-context] def with if..else fails in TABLE

2005-10-18 Thread Henning Hraban Ramm
Am 2005-10-18 um 13:26 schrieb Peter Rolf: \doifelsenothing{TEST} {NOTHING part} {SOMETHING part}% Thank you, I could solve it with that. I already suspected that optional-argument-of-eTX issue, there were some error messages in other variants that I tried, that pointed in this directi

Re: [NTG-context] def with if..else fails in TABLE

2005-10-18 Thread Hans Hagen
Vit Zyka wrote: I did not test but my opinion is: - \if*argument is set in the \do*empty - \bTR, \eTR has optional params so they also use \do*empty - using test \if*argument AFTER \bTR, \bTD, ... is related to the \bTR, ... number of arguments not to the \TestCmd. your opinion is right

Re: [NTG-context] def with if..else fails in TABLE

2005-10-18 Thread Vit Zyka
Peter Rolf wrote: Henning Hraban Ramm wrote: Am 2005-10-18 um 10:23 schrieb Peter Rolf: I tried to write a macro for a TABLE line: \def\TestCmd{\dodoubleempty\doTestCmd} \def\doTestCmd[#1][#2]#3{\bTR\bTD #3 \iffirstargument\hfill (#1)\fi \eTD \bTD \ifsecondargument 3: #2 and

Re: [NTG-context] def with if..else fails in TABLE

2005-10-18 Thread Peter Rolf
Henning Hraban Ramm wrote: > Am 2005-10-18 um 10:23 schrieb Peter Rolf: > >>> I tried to write a macro for a TABLE line: >>> >>> \def\TestCmd{\dodoubleempty\doTestCmd} >>> \def\doTestCmd[#1][#2]#3{\bTR\bTD #3 >>> \iffirstargument\hfill (#1)\fi >>> \eTD \bTD >>> \ifsecondargument >>>

Re: [NTG-context] def with if..else fails in TABLE

2005-10-18 Thread Peter Rolf
Henning Hraban Ramm wrote: > Am 2005-10-18 um 10:23 schrieb Peter Rolf: > >>> I tried to write a macro for a TABLE line: >>> >>> \def\TestCmd{\dodoubleempty\doTestCmd} >>> \def\doTestCmd[#1][#2]#3{\bTR\bTD #3 >>> \iffirstargument\hfill (#1)\fi >>> \eTD \bTD >>> \ifsecondargument >>>

Re: [NTG-context] def with if..else fails in TABLE

2005-10-18 Thread Henning Hraban Ramm
Am 2005-10-18 um 10:23 schrieb Peter Rolf: I tried to write a macro for a TABLE line: \def\TestCmd{\dodoubleempty\doTestCmd} \def\doTestCmd[#1][#2]#3{\bTR\bTD #3 \iffirstargument\hfill (#1)\fi \eTD \bTD \ifsecondargument 3: #2 and #3 \else 2: only #3 \fi

Re: [NTG-context] def with if..else fails in TABLE

2005-10-18 Thread Peter Rolf
Hi Hraban, Henning Hraban Ramm wrote: > Salute wizards! > > I tried to write a macro for a TABLE line: > > \def\TestCmd{\dodoubleempty\doTestCmd} > \def\doTestCmd[#1][#2]#3{\bTR\bTD #3 > \iffirstargument\hfill (#1)\fi > \eTD \bTD > \ifsecondargument > 3: #2 and #3 > \else

[NTG-context] def with if..else fails in TABLE

2005-10-17 Thread Henning Hraban Ramm
Salute wizards! I tried to write a macro for a TABLE line: \def\TestCmd{\dodoubleempty\doTestCmd} \def\doTestCmd[#1][#2]#3{\bTR\bTD #3 \iffirstargument\hfill (#1)\fi \eTD \bTD \ifsecondargument 3: #2 and #3 \else 2: only #3 \fi \eTD\eTR } But it never goe