From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/87067 Path: news.gmane.org!not-for-mail From: Jeong Dal Newsgroups: gmane.comp.tex.context Subject: passing arguments to \processMPbuffer Date: Mon, 21 Apr 2014 22:46:43 +0900 Message-ID: <5FE03882-D8DD-4991-AB01-0CCB2AEB4762@me.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1398088052 9857 80.91.229.3 (21 Apr 2014 13:47:32 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 21 Apr 2014 13:47:32 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Mon Apr 21 15:47:27 2014 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([5.39.185.229]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WcEZA-0003LH-VN for gctc-ntg-context-518@m.gmane.org; Mon, 21 Apr 2014 15:47:25 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 56BA610257 for ; Mon, 21 Apr 2014 15:47:24 +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 woBIJeQ9-teH for ; Mon, 21 Apr 2014 15:47:24 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 4F07610234 for ; Mon, 21 Apr 2014 15:47:20 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 391E9101E7 for ; Mon, 21 Apr 2014 15:47:16 +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 nbvvqgEtWO8w for ; Mon, 21 Apr 2014 15:47:14 +0200 (CEST) Original-Received: from filter2-til.mf.surf.net (filter2-til.mf.surf.net [194.171.167.218]) by balder.ntg.nl (Postfix) with ESMTP id B5CAC101E1 for ; Mon, 21 Apr 2014 15:47:06 +0200 (CEST) Original-Received: from nk11p03mm-asmtp001.mac.com (nk11p03mm-asmtp001.mac.com [17.158.232.236]) by filter2-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id s3LDl4Yq027717 for ; Mon, 21 Apr 2014 15:47:05 +0200 Original-Received: from [10.0.1.4] (unknown [1.235.92.77]) by nk11p03mm-asmtp001.mac.com (Oracle Communications Messaging Server 7u4-27.08(7.0.4.27.7) 64bit (built Aug 22 2013)) with ESMTPSA id <0N4D00JM2VLWM870@nk11p03mm-asmtp001.mac.com> for ntg-context@ntg.nl; Mon, 21 Apr 2014 13:46:47 +0000 (GMT) X-Mailer: Apple Mail (2.1874) X-MANTSH: 1TEIXREEbG1oaGkdHB0lGUkdDRl5PWBoaHhEKTEMXGx0EGx8SBBscHwQdGBAbHho fGhEKWE0XSxEKbX4XGhEKTFkXGxobGxEKWUkXEQpZXhdoY3kRCkNOF0sbGBpiTk1mHB5iRRl4c wcZZhsZHhxBExEKWFwXGQQaBB0HTUsdEkhJHEwFGx0EGx8SBBscHwQdGBAbHhofGxEKXlkXYUN ZckIRCkNaFxsEGBkfBBMYBB0dEQpCRRdua3kcGkdtWVNpAREKQk4XbHBgeUAdYlJpGmIRCkJMF 2RcTWZTUmFYTlltEQpCbBdheGtgTUFtXUlnXREKQkAXZHkFE38aBWUbSR8RCkJYF2gaT0JebEV cTHNEEQpwaBdhY2UbG3wdb2xfTBEKcGgXbU1iREF8RE9ofmMRCnBoF2UbRnt/SGZHXXlnEQpwa Bd6Qm9oTk0eTRtaXhEKcGgXYWFOYRgdZ2hdYlsRCnBsF2hmGWdNc0Z6AUdnEQ== X-CLX-Spam: false X-CLX-Score: 1011 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.11.96,1.0.14,0.0.0000 definitions=2014-04-21_01:2014-04-21,2014-04-20,1970-01-01 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 suspectscore=1 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=7.0.1-1402240000 definitions=main-1404210226 X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=17.158.232.236; country=US; region=California; city=Cupertino; latitude=37.3042; longitude=-122.0946; http://maps.google.com/maps?q=37.3042,-122.0946&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0TLQBL5gn - 518ea1a5de10 - 20140421 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.218 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:87067 Archived-At: Dear all, For \startuseMPgraphic, there is a way to do that (found in metafun book) as following: \startuseMPgraphic{Labels}{s, t} numeric u; u:= 1cm; for i=0 upto 7: label (textext("$v_{" & decimal (i) & "}$" ), \MPvar{s}[origin,3u*dir(30*i)]) ; label (textext("$v_{" & decimal (i) & "}$" ), \MPvar{t}[origin,3u*dir(30*i)]) ; endfor; \stopuseMPgraphic \starttext \placefigure[][]{} {\useMPgraphic{ColoringFace::Labeling}{s=0.8, t=1.3}} \stoptext Is there a way to the same job for \processMPbuffer instead of .5 and .7 in buffer? \startbuffer[Labels]%{s, t} numeric u; u:= 1cm; for i=0 upto 7: label (textext("$v_{" & decimal (i) & "}$" ), .5[origin,3u*dir(30*i)]) ; label (textext("$v_{" & decimal (i) & "}$" ), .7[origin,3u*dir(30*i)]) ; endfor; \stopbuffer \starttext \processMPbuffer[Labels]%% ?{s, t}? \stoptext Thank you. Best regards, Dalyoung ___________________________________________________________________________________ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________