[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: |
Sat, 12 Nov 2022 12:12:05 +0100 |
User-agent: |
Mutt/2.2.8+49 (040ba998) vl-149028 (2022-11-07) |
On 2022-11-12 09:57:49 +0000, Gavin Smith wrote:
> I've added the following to the manual:
>
> • Expanding macros in a math context may lead to poor spacing in TeX
> output. For example:
>
> @iftex
> @macro atan
> \\mathop{\\rm atan}
> @end macro
> @end iftex
>
> @math{@atan{}(x)}
>
> The braces following ‘@atan’ are treated by TeX as a subformula,
> leading to extra space before the opening parenthesis. You can
You should also say that one may also get an additional space
at the beginning of the macro (while the extra space before the
opening parenthesis can be avoided by adding a dummy argument,
this one cannot).
--
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)
- 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, 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, 2022/11/09
- 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 <=
- 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