bug-texinfo
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: behavior of @math with HTML output


From: Vincent Lefevre
Subject: Re: behavior of @math with HTML output
Date: Wed, 12 Oct 2022 11:34:45 +0200
User-agent: Mutt/2.2.7+47 (8681885b) vl-149028 (2022-10-10)

On 2022-10-12 11:22:22 +0200, Patrice Dumas wrote:
> On Wed, Oct 12, 2022 at 12:40:12AM +0200, Vincent Lefevre wrote:
> > Moreover, using <em> is incorrect because things like digits should
> > not be in italics. For instance, with the GMP manual, one has about
> > mpz_mul_2exp (since r3083): "op1 times 2 raised to op2" entirely in
> > italics. There are no reasons to do that. This was added in 2000;
> > I don't know what texinfo did at that time...
> 
> Most likely <em>.
> 
> There are now other options for math formatting in HTML, but they are
> suitable for TeX/LaTeX math, not much for text describing math.  If I
> understand well your need, I think that using CSS to change how @math is
> formatted is probably the best with --css-include.  And probably
> something like
> 
> em.math { font-family:inherit }
> 
> It is possible that in 6.8 there is no math class, but in the upcoming
> release there is.

With 6.8, I can see, for instance in the generated MPFR manual:

  <em class='math'><var>d</var> times 2 raised to <var>exp</var></em>

However, the CSS solution won't work with lynx. There is no italic in
this case, but the text is still emphasized (with a different color),
which is rather disturbing.

-- 
Vincent Lefèvre <vincent@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

[Prev in Thread] Current Thread [Next in Thread]