bug-texinfo
[Top][All Lists]
Advanced

[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: Vincent Lefevre
Subject: Re: spurious space after macro expansion in math mode for TeX output
Date: Wed, 9 Nov 2022 14:22:06 +0100
User-agent: Mutt/2.2.8+49 (040ba998) vl-149028 (2022-11-07)

On 2022-11-09 14:17:10 +0100, Vincent Lefevre wrote:
> \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)}

Actually, the space after "atan" disappears even without the "z":

@math{@atan{}(x)}

So, in short,

@macro atan

or

@macro atan {}

generates a space after "atan", but not

@macro atan {T}

-- 
Vincent Lefèvre <vincent@vinc17.net> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)



reply via email to

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