help-texinfo
[Top][All Lists]
Advanced

[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: Sat, 7 Nov 2020 23:29:54 +0100

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

> Sent: Saturday, November 07, 2020 at 10:38 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 08:23:50PM +0100, Christopher Dimech wrote:
> > Would it be possible to allow macro names to use hyphens?
> >
> > @macro Regexp-EsnStruct
> >   Body
> > @end macro
>
> It's a reasonable question, but it could cause horrendous problems
> with TeX.  There is already special treatment of hyphens in various
> contexts (monospaced font, URL's, etc.) and trying to support hyphens
> in macro names could easily break in one of these contexts.  In fact,
> digits are not even supported: only the 26 lower-case letters and 26
> upper-case letters.
>



reply via email to

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