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: Sat, 15 Oct 2022 13:52:19 +0200
User-agent: Mutt/2.2.7+47 (8681885b) vl-149028 (2022-10-10)

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 mode.  Are there other macros that would be appropriate
> > in @math?  At first glance, @var seems unique here.
> 
> It's a good question.  I understand why someone would want to use @var
> inside @math, for consistent appearance of variables.
> 
> It already appears to work well with texinfo.tex, with
> 
>   @math{@var{foo}\over @var{bar}} finds the quotient of @var{foo} by
>   @var{bar}.  @math{\sqrt{@var{radicand}}} finds the square root of
>   @var{radicand}. 
> 
> producing good results (even using the smaller font for foo and bar).

If you remember, this was fixed probably after my bug report
in November 2017: "When @var is used in exponent with the raw
formatter command, I get an error in the PDF generation"

  https://lists.gnu.org/archive/html/bug-texinfo/2017-11/msg00019.html
  https://lists.gnu.org/archive/html/bug-texinfo/2017-12/msg00000.html

> It also works well enough with MathJax with Patrice's latest change,
> using \mathit for the variable names (there appears to be no "\mathsl" so
> there is a slight difference in font style in and out of math - this
> seems unavoidable).
> 
> 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.

OK, thanks.

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