On 2022-10-15 11:26:06 +0100, Gavin Smith wrote:
> 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.

The spaces in math mode can normally stretch and shrink (not in
the same way as outside of math mode, though). But there are some
TeX commands that changes spaces to fixed spaces in math mode.
I just wanted to be sure that @w did not change anything in this
respect.

-- 
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)

Reply via email to