[Top][All Lists]

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

Re: behavior of @math with HTML output

From: Patrice Dumas
Subject: Re: behavior of @math with HTML output
Date: Wed, 12 Oct 2022 11:22:22 +0200

On Wed, Oct 12, 2022 at 12:40:12AM +0200, Vincent Lefevre wrote:
> The Texinfo manual says
>    The '@math' command has no special effect on the Info output or (by
> default) the HTML output, merely outputting the contents verbatim.
> However, as said later, the contents are emphasized (with <em>).
> So the description is inconsistent.

The correct description is that the contents are emphasized.  I agree
that the manual could be changed.

> 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.


reply via email to

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