From: "N. Raghavendra" <nyraghu27132@gmail.com>
To: ntg-context@ntg.nl
Subject: Re: Characters allowed in macro names
Date: Sun, 22 Apr 2018 23:52:11 +0530 [thread overview]
Message-ID: <87fu3ndru4.fsf@gmail.com> (raw)
In-Reply-To: <5ADCCFA2.4030908@gmail.com> (Wolfgang Schuster's message of "Sun, 22 Apr 2018 20:08:34 +0200")
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@hri.res.in>, http://www.retrotexts.net/
Harish-Chandra Research Institute, http://www.hri.res.in/
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
prev parent reply other threads:[~2018-04-22 18:22 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-04-22 15:23 N. Raghavendra
2018-04-22 16:04 ` Hans Hagen
2018-04-22 18:19 ` N. Raghavendra
2018-04-22 18:08 ` Wolfgang Schuster
2018-04-22 18:22 ` N. Raghavendra [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87fu3ndru4.fsf@gmail.com \
--to=nyraghu27132@gmail.com \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).