Re: behavior of @math with HTML output

2022-10-14 Thread Jacob Bachmeyer
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 buggy: * Concerning t4h, @math{@var{base} \le 16}, yields "@varbase ≤

Re: behavior of @math with HTML output

2022-10-14 Thread Jacob Bachmeyer
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 as designed. Also broken design as there is no correct fallb

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 b

Re: behavior of @math with HTML output

2022-10-14 Thread Vincent Lefevre
On 2022-10-14 20:52:38 +0100, Gavin Smith wrote: > Rendering mathematical notation in a text terminal can work well for > very simple formulae but breaks down for more complex formulae, like > > J_v(z) = \sum_{k=0}^{\infty }{{{\left(-1\right)^{k}\,\left(z\over > 2\right)^{v+2\,k} > }\over{k!\,\G

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 @m

Re: behavior of @math with HTML output

2022-10-14 Thread Patrice Dumas
On Fri, Oct 14, 2022 at 04:33:54PM +0200, Vincent Lefevre wrote: > Wikipedia has an article about kerning, but not with a good example > of how ugly and disturbing the lack of kerning can be. I suggest > that you look at > > > https://tex.stackexchange.com/questions/448069/fix-ugly-kerning-in-e

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 () > @math{@var{n}@ttie{}=@tti

Re: behavior of @math with HTML output

2022-10-14 Thread Gavin Smith
On Fri, Oct 14, 2022 at 07:06:04AM +0100, Gavin Smith 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: > > > I agree with Gavin, you should not use @math if you want normal text, > > > but given that there is now good s

Re: behavior of @math with HTML output

2022-10-14 Thread Gavin Smith
On Fri, Oct 14, 2022 at 08:40:58AM -0700, Raymond Toy wrote: > > I tested the page > > https://mathjax.github.io/MathJax-demos-web/tex-chtml.html > > with lynx (there are no Texinfo manuals with mathjax enabled I know of, > > if anybody knows about one, please tell me), and the result seems good >

Re: behavior of @math with HTML output

2022-10-14 Thread Vincent Lefevre
On 2022-10-14 08:40:58 -0700, Raymond Toy wrote: > For one example of a texinfo doc using Mathjax, see > https://maxima.common-lisp.dev/. In particular, you can look at > https://maxima.common-lisp.dev/docs/maxima_79.html. A maxima user (who > might be blind?) says that the MathJax-enabled formul

Re: behavior of @math with HTML output

2022-10-14 Thread Raymond Toy
On Fri, Oct 14, 2022 at 7:02 AM Patrice Dumas wrote: > On Fri, Oct 14, 2022 at 01:31:20PM +0200, Vincent Lefevre wrote: > > > On Fri, Oct 14, 2022 at 12:40:08AM +0200, Vincent Lefevre wrote: > > > > > > > > * l2h generates image files as documented, which have many > drawbacks > > > > (do n

Re: behavior of @math with HTML output

2022-10-14 Thread Vincent Lefevre
On 2022-10-14 16:08:59 +0200, Patrice Dumas wrote: > I was probably unclear, I just wanted to add an information on > ligatures, it was not related to kerning (I do not actually really > know what kerning is...). Wikipedia has an article about kerning, but not with a good example of how ugly and d

Re: behavior of @math with HTML output

2022-10-14 Thread Vincent Lefevre
On 2022-10-14 16:01:58 +0200, Patrice Dumas wrote: > On Fri, Oct 14, 2022 at 01:31:20PM +0200, Vincent Lefevre wrote: > > > On Fri, Oct 14, 2022 at 12:40:08AM +0200, Vincent Lefevre wrote: > > > > > > > > * l2h generates image files as documented, which have many drawbacks > > > > (do not wo

Re: behavior of @math with HTML output

2022-10-14 Thread Patrice Dumas
On Fri, Oct 14, 2022 at 03:50:51PM +0200, Vincent Lefevre wrote: > > No, it is for all the @-commands, and, in my opinion, the sentence is > > clear as is. But do not hesitate to propose changes in the manual if > > you think it can be ameliorated. > > What I thought was that plain TeX was render

Re: behavior of @math with HTML output

2022-10-14 Thread Patrice Dumas
On Fri, Oct 14, 2022 at 01:31:20PM +0200, Vincent Lefevre wrote: > > On Fri, Oct 14, 2022 at 12:40:08AM +0200, Vincent Lefevre wrote: > > > > > > * l2h generates image files as documented, which have many drawbacks > > > (do not work with text browsers, not accessible, font size issues > > >

Re: behavior of @math with HTML output

2022-10-14 Thread Vincent Lefevre
On 2022-10-14 15:15:40 +0200, Patrice Dumas wrote: > On Fri, Oct 14, 2022 at 01:41:20PM +0200, Vincent Lefevre wrote: > > On 2022-10-14 11:30:33 +0200, Patrice Dumas wrote: > > > "In general, the contents of @math or @displaymath should be plain TeX > > > only, with no interspersed Texinfo command

Re: behavior of @math with HTML output

2022-10-14 Thread Patrice Dumas
On Fri, Oct 14, 2022 at 01:41:20PM +0200, Vincent Lefevre wrote: > On 2022-10-14 11:30:33 +0200, Patrice Dumas wrote: > > "In general, the contents of @math or @displaymath should be plain TeX > > only, with no interspersed Texinfo commands." > > I assumed that this was for commands that exist in

Re: behavior of @math with HTML output

2022-10-14 Thread Vincent Lefevre
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 buggy: > > * Concerning t4h, > > @math{@var{base} \le 16}, > > yields "@varbase ≤ 16 ,", so @v

Re: behavior of @math with HTML output

2022-10-14 Thread Vincent Lefevre
On 2022-10-14 07:06:03 +0100, Gavin Smith 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: > > > I agree with Gavin, you should not use @math if you want normal text, > > > but given that there is now good support of Te

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 in

Re: behavior of @math with HTML output

2022-10-14 Thread Patrice Dumas
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 buggy: > * Concerning t4h, > @math{@var{base} \le 16}, > yields "@varbase ≤ 16 ,", so @var doesn't work (while it is needed > to ensure exactly the