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

2022-10-26 Thread Gavin Smith
On Wed, Oct 26, 2022 at 11:51:30PM +0200, Vincent Lefevre wrote: > On 2022-10-26 21:31:24 +0200, Patrice Dumas wrote: > > On Wed, Oct 26, 2022 at 12:43:02PM +0200, Vincent Lefevre wrote: > > > For long formulas, it may be better to have separate text for TeX and > > > for the other formats (we

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

2022-10-26 Thread Vincent Lefevre
On 2022-10-26 21:31:24 +0200, Patrice Dumas wrote: > On Wed, Oct 26, 2022 at 12:43:02PM +0200, Vincent Lefevre wrote: > > For long formulas, it may be better to have separate text for TeX and > > for the other formats (we already have a macro for that): for long > > formulas in TeX, a centered

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

2022-10-26 Thread Patrice Dumas
On Wed, Oct 26, 2022 at 12:43:02PM +0200, Vincent Lefevre wrote: > For long formulas, it may be better to have separate text for TeX and > for the other formats (we already have a macro for that): for long > formulas in TeX, a centered formula is generally preferred, with > @displaymath I assume.

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

2022-10-26 Thread Vincent Lefevre
On 2022-10-26 11:13:04 +0200, Patrice Dumas wrote: > On Wed, Oct 26, 2022 at 02:44:17AM +0200, Vincent Lefevre wrote: > > However, for the Info output at least (and I assume that this is > > also the case for the HTML output), @w is really necessary. See > > the differences: > > Indeed. However,

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

2022-10-26 Thread Vincent Lefevre
On 2022-10-26 09:44:05 +0100, Gavin Smith wrote: > On Wed, Oct 26, 2022 at 02:44:17AM +0200, Vincent Lefevre wrote: > > > In theory, there could be better output if we could change the size > > > of spaces inside of @w, but I doubt that there is a good way of > > > achieving this in TeX. > > > >

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

2022-10-26 Thread Patrice Dumas
On Wed, Oct 26, 2022 at 02:44:17AM +0200, Vincent Lefevre wrote: > However, for the Info output at least (and I assume that this is > also the case for the HTML output), @w is really necessary. See > the differences: Indeed. However, for longer formulas, there will be a point where breaking the

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

2022-10-26 Thread Gavin Smith
On Wed, Oct 26, 2022 at 02:44:17AM +0200, Vincent Lefevre wrote: > > In theory, there could be better output if we could change the size > > of spaces inside of @w, but I doubt that there is a good way of > > achieving this in TeX. > > I had looked at tex.stackexchange.com and found > >

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

2022-10-25 Thread Vincent Lefevre
On 2022-10-25 14:42:20 +0100, Gavin Smith wrote: > On Tue, Oct 25, 2022 at 02:41:48PM +0200, Vincent Lefevre wrote: > > @w doesn't work correctly in math mode: > > > > > > \input texinfo@c -*-texinfo-*- > > @documentencoding UTF-8 >

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

2022-10-25 Thread Gavin Smith
On Tue, Oct 25, 2022 at 02:41:48PM +0200, Vincent Lefevre wrote: > @w doesn't work correctly in math mode: > > > \input texinfo@c -*-texinfo-*- > @documentencoding UTF-8 > > @node Top > @node Test > > Formatting test. > >

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

2022-10-25 Thread Vincent Lefevre
On 2022-10-16 12:18:51 +0100, Gavin Smith wrote: > On Sat, Oct 15, 2022 at 12:40:32PM +0200, Vincent Lefevre wrote: > > 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

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

2022-10-16 Thread Gavin Smith
On Sat, Oct 15, 2022 at 12:40:32PM +0200, Vincent Lefevre wrote: > 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

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

2022-10-15 Thread Vincent Lefevre
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

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

2022-10-15 Thread Gavin Smith
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

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

2022-10-14 Thread Jacob Bachmeyer
Vincent Lefevre wrote: On 2022-10-14 21:42:27 +0100, Gavin Smith 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? [...] For PDF output, I want the spaces to

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

2022-10-14 Thread Vincent Lefevre
On 2022-10-14 21:42:27 +0100, Gavin Smith wrote: > On Fri, Oct 14, 2022 at 01:15:03PM +0200, Vincent Lefevre wrote: > > FYI, the goal is to have @ttie{} equivalent to @tie{} except for > > PDF output (where @tie{} also gives incorrect spacing). > > I see. As ever, using Texinfo commands inside

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

2022-10-14 Thread Gavin Smith
On Fri, Oct 14, 2022 at 01:15:03PM +0200, Vincent Lefevre wrote: > > \input texinfo@c -*-texinfo-*- > > @macro ttie {} > @end macro > > @deftypefun int f1 () > @math{@var{n}=-2}. > @end deftypefun > > @deftypefun int f2 () >

incorrect @math spacing for PDF output with an empty macro

2022-10-14 Thread Vincent Lefevre
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