[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: @macro to accept hyphen
From: |
Christopher Dimech |
Subject: |
Re: @macro to accept hyphen |
Date: |
Sun, 8 Nov 2020 01:15:06 +0100 |
Did not know about the doubling \\. How is that? Could you include an example
of a macro with Mathematical expression? Have written an example for you.
@macro Mtk
@tex
In spherical coordinates, the Laplacian Operator is $\\nabla^2 \\phi(r)$.
$$\\nabla^2 \\phi(r) =
{1 \\over r^2} {\\partial \\over \\partial r}
\\bigg\\lbrack r^2 {\\partial \\phi \\over \\partial r}\\bigg\\rbrack$$
@end tex
@end macro
@Mtk
> Sent: Saturday, November 07, 2020 at 11:47 PM
> From: "Gavin Smith" <gavinsmith0123@gmail.com>
> To: "Christopher Dimech" <dimech@gmx.com>
> Cc: "help-texinfo gnu" <help-texinfo@gnu.org>
> Subject: Re: @macro to accept hyphen
>
> On Sat, Nov 07, 2020 at 11:29:54PM +0100, Christopher Dimech wrote:
> >
> > I have seen that mathematical expressions are not displayed
> > when called within a macro.
> >
> > @macro Regu
> > @tex
> > \alpha
> > @end tex
> > @end macro
> >
> > @Regu
> >
> > @tex
> > \beta
> > @end tex
>
> \alpha and \beta need to be in math mode, and the macro works OK if
> you double the backslash.
>
>
> @macro Regu
> @tex
> $\\alpha$
> @end tex
> @end macro
>
> @Regu
>
> @tex
> $\beta$
> @end tex
>
>
- @macro to accept hyphen, Christopher Dimech, 2020/11/07
- Re: @macro to accept hyphen, Gavin Smith, 2020/11/07
- Re: @macro to accept hyphen, Christopher Dimech, 2020/11/07
- Re: @macro to accept hyphen, Gavin Smith, 2020/11/07
- Re: @macro to accept hyphen,
Christopher Dimech <=
- Re: @macro to accept hyphen, Gavin Smith, 2020/11/08
- Re: @macro to accept hyphen, Christopher Dimech, 2020/11/08
- Re: @macro to accept hyphen, Gavin Smith, 2020/11/09
- Re: @macro to accept hyphen, Patrice Dumas, 2020/11/09
- Re: @macro to accept hyphen, Christopher Dimech, 2020/11/09
- @bnumpaper , @cnumpaper, Christopher Dimech, 2020/11/08
- Re: @bnumpaper , @cnumpaper, Gavin Smith, 2020/11/08
- Re: @bnumpaper , @cnumpaper, Christopher Dimech, 2020/11/08