From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/34541 Path: news.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: MetaPost question Date: Wed, 2 May 2007 16:46:45 -0400 (EDT) Message-ID: References: <4638F6E2.2030602@net-b.de> 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 1178138822 11941 80.91.229.12 (2 May 2007 20:47:02 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 2 May 2007 20:47:02 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed May 02 22:46:59 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 1HjLj1-000649-70 for gctc-ntg-context-518@m.gmane.org; Wed, 02 May 2007 22:46:59 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 479161FFEC; Wed, 2 May 2007 22:46:58 +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 04761-01-6; Wed, 2 May 2007 22:46:52 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id C879B1FFE7; Wed, 2 May 2007 22:46:52 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 8B5E91FFE7 for ; Wed, 2 May 2007 22:46:51 +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 04761-01-5 for ; Wed, 2 May 2007 22:46:49 +0200 (CEST) Original-Received: from skycaptain.mr.itd.umich.edu (smtp.mail.umich.edu [141.211.93.160]) by ronja.ntg.nl (Postfix) with ESMTP id DE02F1FFE4 for ; Wed, 2 May 2007 22:46:48 +0200 (CEST) Original-Received: FROM eecs4327u09.engin.umich.edu (eecs4327u09.engin.umich.edu [141.213.51.137]) BY skycaptain.mr.itd.umich.edu ID 4638F8B6.56B83.5092 ; 2 May 2007 16:46:46 -0400 X-X-Sender: adityam@eecs4327u09.engin.umich.edu In-Reply-To: <4638F6E2.2030602@net-b.de> 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:34541 Archived-At: On Wed, 2 May 2007, Tobias Burnus wrote: > Hi, > > I want to define a macro in MetaPost which does: > > def myfunc (expr x,y)(text t) = > draw thelabel.rt (btex You passed \quotation{t} etex, (x,y)); > > where t in btex ... text is replaced by the argument. How to do so? You can do that using TEX.mp. I remember that it is also possible to use textext to do something like this. I need to check my files to see if I have an example. 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 ___________________________________________________________________________________