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 <vinc...@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)