[texinfo-pretest] conditional macros problem

Karl Berry karl at freefriends.org
Mon Feb 14 08:49:50 EST 2005


    @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


More information about the texinfo-pretest mailing list