bug-texinfo
[Top][All Lists]
Advanced

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

Re: MathJax support in texi2any


From: Gavin Smith
Subject: Re: MathJax support in texi2any
Date: Sun, 25 Oct 2020 17:15:13 +0000
User-agent: Mutt/1.9.4 (2018-02-28)

On Sun, Oct 25, 2020 at 05:55:28PM +0100, Patrice Dumas wrote:
> On Sat, Oct 17, 2020 at 09:48:15PM +0100, Gavin Smith wrote:
> > On Tue, Oct 13, 2020 at 01:40:44AM +0200, Patrice Dumas wrote:
> > > @displaymath
> > > a+b
> > > @end displaymath
> > 
> > @displaymath is implemented now (in both texi2any and texinfo.tex).
> 
> In texi2any, @displaymath is processed as raw environment which means
> that the @-commands are not interpreted.  I think that it would be
> better if it was parsed like @math, that is matching braces and
> @-commands are considered.
> 
> What do you think?

Processing @-commands within @displaymath could be useful for using
@macro's and consistency with @math.  Apart from that, the only
command that I can imagine people having to use inside @displaymath
would be @@ to get an @.

I don't think it matters that much.  Would you be able to implement it?
I made @displaymath a lot like @verbatim, but maybe there is another
command that is more appropriate.

People might also put other Texinfo commands inside the block, like
@sub or @sup, but that shouldn't be encouraged, as that won't work
with MathJax.  (Also, \mathopsup won't work with MathJax either.)



reply via email to

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