[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: spurious space after macro expansion in math mode for TeX output
From: |
Gavin Smith |
Subject: |
Re: spurious space after macro expansion in math mode for TeX output |
Date: |
Wed, 9 Nov 2022 19:29:23 +0000 |
On Wed, Nov 09, 2022 at 02:17:10PM +0100, Vincent Lefevre wrote:
> > > So, one gets the expected behavior with the TeX macro (no space added).
> > > But with the Texinfo macro, a space is added. This is unexpected: one
> > > should have got the same behavior as with the Tex macro. This means
> > > that Texinfo is adding something else in its macro expansion.
>
> BTW, with a slight modification of the Texinfo macro, i.e. accepting
> a dummy argument:
>
> ------------------------------------------------------------
> \input texinfo @c -*-texinfo-*-
>
> @tex
> \gdef\texatan{\mathop{\rm atan}}
> @end tex
>
> @iftex
> @macro atan {T}
> \\mathop{\\rm atan}
> @end macro
> @end iftex
>
> Spacing test with atan.
>
> @math{\mathop{\rm atan}(x)}
>
> @math{\texatan(x)}
>
> @math{@atan{z}(x)}
>
> @bye
> ------------------------------------------------------------
>
> the space after "atan" is no longer there!!!
This makes it promising that the space can be removed when the macro
takes no arguments as the two cases should work in a fundamentally similar
way.
> But the space before
> "atan" in the PDF rendering is still there.
I see the space. I don't know if it can be fixed: I'd have to understand
where it came from first.
- Re: spurious space after macro expansion in math mode for TeX output, (continued)
- Re: spurious space after macro expansion in math mode for TeX output, Gavin Smith, 2022/11/08
- Re: spurious space after macro expansion in math mode for TeX output, Vincent Lefevre, 2022/11/08
- Re: spurious space after macro expansion in math mode for TeX output, Patrice Dumas, 2022/11/09
- Re: spurious space after macro expansion in math mode for TeX output, Vincent Lefevre, 2022/11/09
- Re: spurious space after macro expansion in math mode for TeX output, Vincent Lefevre, 2022/11/09
- Re: spurious space after macro expansion in math mode for TeX output, Vincent Lefevre, 2022/11/09
- Re: spurious space after macro expansion in math mode for TeX output, Gavin Smith, 2022/11/12
- Re: spurious space after macro expansion in math mode for TeX output, Vincent Lefevre, 2022/11/12
- Re: spurious space after macro expansion in math mode for TeX output, Gavin Smith, 2022/11/12
- Re: spurious space after macro expansion in math mode for TeX output, Gavin Smith, 2022/11/12
- Re: spurious space after macro expansion in math mode for TeX output,
Gavin Smith <=
- Re: spurious space after macro expansion in math mode for TeX output, Gavin Smith, 2022/11/09
- Re: spurious space after macro expansion in math mode for TeX output, Gavin Smith, 2022/11/12
- Re: spurious space after macro expansion in math mode for TeX output, Vincent Lefevre, 2022/11/12
- Re: spurious space after macro expansion in math mode for TeX output, Gavin Smith, 2022/11/12
- Re: spurious space after macro expansion in math mode for TeX output, Vincent Lefevre, 2022/11/09