[texinfo-pretest] conditional macros problem
Karl Berry
karl at freefriends.org
Fri Feb 11 12:30:40 EST 2005
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 at arg2{... at arg1...whatever...}
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
More information about the texinfo-pretest
mailing list