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: Jacob Bachmeyer
Subject: Re: behavior of @math with HTML output
Date: Sat, 15 Oct 2022 18:43:37 -0500
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.8.1.22) Gecko/20090807 SeaMonkey/1.1.17 Mnenhy/0.7.6.0

Vincent Lefevre wrote:
On 2022-10-15 12:04:18 +0100, Gavin Smith wrote:
On Fri, Oct 14, 2022 at 09:27:22PM -0500, Jacob Bachmeyer wrote:
Since "var" actually is a TeX macro (Texinfo works by adjusting TeX's
configuration to make @ introduce commands, like backslash does in plain
TeX), would the correct syntax be "@math{\var{base} \le 16}" for the example
above?
No, "plain TeX" means the plain TeX format of Donald Knuth.  It does
not include Texinfo commands like @var.  If @math{\var{base} \le 16} does
work then this is only by accident, and it will only work with texinfo.tex not anywhere else.

But since it is used only with texinfo.tex, this is fine. I suspect
that texinfo.tex defines this macro, and if it didn't, the writer of
the manual could do that (but texinfo.tex is the right place in order
to ensure a style consistent with the use of @var outside of @math).

It does and it must for @var to work -- TeX only has one namespace for control sequences and texinfo.tex works by changing the character used to introduce a control sequence. (This means that TeX primitives are available when using texinfo.tex, for example, as @hbox, but the other Texinfo processors will barf if you use them like that.)


-- Jacob




reply via email to

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