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: Gavin Smith
Subject: Re: spurious space after macro expansion in math mode for TeX output
Date: Sat, 12 Nov 2022 10:23:13 +0000

On Wed, Nov 09, 2022 at 04:44:07PM +0100, Vincent Lefevre wrote:
> It seems that Texinfo adds something like {} at the beginning of
> the Texinfo macro expansion

Yes, this appears to be the case.  I expect it is the \bgroup and \egroup
used in \defmacro, in this code:

  \or % 1
    \expandafter\xdef\csname\the\macname\endcsname{%
       \bgroup
       \noexpand\braceorline
       \expandafter\noexpand\csname\the\macname @@@\endcsname}%
    \expandafter\xdef\csname\the\macname @@@\endcsname##1{%
      \egroup
      \noexpand\scanmacro{\macrobody}%
      }%

These grouping commands are needed to isolate the catcode changes for
reading the macro arguments.

Again, there is no way that I can see to fix this (the code
implementing @macro is already very hard to understand), and the workaround
with \gdef that I already posted to this list is completely sufficient.





reply via email to

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