Re: conditional macros problem

[email protected] (Karl Berry) Mon, 14 Feb 2005 08:49:50 -0500
Newsgroups gmane.comp.tex.texinfo.pretest
Message-ID <[email protected]>
    @le and @ge for correct mathematical spacing.

1) Don't you have to use @math for that anyway?  (Your example didn't
   show that.)  Getting math spacing outside of math mode would not be fun.

2) You could force the right kind of atom with \mathrel (in this case).
   But I'm not sure this is the problem.

Maybe something like this:

@tex
\gdef\LEmacro{\ifmmode\else$\fi \le \ifmmode\else$\fi}
@end tex

And then:
@math{a @LE{} b}

The \ifmmode stuff is so it will work both in and out of math mode.

I admit I haven't tried it -- just woke up with the idea.

Cheers,
karl
_______________________________________________
Texinfo home page: http://www.gnu.org/software/texinfo/
[email protected]
http://ff0.org/mailman/listinfo/texinfo-pretest