Re: conditional macros problem
Werner LEMBERG <[email protected]> Sun, 13 Feb 2005 15:54:17 +0100 (CET)
| 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.
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@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 ...
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
_______________________________________________
Texinfo home page: http://www.gnu.org/software/texinfo/
[email protected]
http://ff0.org/mailman/listinfo/texinfo-pretest