bug-texinfo
[Top][All Lists]
Advanced

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

Re: @displaymath in @iftex


From: Raymond Toy
Subject: Re: @displaymath in @iftex
Date: Wed, 10 Aug 2022 16:28:59 -0700

Ah, thanks.  I see now that my m4 macro invocation was adding an extra line because trailing whitespace of an arg is included as part of the arg.  And the offending code did this.

Really sorry for all of the trouble!

On Wed, Aug 10, 2022 at 1:28 PM Gavin Smith <gavinsmith0123@gmail.com> wrote:
On Wed, Aug 10, 2022 at 01:07:31PM -0700, Raymond Toy wrote:
>
> I must be doing something wrong.  This is what I have:
> -------
> The following relationships are true:
>
>
> @ifhtml
> @displaymath
> \eqalign{
> m &= k^2 \cr
> k &= \sin\alpha
> }
>
> @end displaymath
> @end ifhtml
> @ifinfo
> @math{m = k^2}
>
> @math{k = sin(alpha)}
>
> @end ifinfo
> @iftex
> @displaymath
> \eqalign{
> m &= k^2 \cr
> k &= \sin\alpha
> }
>
> @end displaymath
> @end iftex
>
>
> Note that Abramowitz and Stegun uses the notation
> -----

If you put that into a Texinfo file and process it with texinfo.tex,
you get an error message like

! Missing $ inserted.
<inserted text>
                $
<to be read again>
                   @par
l.24


@par is a token that is inserted at the end of a paragraph, indicated
by blank lines.  l.24 refers to line 24, which was blank.  If you
remove that blank line, the file processes without error and the output
appears to be as expected:

> @iftex
> @displaymath
> \eqalign{
> m &= k^2 \cr
> k &= \sin\alpha
> }
> @end displaymath
> @end iftex


--
Ray

reply via email to

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