[NTG-context] Characters allowed in macro names

N. Raghavendra nyraghu27132 at gmail.com
Sun Apr 22 20:22:11 CEST 2018


At 2018-04-22T20:08:34+02:00, Wolfgang Schuster wrote:

> You can use the following example as test.
>
> %%%% begin example
> \starttext
>
> \def\hello-1{Hello \letterhash 1}
>
> \def\hello-2{Hello \letterhash 2}
>
> \hello-1
>
> \hello-2
>
> \stoptext
> %%%% end example
>
> Here I create a command named \hello which has to be followed by “-1"
> and "-2".
>
> When you run TeX on this example you get the following error message:
>
> %%%% begin error message
> tex error       > tex error on line 7 in file /Users/wolf/TeX/test/
> test.tex: ! Use of \hello doesn't match its definition
>
> l.7 \hello-1
> %%%% end error message

Yes, I get that error.  Thanks for the explanation.

Raghu.

--
N. Raghavendra <raghu at hri.res.in>, http://www.retrotexts.net/
Harish-Chandra Research Institute, http://www.hri.res.in/


More information about the ntg-context mailing list