[NTG-context] special macro problem again...
Peter Münster
pmlists at free.fr
Mon Mar 7 21:00:42 CET 2005
Hello,
with the help by Hans, I've got a nice little macro "\MyMacro".
Now, I get another problem, when using "\doifmode" in the argument of this
macro. This is the error message: ! Incomplete \iffalse
And here the example file:
\newcount\MyVersion
\def\MyMacro#1{%
\getgparameters[XXX][#1]
\global\advance\MyVersion by 1
\bTR \expanded{\bTD \the\MyVersion \eTD} \expanded{\bTD \XXXDate \eTD}\eTR
}
\starttext
\bTABLE
\bTR \bTD Version \eTD \bTD Date \eTD \eTR
\MyMacro{Date=1.2.2005}
\MyMacro{Date=\doifmode{abc}{3.4.2005}} % this does not work
\MyMacro{Date=5.6.2005}
\eTABLE
This works, but it is not so nice:
\doifmodeelse{abc}{%
\def\DateOne{1111}%
\def\DateTwo{2222}%
\def\DateThree{3333}}{%
\def\DateOne{4444}%
\def\DateTwo{5555}%
\def\DateThree{6666}}
\bTABLE
\bTR \bTD Version \eTD \bTD Date \eTD \eTR
\MyMacro{Date=\DateOne}
\MyMacro{Date=\DateTwo}
\MyMacro{Date=\DateThree}
\eTABLE
\stoptext
Could you help please?
Cheers, Peter
--
http://pmrb.free.fr/contact/
More information about the ntg-context
mailing list