Re: behavior of @math with HTML output

2022-10-13 Thread Gavin Smith
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 TeX math in texi2any for > > HTML with any of the 3 HTML_MA

Re: behavior of @math with HTML output

2022-10-13 Thread Gavin Smith
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 the generated PDF. Please provide a minimal example showing the

Re: behavior of @math with HTML output

2022-10-13 Thread Vincent Lefevre
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 TeX math in texi2any for > HTML with any of the 3 HTML_MATH option, All of them are buggy: * l2h generates image files as docum

Re: behavior of @math with HTML output

2022-10-13 Thread Vincent Lefevre
On 2022-10-13 19:17:13 +0100, Gavin Smith wrote: > On Thu, Oct 13, 2022 at 11:57:26AM +0200, Vincent Lefevre wrote: > > The GMP manual has the following: > > > > @c @m{T,N} is $T$ in tex or @math{N} otherwise. Commas in N or T don't > > work, > > @c but @C{} can be used instead. > > @iftex > >

Re: math in TeX in @inlinefmtifelse not expanded

2022-10-13 Thread Gavin Smith
On Thu, Oct 13, 2022 at 10:28:26PM +0200, Patrice Dumas wrote: > Hello, > > With TeX, the following leads to \times being output as text and not as a > symbol: > > @inlinefmtifelse{info, something, @math{a \times 2}}. > > I attach a file that can be used to check the result in that case and > wi

math in TeX in @inlinefmtifelse not expanded

2022-10-13 Thread Patrice Dumas
Hello, With TeX, the following leads to \times being output as text and not as a symbol: @inlinefmtifelse{info, something, @math{a \times 2}}. I attach a file that can be used to check the result in that case and without @inlinefmtifelse. -- Pat d.texi Description: TeXInfo document

Re: with HTML output, @minus{} is converted to a hyphen instead of a real minus character

2022-10-13 Thread Patrice Dumas
On Thu, Oct 13, 2022 at 07:42:40PM +0100, Gavin Smith wrote: > I think just output it as −, or as the numeric entity or raw > UTF-8 character depending on settings. Ok, done. > I guess it was not output as − because this was not an entity in > older versions of HTML, or it wasn't supported by bro

Re: with HTML output, @minus{} is converted to a hyphen instead of a real minus character

2022-10-13 Thread Patrice Dumas
On Thu, Oct 13, 2022 at 02:25:29AM +0200, Vincent Lefevre wrote: > > Character references such as "−" should be avoided in XHTML > files (in case they are supported as output) because they are not > necessarily loaded by XML parsers. Indeed, to do XHTML, it is better to use numeric entities. For

Re: with HTML output, @minus{} is converted to a hyphen instead of a real minus character

2022-10-13 Thread Patrice Dumas
On Thu, Oct 13, 2022 at 02:04:53AM +0200, Vincent Lefevre wrote: > > The default and effect depends on the output format. In the upcoming > > release, this is now: > > > > --disable-encoding do not output accented and special characters > > in Info outpu

Re: behavior of @math with HTML output

2022-10-13 Thread Patrice Dumas
On Thu, Oct 13, 2022 at 11:57:26AM +0200, Vincent Lefevre wrote: > The GMP manual has the following: > > @c @m{T,N} is $T$ in tex or @math{N} otherwise. Commas in N or T don't work, > @c but @C{} can be used instead. > @iftex > @macro m {T,N} > @tex$\T\$@end tex > @end macro > @end iftex > @ifn

Re: with HTML output, @minus{} is converted to a hyphen instead of a real minus character

2022-10-13 Thread Gavin Smith
On Wed, Oct 12, 2022 at 11:11:53AM +0200, Patrice Dumas wrote: > On Wed, Oct 12, 2022 at 01:13:07AM +0200, Vincent Lefevre wrote: > > With Texinfo 6.8 and HTML output, @minus{} is converted to a hyphen > > instead of a real minus character (U+2212 MINUS SIGN). > > It is actually not clear to me wh

Re: with HTML output, @minus{} is converted to a hyphen instead of a real minus character

2022-10-13 Thread Gavin Smith
On Wed, Oct 12, 2022 at 09:26:43PM +0200, Patrice Dumas wrote: > On Wed, Oct 12, 2022 at 01:46:28PM +0200, Vincent Lefevre wrote: > > BTW, I thought that --enable-encoding was the default. But after, > > testing, it isn't. The makeinfo(1) man page should be clarified. > > Instead of > > > >

Re: behavior of @math with HTML output

2022-10-13 Thread Gavin Smith
On Thu, Oct 13, 2022 at 11:57:26AM +0200, Vincent Lefevre wrote: > On 2022-10-13 06:48:49 +0100, Gavin Smith wrote: > > This is the default if MathJax is not turned on or tex4ht or latex2html > > are not used. The tag marks the text as separate. There is not > > much more that could be done - te

Re: behavior of @math with HTML output

2022-10-13 Thread Vincent Lefevre
On 2022-10-13 06:48:49 +0100, Gavin Smith wrote: > This is the default if MathJax is not turned on or tex4ht or latex2html > are not used. The tag marks the text as separate. There is not > much more that could be done - texi2any does not itself interpret > TeX math notation at all and is not go