bug-texinfo
[Top][All Lists]
Advanced

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

Re: incorrect @math spacing for PDF output with an empty macro


From: Gavin Smith
Subject: Re: incorrect @math spacing for PDF output with an empty macro
Date: Sat, 15 Oct 2022 11:26:06 +0100

On Sat, Oct 15, 2022 at 12:40:04AM +0200, Vincent Lefevre wrote:
> > In your use case, you can avoid line breaks using the @w command:
> > 
> > @deftypefun int f4 ()
> > @w{@math{@var{n} = -2}}.
> > @end deftypefun
> 
> If the @w ignored in math mode?

No, the contents of @w are not split across lines.

> The manual just says:
> 
>    The space from '@w{ }', as well as being non-breakable, also will not
> stretch or shrink.  Sometimes that is what you want, for instance if
> you're doing manual indenting.  However, usually you want a normal
> interword space that does stretch and shrink (in the printed output);
> for that, see the '@tie' command in the next section.
>
> For PDF output, I want the spaces to be the usual ones that are
> generated in math mode.

The spaces in math mode are not usual interword spaces as math mode formatting
is very different to regualar paragraph formatting.



reply via email to

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