help-texinfo
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [help-texinfo] trying to make a unicode math char appear in all form


From: Paul Jakma
Subject: Re: [help-texinfo] trying to make a unicode math char appear in all formats
Date: Fri, 11 Dec 2015 10:23:52 +0000 (GMT)
User-agent: Alpine 2.20 (LFD 67 2015-01-07)

On Thu, 10 Dec 2015, Gavin Smith wrote:

The following works

\input texinfo

@c @tracingmacros=1

@iftex
@macro precb{}
@math{\\prec}
@end macro
@end iftex
@ifnottex
@macro precb{}
≺
@end macro
@end ifnottex

address@hidden


@bye

Note the backslash before prec in the macro body has to be escaped with another backslash. I inverted the nesting of the macro and conditional here.

Aha :)

Note also that you can't do @macro prec because @prec is already
defined as a control sequence.

Ah..

The "@tex" and "@end tex" lines have to be on lines by themselves. Any
backslashes in a macro body should be doubled, as well.

Just adding newline to make that happen seems to break the inline format macro. So..

a @precb{} b

Seems to do the trick, just /one/ little issue is that it doesn't seem to allow you to format the whole thing as math in one go, e.g.:

  @math{a @precb{} b}

Makes stuff unhappy.

Is there a way to make that work?

Thanks very much! :)

regards,
--
Paul Jakma      address@hidden  @pjakma Key ID: 64A2FF6A
Fortune:
Anybody can win, unless there happens to be a second entry.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]