On Mon, Nov 16, 2020 at 12:43:33AM +0100, Patrice Dumas wrote: > On Sat, Nov 14, 2020 at 05:25:56PM +0000, Gavin Smith wrote: > > On Sat, Nov 14, 2020 at 05:17:16PM +0100, Patrice Dumas wrote: > > > On Sat, Nov 14, 2020 at 08:49:05AM +0000, Gavin Smith wrote: > > > > > > > > This works perfectly with TeX as far as I can see, but unfortunately > > > > not with texi2any at present. This could be changed to make > > > > @displaymath more like @example, where Texinfo commands are interpreted, > > > > and less like @verbatim where they are not. > > > > > > I think that even better would be that it is parsed the same way as > > > @math, with braces balanced handled even if not associated with > > > @-commands and @-commands interpreted. > > > > > > I can do that for the perl parser. > > > > Great, thank you. > > It is done. The test results are not synced anymore (in particular because > the @end displaymath disappeared in texis results), but it doesn't make much > sense to sync them, the XS parser should be changed instead. > > A side effect of that change is that the @-commands in general are now > formatted in @displaymath, but I think that we do not really care, > in general @-commands should not appear in @displaymath.
I will look it in the next few days but the XS parser and Perl parser need to be kept in sync, otherwise the XS parser will become useless.
