On Wed, Aug 10, 2022 at 08:08:38AM -0700, Raymond Toy wrote:
> On Wed, Aug 10, 2022 at 7:43 AM Raymond Toy <[email protected]> wrote:
> 
> >
> > This appears to produces good results but you would have to try it in
> >> your document to be sure.  If you don't want an extra space to appear then
> >> you need to use
> >>
> >> @iftex
> >> @math{{\rm Ai}(x)@c
> >> @end iftex
> >>
> >> to comment out the newline.
> >>
> >
> > Ah, this is great!  I'd previously been using block conditionals, but
> > there was always an extra space, which meant the inline formulas followed
> > by a period had an extra space.  That's why I was thinking of using
> > @inlinefmt for this.
> >
> 
> Ah, not quite.  With the @c, any following spaces get swallowed.  What I
> have is something like
> 
> The Airy functions
> @ifhtml
> @math{{\rm Ai}(x)}@c
> @end ifhtml
> @ifinfo
> @math{Ai(x)}@c
> @end ifinfo
> @iftex
> @math{{\rm Ai}(x)}@c
> @end iftex
>  and
> 
> This gets rendered in the pdf as "y = Ai(x)and".  No space between the
> function and "and".  The block for the formula is generated by an m4 macro.
>

You could also do

> @ifhtml
> @math{{\rm Ai}(x)} @c
> @end ifhtml
> @ifinfo
> @math{Ai(x)} @c
> @end ifinfo
> @iftex
> @math{{\rm Ai}(x)} @c
> @end iftex
> and

although I don't know how easy this would be with your macros.

Reply via email to