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.