Re: conditional macros problem

[email protected] (Karl Berry) Fri, 11 Feb 2005 12:30:40 -0500
Newsgroups gmane.comp.tex.texinfo.pretest
Message-ID <[email protected]>
    I've just found a working solution using @set

Excellent.  I will see about documenting this.

    We can impose restrictions how raw TeX macros
    must look like to make them easily parseable by makeinfo.

We can't restrict @tex, its whole point is to allow writing arbitrary
TeX code.

But I am still interested in such restrictions, for the sake of having a
new macro syntax that can be easily implemented in TeX and thus not
require makeinfo -E and all its concomitant problems.

My basic idea is something like this:

@newmacro @foo @arg1@arg2{[email protected]...}

where texinfo.tex has \let\arg=#.  Then \newmacro maps to \def.
Should be simpler for makeinfo, too.

But I am not sure how to handle line endings.  Since so many TeX
commands are line-oriented ...

(The real name would not be @newmacro, that's just for the sake of example.)

Thanks,
karl
_______________________________________________
Texinfo home page: http://www.gnu.org/software/texinfo/
[email protected]
http://ff0.org/mailman/listinfo/texinfo-pretest