* Macro with suffix
@ 2007-06-23 22:01 nicola
2007-06-23 23:09 ` Aditya Mahajan
0 siblings, 1 reply; 2+ messages in thread
From: nicola @ 2007-06-23 22:01 UTC (permalink / raw)
To: ntg-context
Hi,
I have read http://thread.gmane.org/gmane.comp.tex.context/3540, but why
does the following
\appendtoks \let\#\hashletter \to \everyMPgraphic
\startuseMPgraphic{foo}
vardef foo@\#(expr x) = enddef;
\stopuseMPgraphic
\startuseMPgraphic{goo}
\includeMPgraphic{foo}
foo.foo(1);
\stopuseMPgraphic
\starttext
\useMPgraphic{goo}
\stoptext
gives the error:
! Undefined control sequence.
<argument> vardef foo@\#
(expr x) = enddef;
\handleuseMPgraphic #1#2#3->#3
<argument> \includeMPgraphic {foo}
foo.foo(1);
\writecheckedMPgraphic ...icfalse \edef \ascii {#1
}\convertcommand
\ascii \t...
\startMPgraphic ...hic \writecheckedMPgraphic {#1}
\stopwritingMPgraphic
\handleuseMPgraphic ...MPgraphic #3\stopMPgraphic
\ifMPrun \else
\loadMPgrap...
...
Nicola
___________________________________________________________________________________
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://tex.aanhet.net
archive : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Macro with suffix
2007-06-23 22:01 Macro with suffix nicola
@ 2007-06-23 23:09 ` Aditya Mahajan
0 siblings, 0 replies; 2+ messages in thread
From: Aditya Mahajan @ 2007-06-23 23:09 UTC (permalink / raw)
To: mailing list for ConTeXt users
On Sun, 24 Jun 2007, nicola wrote:
> Hi,
> I have read http://thread.gmane.org/gmane.comp.tex.context/3540, but why
> does the following
>
> \appendtoks \let\#\hashletter \to \everyMPgraphic
This was a typo. It should have been \letterhash. However, you do not
need to explicitly do this, since supp-mps alreay does this. So, just
remove this line from your core and the rest will compile correctly.
Aditya
___________________________________________________________________________________
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://tex.aanhet.net
archive : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-06-23 23:09 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-06-23 22:01 Macro with suffix nicola
2007-06-23 23:09 ` Aditya Mahajan
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).