Re: conditional macros problem

"Eli Zaretskii" <[email protected]> Wed, 09 Feb 2005 20:19:59 +0200
Newsgroups gmane.comp.tex.texinfo.pretest
Message-ID <[email protected]>
> Date: Wed, 09 Feb 2005 05:41:07 +0100 (CET)
> From: Werner LEMBERG <[email protected]>
> 
>   @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?
_______________________________________________
Texinfo home page: http://www.gnu.org/software/texinfo/
[email protected]
http://ff0.org/mailman/listinfo/texinfo-pretest