From: "Peter Münster" <pmlists@free.fr>
Subject: special macro problem again...
Date: Mon, 7 Mar 2005 21:00:42 +0100 (CET) [thread overview]
Message-ID: <Pine.LNX.4.58.0503072049580.844@gaston.free.fr> (raw)
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/
next reply other threads:[~2005-03-07 20:00 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-03-07 20:00 Peter Münster [this message]
2005-03-17 16:45 ` Peter Münster
2005-03-17 19:13 ` Taco Hoekwater
2005-03-17 20:07 ` Peter Münster
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Pine.LNX.4.58.0503072049580.844@gaston.free.fr \
--to=pmlists@free.fr \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).