[texinfo-pretest] conditional macros problem

Stepan Kasal kasal at ucw.cz
Fri Feb 11 09:32:11 EST 2005


Hi,

On Thu, Feb 10, 2005 at 06:51:40AM +0100, Werner LEMBERG wrote:
> So it has to somehow parse the contents of @tex to recognize
> `\gdef\foo#1{...}' being a macro definition for @foo{...}  [...]

no, we cannot interpret every TeX code possible.
Searching for

	\\[egx]def\\[A-Za-z]+([^{}]*#[1-9])*{
and
	\\let\\[A-Za-z]+

to catch TeX definitions is possible, but very fragile.
Perhaps the hack is to redefine something from plain.tex or texinfo.tex...

We should really give up and not interpret @tex blocks.

The preprocessed file _will_ be interpreted by TeX, right?  So what's the
problem?  (Or, more exactly, what would be the problem if `makeinfo --iftex'
were fixed the way I proposed?)

Have a nice day,
	Stepan Kasal


More information about the texinfo-pretest mailing list