[texinfo-pretest] conditional macros problem

Werner LEMBERG wl at gnu.org
Thu Feb 10 00:51:40 EST 2005


> > Passing --iftex isn't a solution since I get fatal errors.
> 
> This is what should be fixed.  makeinfo tries to parse contents of
> @tex, which is not its bussiness.  Similar issue with @html, I
> guess.
> 
> Interestingly enough, all @ifxxx, @tex and @html sections seems to
> be in the output of makeinfo -E.  So the only problem is that
> makeinfo thinks it might find a @macro definition in a @tex
> environment, which is incredible.

What --iftex must do is to `register' macro definitions within @tex
environments, at least if option -E is active.  So it has to somehow
parse the contents of @tex to recognize `\gdef\foo#1{...}' being a macro
definition for @foo{...} which must not be expanded.

> So the fix might be fairly straightforward.

For people who have enough insight, yes -- unfortunately, I don't have
yet.


    Werner


More information about the texinfo-pretest mailing list