From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/35095 Path: news.gmane.org!not-for-mail From: nicola Newsgroups: gmane.comp.tex.context Subject: Macro with suffix Date: Sun, 24 Jun 2007 00:01:13 +0200 Organization: --- Message-ID: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1182636110 13145 80.91.229.12 (23 Jun 2007 22:01:50 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 23 Jun 2007 22:01:50 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Sun Jun 24 00:01:45 2007 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by lo.gmane.org with esmtp (Exim 4.50) id 1I2Dft-0006Bw-SB for gctc-ntg-context-518@m.gmane.org; Sun, 24 Jun 2007 00:01:45 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 8440620088; Sun, 24 Jun 2007 00:01:45 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 29309-01; Sun, 24 Jun 2007 00:01:37 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 26FC71FFE9; Sun, 24 Jun 2007 00:01:37 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 239741FFE9 for ; Sun, 24 Jun 2007 00:01:36 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 29170-08 for ; Sun, 24 Jun 2007 00:01:33 +0200 (CEST) Original-Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by ronja.ntg.nl (Postfix) with ESMTP id ABBA31FED9 for ; Sun, 24 Jun 2007 00:01:33 +0200 (CEST) Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1I2DfZ-0004WD-R6 for ntg-context@ntg.nl; Sun, 24 Jun 2007 00:01:26 +0200 Original-Received: from host40-5.pool8175.interbusiness.it ([81.75.5.40]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 24 Jun 2007 00:01:25 +0200 Original-Received: from vitacolo by host40-5.pool8175.interbusiness.it with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 24 Jun 2007 00:01:25 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 40 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: host40-5.pool8175.interbusiness.it User-Agent: MT-NewsWatcher/3.5.2 (PPC Mac OS X) X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.9 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:35095 Archived-At: 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. vardef foo@\# (expr x) = enddef; \handleuseMPgraphic #1#2#3->#3 \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 ___________________________________________________________________________________