bug-texinfo
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: problems with makeinfo's macro expansion


From: Stepan Kasal
Subject: Re: problems with makeinfo's macro expansion
Date: Mon, 12 Jul 2004 11:51:39 +0200
User-agent: Mutt/1.4.1i

Hello,

On Sun, Jul 11, 2004 at 08:08:14PM +0200, Werner LEMBERG wrote:
> Another strange thing is that there doesn't happen macro expansion
> (using `makeinfo -E') within @ifnotinfo ... @end ifnotinfo.  Below an
> example.  This seems to be a real bug.

makeinfo doesn't expand macros in unprocessed branches.
It even doesn't try to parse these branches.

I have just verified that your problem is solved by the --no-ifinfo option.
This option not only means that "@ifinfo" blocks are skipped, it also
menas that "@ifnotinfo" blocks are read.
(Alper or Karl, are you willing to improve the docs?)

Perhaps the texi2dvi script should call "makeinfo -E" with options
--iftex and --no-ifinfo.
The script currently (in v. 4.7) preprocesses the source with a sed script,
which obviously doesn't handle recursive conditionals.  (I could fix it,
if it were needed.)
There is a problem though: the --iftex option opens not only @iftex blocks,
but also @tex blocks; and I can easily imagine that the parser can choke
on a TeX code.  (Karl, Alper, could this be changed?)

Have a nice day,
        Stepan Kasal





reply via email to

[Prev in Thread] Current Thread [Next in Thread]