bug-texinfo
[Top][All Lists]
Advanced

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

Re: Texinfo TeX accepts LaTeX math, how?


From: Raymond Toy
Subject: Re: Texinfo TeX accepts LaTeX math, how?
Date: Mon, 26 Oct 2020 11:29:49 -0700



On Mon, Oct 26, 2020 at 9:45 AM Gavin Smith <gavinsmith0123@gmail.com> wrote:
On Mon, Oct 26, 2020 at 11:58:56AM +0100, Patrice Dumas wrote:
> Hello,
>
> Surprisingly (for me), the @displaymath example in the Texinfo manual
> works when producing a pdf using texi2dvi.  However, it uses \frac{}{},
> which is not not a plain TeX construct, as far as I know.  How is that
> possible?  If the math in Texinfo is "LaTeX math" it is much simpler for
> writers, as "plain TeX math" is less known that "LaTeX math" but also
> for math rendering in HTML, as it means that latex2html can be used
> without trouble and htlatex can be used instead of httex.

I added \frac to texinfo.tex very recently as it is easy to implement
and probably the most missed LaTeX command by far.  However, it could
be confusing to use in the manual as it wouldn't get over that plain
TeX should be used.

Being able to use \frac is pretty confusing.  If \frac worked, I would naively expect all the other latex commands to work, but it doesn't.

I've never actually used plain tex (until very recently to write math with texinfo), and googling for how to write math with plain tex is hard because searches almost always brings up variants on latex or amstex. So having @math and friends support latex (or amstex) would be ideal.  Until then, I'll have to continue to add various iffoo to control the input form of the math when using info, pdf, and html output.

> If it is not the same as LaTeX math, but a superset of plain TeX math,
> could you tell me how I can modify the TeX file produced by tex4ht.pm
> for httex such that there is support of the same constructs in math
> rendering through tex4ht?  Right now, \frac appears as undefined when
> processing with httex.

In that case it would be simpler just to use \over in the example.
Another option is to use htlatex instead (if there is such a program),
but that could be problematic if there are any important usages of
plain TeX that don't work with LaTeX.



--
Ray

reply via email to

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