From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/52496 Path: news.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: \sometxt inside functions Date: Sat, 22 Aug 2009 04:53:10 -0400 (EDT) Message-ID: References: <6faad9f00908220105o1290af06ybf6f84b43900b853@mail.gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1250931251 5462 80.91.229.12 (22 Aug 2009 08:54:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 22 Aug 2009 08:54:11 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sat Aug 22 10:54:04 2009 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.50) id 1MemMN-0002fC-9C for gctc-ntg-context-518@m.gmane.org; Sat, 22 Aug 2009 10:54:03 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 28B2AC9AAD; Sat, 22 Aug 2009 10:54:00 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id p9l+qvaU+kUo; Sat, 22 Aug 2009 10:53:59 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id C5CB8C9A8A; Sat, 22 Aug 2009 10:53:44 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 73F08C9A8A for ; Sat, 22 Aug 2009 10:53:39 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id JwpGMFKdn4PO for ; Sat, 22 Aug 2009 10:53:27 +0200 (CEST) Original-Received: from hellskitchen.mr.itd.umich.edu (smtp.mail.umich.edu [141.211.14.82]) by balder.ntg.nl (Postfix) with ESMTP id 8BD78C9A3D for ; Sat, 22 Aug 2009 10:53:26 +0200 (CEST) Original-Received: FROM [192.168.2.8] (c-76-28-88-45.hsd1.ct.comcast.net [76.28.88.45]) By hellskitchen.mr.itd.umich.edu ID 4A8FB204.A7217.27205 ; Authuser adityam; 22 Aug 2009 04:53:24 EDT In-Reply-To: <6faad9f00908220105o1290af06ybf6f84b43900b853@mail.gmail.com> User-Agent: Alpine 2.00 (LNX 1167 2008-08-23) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 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 Xref: news.gmane.org gmane.comp.tex.context:52496 Archived-At: On Sat, 22 Aug 2009, Mojca Miklavec wrote: > Hello Hans, > > is there some simple command to make the following work (in MKII)? > (I accept "Not interested since it works in mkiv" as a valid answer :) > > \starttext > > % makes sure that textext("") works; is there an equivalent for \sometxt? >From what I understand about \sometxt in mkii, I don't think that something like \forceMPTEXcheck can work for \sometxt. If drawA always draws the same string, you can use \TeXtextts (see your MyWay on sometxt ;). \forceMPTEXcheck{drawA} \startTeXtexts \TeXtext{1000}{right} \stopTeXtexts \startMPinclusions def drawA = draw fullcircle scaled 3cm; label.top(btex top etex, (0,5cm)); % OK label.rt(sometxt(1000), (5cm,0)); % nothing label.bot(textext("bottom"), (0,-5cm)); % OK enddef; \stopMPinclusions \startMPcode drawA; \stopMPcode \stoptext 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 ___________________________________________________________________________________