Re: behavior of @math with HTML output

2022-10-15 Thread Vincent Lefevre
On 2022-10-14 21:11:19 -0500, Jacob Bachmeyer wrote: > Vincent Lefevre wrote: > > On 2022-10-14 07:06:03 +0100, Gavin Smith wrote: > > > On Fri, Oct 14, 2022 at 12:40:08AM +0200, Vincent Lefevre wrote: > > > [...] > > > > * mathjax is not compatible with text browsers. > > > Not a bug, working

Re: behavior of @math with HTML output

2022-10-15 Thread Gavin Smith
On Fri, Oct 14, 2022 at 09:27:22PM -0500, Jacob Bachmeyer wrote: > Vincent Lefevre wrote: > > On 2022-10-14 11:30:33 +0200, Patrice Dumas wrote: > > > On Fri, Oct 14, 2022 at 12:40:08AM +0200, Vincent Lefevre wrote: > > > > On 2022-10-13 21:15:57 +0200, Patrice Dumas wrote: > > > > All of them are

Re: behavior of @math with HTML output

2022-10-15 Thread Vincent Lefevre
On 2022-10-15 12:04:18 +0100, Gavin Smith wrote: > On Fri, Oct 14, 2022 at 09:27:22PM -0500, Jacob Bachmeyer wrote: > > Since "var" actually is a TeX macro (Texinfo works by adjusting TeX's > > configuration to make @ introduce commands, like backslash does in plain > > TeX), would the correct

Re: behavior of @math with HTML output

2022-10-15 Thread Vincent Lefevre
On 2022-10-15 12:32:00 +0100, Gavin Smith wrote: > On Fri, Oct 14, 2022 at 09:27:22PM -0500, Jacob Bachmeyer wrote: > > TeX has an \ifmmode conditional that is true in math mode; @var/\var and > > other marking macros could be adjusted to mark their arguments appropriately > > when invoked in math

Re: behavior of @math with HTML output

2022-10-15 Thread Patrice Dumas
On Sat, Oct 15, 2022 at 12:32:00PM +0100, Gavin Smith wrote: > > l2h and t4h settings still output "@var" literally even with > '-c CONVERT_TO_LATEX_IN_MATH=1'. I'm going to spend some time > investigating this. I think that I fixed it. CONVERT_TO_LATEX_IN_MATH is set in the default case if

Re: behavior of @math with HTML output

2022-10-15 Thread Patrice Dumas
On Fri, Oct 14, 2022 at 12:40:08AM +0200, Vincent Lefevre wrote: > * Concerning t4h, > @math{@var{base} \le 16}, > yields "@varbase ≤ 16 ,", so @var doesn't work (while it is needed > to ensure exactly the same typography/code as outside @math, e.g. > base) and there is a

Re: behavior of @math with HTML output

2022-10-15 Thread Gavin Smith
On Sat, Oct 15, 2022 at 02:28:54PM +0200, Patrice Dumas wrote: > On Sat, Oct 15, 2022 at 12:32:00PM +0100, Gavin Smith wrote: > > > > l2h and t4h settings still output "@var" literally even with > > '-c CONVERT_TO_LATEX_IN_MATH=1'. I'm going to spend some time > > investigating this. > > I

Re: behavior of @math with HTML output

2022-10-15 Thread Vincent Lefevre
On 2022-10-14 21:27:22 -0500, Jacob Bachmeyer wrote: > Vincent Lefevre wrote: > > I assumed that this was for commands that exist in plain TeX, which > > is not the case of @var. > > Since "var" actually is a TeX macro (Texinfo works by adjusting TeX's > configuration to make @ introduce

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: behavior of @math with HTML output

2022-10-15 Thread Gavin Smith
On Fri, Oct 14, 2022 at 09:27:22PM -0500, Jacob Bachmeyer wrote: > TeX has an \ifmmode conditional that is true in math mode; @var/\var and > other marking macros could be adjusted to mark their arguments appropriately > when invoked in math mode. Are there other macros that would be appropriate

Re: behavior of @math with HTML output

2022-10-15 Thread Patrice Dumas
On Sat, Oct 15, 2022 at 01:52:57PM +0100, Gavin Smith wrote: > On Sat, Oct 15, 2022 at 02:28:54PM +0200, Patrice Dumas wrote: > > On Sat, Oct 15, 2022 at 12:32:00PM +0100, Gavin Smith wrote: > > > > > > l2h and t4h settings still output "@var" literally even with > > > '-c

Re: behavior of @math with HTML output

2022-10-15 Thread Patrice Dumas
On Sat, Oct 15, 2022 at 03:43:00PM +0100, Gavin Smith wrote: > On Sat, Oct 15, 2022 at 03:20:22PM +0200, Patrice Dumas wrote: > > Should be done for latex2html too. I still haven't finished handling > > @latex blocks correctly, but should be done soon. > > I doubt it is correct to convert the

Re: behavior of @math with HTML output

2022-10-15 Thread Gavin Smith
On Sat, Oct 15, 2022 at 03:20:22PM +0200, Patrice Dumas wrote: > Should be done for latex2html too. I still haven't finished handling > @latex blocks correctly, but should be done soon. I doubt it is correct to convert the contents of @latex and @tex blocks when outputting HTML unless --iflatex

Re: `@cartouche` at top-of-page sticks out vertically

2022-10-15 Thread Werner LEMBERG
>> I tried working on the right margin of the cartouche but I didn't >> figure it out in the time I spent on it. I didn't really >> understand what was going on with \hskip in \ctr and other macros. > > I've finally fixed it in commit cbd794cbbd, texinfo.tex version > 2022-10-15.20. Now the

Re: info -w is slow for man pages

2022-10-15 Thread Eli Zaretskii
> Date: Sat, 15 Oct 2022 23:58:53 +0200 > From: Hilmar Preusse > > I noticed that "info -w" is puzzlingly slow when the argument is a man page: > > $ time -p info -w ffmpeg-all > *manpages* > real 1.06 > user 1.47 > sys 0.16 > > In contrast, "man -w" is near-instantaneous:

info -o: exit status 0 on error

2022-10-15 Thread Hilmar Preusse
Dear developers, "info -o" exits with status 0 when it can't find the node: $ info -o /dev/null lolcow info: No menu item 'lolcow' in node '(dir)Top' $ echo $? 0 In contrast, if I omit the -o option, it exits with status 1, as it should: $ info lolcow info: No menu

[PATCH] Fix punctuation in "Info Format: Cross-reference"

2022-10-15 Thread Jakub Wilk
--- doc/texinfo.texi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/texinfo.texi b/doc/texinfo.texi index 2f31fce9e4..6f2e0cc161 100644 --- a/doc/texinfo.texi +++ b/doc/texinfo.texi @@ -24091,7 +24091,7 @@ In both forms the @t{} refers to a node or anchor, in the same

Re: [PATCH] Fix punctuation in "Info Format: Cross-reference"

2022-10-15 Thread Gavin Smith
On Sat, Oct 15, 2022 at 05:36:36PM +0200, Jakub Wilk wrote: > --- > doc/texinfo.texi | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/doc/texinfo.texi b/doc/texinfo.texi > index 2f31fce9e4..6f2e0cc161 100644 > --- a/doc/texinfo.texi > +++ b/doc/texinfo.texi > @@ -24091,7

Re: `@cartouche` at top-of-page sticks out vertically

2022-10-15 Thread Gavin Smith
On Mon, Sep 05, 2022 at 09:16:30PM +0100, Gavin Smith wrote: > On Sat, Sep 03, 2022 at 01:49:40PM +, Werner LEMBERG wrote: > > For consistency I think it would be better if `@cartouche` obeyed the > I tried working on the right margin of the cartouche but I didn't > figure it out in the time

Re: behavior of @math with HTML output

2022-10-15 Thread Jacob Bachmeyer
Vincent Lefevre wrote: On 2022-10-15 12:04:18 +0100, Gavin Smith wrote: On Fri, Oct 14, 2022 at 09:27:22PM -0500, Jacob Bachmeyer wrote: Since "var" actually is a TeX macro (Texinfo works by adjusting TeX's configuration to make @ introduce commands, like backslash does in plain TeX),

Re: behavior of @math with HTML output

2022-10-15 Thread Jacob Bachmeyer
Gavin Smith wrote: On Fri, Oct 14, 2022 at 09:27:22PM -0500, Jacob Bachmeyer wrote: TeX has an \ifmmode conditional that is true in math mode; @var/\var and other marking macros could be adjusted to mark their arguments appropriately when invoked in math mode. Are there other macros that

info -w is slow for man pages

2022-10-15 Thread Hilmar Preusse
Dear developers, I noticed that "info -w" is puzzlingly slow when the argument is a man page: $ time -p info -w ffmpeg-all *manpages* real 1.06 user 1.47 sys 0.16 In contrast, "man -w" is near-instantaneous: $ time -p man -w ffmpeg-all

Re: behavior of @math with HTML output

2022-10-15 Thread Jacob Bachmeyer
Vincent Lefevre wrote: On 2022-10-14 21:11:19 -0500, Jacob Bachmeyer wrote: Vincent Lefevre wrote: On 2022-10-14 07:06:03 +0100, Gavin Smith wrote: On Fri, Oct 14, 2022 at 12:40:08AM +0200, Vincent Lefevre wrote: [...] * mathjax is not compatible with text browsers.