[texinfo-pretest] conditional macros problem
Eli Zaretskii
eliz at gnu.org
Wed Feb 9 13:19:59 EST 2005
> Date: Wed, 09 Feb 2005 05:41:07 +0100 (CET)
> From: Werner LEMBERG <wl at gnu.org>
>
> @tex
> \gdef\LE{$\le$}
> @end tex
>
> @ifnottex
> @macro LE
> <=
> @end macro
> @end ifnottex
>
> ...
>
> a @LE{} b
>
> This works fine for both `makeinfo' and `tex'. Now my problem: I need
> to pass --macro-expand to `makeinfo' before calling. Consequently, it
> expands to
>
> a <= b
>
> instead of staying unexpanded.
>
> Passing --iftex isn't a solution since I get fatal errors. Any ideas?
The Texinfo conditional facilities include @ifset and @ifclear. You
can control those with the "-D FOO" command-line switch to makeinfo.
You could use the -D switch together with --macro-expand to get
makeinfo expand only those parts that you want.
Does that help you get what you want?
More information about the texinfo-pretest
mailing list