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