[Top][All Lists]

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

incorrect @math spacing for PDF output with an empty macro

From: Vincent Lefevre
Subject: incorrect @math spacing for PDF output with an empty macro
Date: Fri, 14 Oct 2022 13:15:03 +0200
User-agent: Mutt/2.2.7+47 (8681885b) vl-149028 (2022-10-10)

On 2022-10-14 06:56:13 +0100, Gavin Smith wrote:
> On Thu, Oct 13, 2022 at 11:20:24PM +0200, Vincent Lefevre wrote:
> > is not true. More precisely, I would expect
> > 
> > @macro ttie
> > @end macro
> > 
> > to generate nothing, but inserting @ttie{} in a TeX expression
> > modifies the spacing in the generated PDF.
> Please provide a minimal example showing the problem.

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

@macro ttie {}
@end macro

@deftypefun int f1 ()
@end deftypefun

@deftypefun int f2 ()
@end deftypefun


I've tested this with texinfo.tex 2022-10-01.15 (current version).
PDF generated with "texi2dvi --pdf test.texi".

pdftotext shows
  * for f1: n = −2.
  * for f2: n = − 2.

The incorrect spacing for f2 is also visible with a PDF viewer.

I suspect that for f2, TeX regards the minus sign as a subtraction
instead of the unary negation.

FYI, the goal is to have @ttie{} equivalent to @tie{} except for
PDF output (where @tie{} also gives incorrect spacing).

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]