ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* def with if..else fails in TABLE
@ 2005-10-17 22:06 Henning Hraban Ramm
  2005-10-18  8:23 ` Peter Rolf
  0 siblings, 1 reply; 8+ messages in thread
From: Henning Hraban Ramm @ 2005-10-17 22:06 UTC (permalink / raw)


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 goes into "else" (if #2 is empty, I get "3: and #3")!
And it's only with the table commands around.
Why? What can I do?


Grüßlis vom Hraban!
---
http://www.fiee.net/texnique/
http://contextgarden.net
http://www.cacert.org (I'm an assurer)

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2005-10-18 20:07 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-10-17 22:06 def with if..else fails in TABLE Henning Hraban Ramm
2005-10-18  8:23 ` Peter Rolf
2005-10-18  9:08   ` Henning Hraban Ramm
2005-10-18 10:18     ` Peter Rolf
2005-10-18 11:26     ` Peter Rolf
2005-10-18 11:39       ` Vit Zyka
2005-10-18 14:49         ` Hans Hagen
2005-10-18 20:07       ` Henning Hraban Ramm

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).