[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Macros inside @displaymath
From: |
Christopher Dimech |
Subject: |
Re: Macros inside @displaymath |
Date: |
Mon, 16 Nov 2020 01:02:10 +0100 |
Patrice,
So now we can de the following
@macro Exp
\\mathop{\\rm exp}
@end macro
@displaymath
@exp
@end displaymath
I suggest that instead of using @macro, we create an alias so that users write
@gdef Exp
\\mathop{\\rm exp}
@end gdef
@displaymath
@exp
@end displaymath
> Sent: Monday, November 16, 2020 at 12:43 AM
> From: "Patrice Dumas" <pertusus@free.fr>
> To: "Gavin Smith" <gavinsmith0123@gmail.com>
> Cc: "Christopher Dimech" <dimech@gmx.com>, "help-texinfo gnu"
> <help-texinfo@gnu.org>
> Subject: Re: Macros inside @displaymath
>
> 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.
>
> --
> Pat
>
- Re: MathJax problem with \gdef, (continued)
- Re: MathJax problem with \gdef, Christopher Dimech, 2020/11/12
- Re: MathJax problem with \gdef, Patrice Dumas, 2020/11/12
- Re: MathJax problem with \gdef, Christopher Dimech, 2020/11/12
- Re: MathJax problem with \gdef, Christopher Dimech, 2020/11/12
- Re: MathJax problem with \gdef, Patrice Dumas, 2020/11/12
- Re: MathJax problem with \gdef, Christopher Dimech, 2020/11/12
- Macros inside @displaymath, Gavin Smith, 2020/11/14
- Re: Macros inside @displaymath, Patrice Dumas, 2020/11/14
- Re: Macros inside @displaymath, Gavin Smith, 2020/11/14
- Re: Macros inside @displaymath, Patrice Dumas, 2020/11/15
- Re: Macros inside @displaymath,
Christopher Dimech <=
- Re: Macros inside @displaymath, Gavin Smith, 2020/11/16
- Re: Macros inside @displaymath, Patrice Dumas, 2020/11/16
- Re: Macros inside @displaymath, Gavin Smith, 2020/11/16
- Re: Macros inside @displaymath, Patrice Dumas, 2020/11/16
- Re: Macros inside @displaymath, Christopher Dimech, 2020/11/14