bug-texinfo
[Top][All Lists]
Advanced

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

spurious space after macro expansion in math mode for TeX output


From: Vincent Lefevre
Subject: spurious space after macro expansion in math mode for TeX output
Date: Mon, 7 Nov 2022 16:08:54 +0100
User-agent: Mutt/2.2.8+45 (c11015d0) vl-149028 (2022-11-06)

Consider the following test.texi file:

------------------------------------------------------------
\input texinfo    @c -*-texinfo-*-

@tex
\gdef\atan{\mathop{\rm atan}}
@end tex

@ifnottex
@macro atan
atan
@end macro
@end ifnottex

@node Top
@node Test

Spacing test with atan.

@math{@atan{}(x)}

@math{\atan(x)}

@bye
------------------------------------------------------------

and run "texi2dvi --pdf test.texi".

With \atan, everything is fine. But with @atan{}, I get a spurious
space between "atan" and "(x)" in the generated PDF, though the
result should be identical to \atan.

This issue occurs with both Debian's texinfo 6.8 and with the current
code (commit b5d32aaa0a67794d0324b0f9d5b726df80c8dee3 in the master
branch).

Note: it is important that @atan{} works for TeX output too, so that
the same code can be used for the Info, HTML and PDF versions of the
manual.

-- 
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]