[texinfo-pretest] conditional macros problem

Werner LEMBERG wl at gnu.org
Sun Feb 13 09:54:17 EST 2005


>     I've just found a working solution using @set
> 
> Excellent.  I will see about documenting this.

A minor problem is that any definition of a symbol with @set makes it
a \mathord (due to the group around it).  So it is still useful to add
@le and @ge for correct mathematical spacing.

> 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 ...

You mean line endings at interpretation time, right?  Then I suggest
that `@macro foo' isn't allowed but must always be `@macro foo{}'.  I
can't see an advantage to define a macro which eats the space after
it.  Or do you mean something different?


    Werner


More information about the texinfo-pretest mailing list