From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/69411 Path: news.gmane.org!not-for-mail From: Jeong Dalyoung Newsgroups: gmane.comp.tex.context Subject: Re: Metafun shifting pictures - again Date: Thu, 23 Jun 2011 13:32:49 +0900 Message-ID: <315AB032-0AC4-464F-9D7D-72DFE58E29D5@me.com> References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2131064506==" X-Trace: dough.gmane.org 1308803603 27565 80.91.229.12 (23 Jun 2011 04:33:23 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 23 Jun 2011 04:33:23 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Thu Jun 23 06:33:19 2011 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.69) (envelope-from ) id 1QZbbT-0003Ia-7C for gctc-ntg-context-518@m.gmane.org; Thu, 23 Jun 2011 06:33:19 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 7AF00CADE9; Thu, 23 Jun 2011 06:33:18 +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 8zfBzBGdz--R; Thu, 23 Jun 2011 06:33:15 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id AB9B6CADB8; Thu, 23 Jun 2011 06:33:15 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 1FE1ECADB8 for ; Thu, 23 Jun 2011 06:33:14 +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 LeVS55ExFvv9 for ; Thu, 23 Jun 2011 06:33:02 +0200 (CEST) Original-Received: from filter2-ams.mf.surf.net (filter2-ams.mf.surf.net [192.87.102.70]) by balder.ntg.nl (Postfix) with ESMTP id 38F39CADAF for ; Thu, 23 Jun 2011 06:33:02 +0200 (CEST) Original-Received: from asmtpout024.mac.com (asmtpout024.mac.com [17.148.16.99]) by filter2-ams.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p5N4X06A005002 for ; Thu, 23 Jun 2011 06:33:01 +0200 Original-Received: from graph.ssu.ac.kr ([203.253.9.14]) by asmtp024.mac.com (Oracle Communications Messaging Exchange Server 7u4-18.01 64bit (built Jul 15 2010)) with ESMTPSA id <0LN8005CD7AQTU10@asmtp024.mac.com> for ntg-context@ntg.nl; Wed, 22 Jun 2011 21:32:54 -0700 (PDT) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.4.6813,1.0.148,0.0.0000 definitions=2011-06-22_07:2011-06-22, 2011-06-22, 1970-01-01 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 ipscore=0 suspectscore=1 phishscore=0 bulkscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx engine=6.0.2-1012030000 definitions=main-1106220304 In-reply-to: X-Mailer: Apple Mail (2.1084) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=17.148.16.99; country=US; region=CA; city=Cupertino; postalcode=95014; latitude=37.3042; longitude=-122.0946; metrocode=807; areacode=408; 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: 0rEXgx13t - 90ef65fb21a2 - 20110623 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.70 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:69411 Archived-At: --===============2131064506== Content-type: multipart/alternative; boundary="Boundary_(ID_rgotk+rVtPqz3DgoquDbpA)" --Boundary_(ID_rgotk+rVtPqz3DgoquDbpA) Content-type: text/plain; CHARSET=US-ASCII Content-transfer-encoding: 7BIT Hi all, I got the reason why the pictures locate in different position. "rotation" causes the problem. I defined domino as follows. It is not the exact code but just show the form of the codes. ... def domino (a, b, c, d ) save pic; picture pic; draw something 1; draw something 2; pic := currentpicture; draw pic rotated 90 shifted ( c, d ); enddef; and call it using \startbuffer[domino3] domino (1, 2, 3, 4); domino (2, 1, 1, 2); domino (3, 3, 2, 3); \stopbuffer and \processMPbuffer[]. it draw the first domino at the right place, but it is rotated when the second domino is drawn. Hence, it actually rotated 180 degree. Also two dominos rotated again when the third domino is drawn. Previous drawings are rotated again again when the function domino called. How to avoid this problem? How to draw one figure and move to wanted position and draw another figure and move to another location without changing the previous figure? If you want to see the whole codes, please see the attachment in the previous mail in ntg-context Digest, Vol 84, Issue 94. Thank you. Best regards, Dalyoung --Boundary_(ID_rgotk+rVtPqz3DgoquDbpA) Content-type: text/html; CHARSET=US-ASCII Content-transfer-encoding: quoted-printable Hi all,

I = got the reason why the pictures locate in different = position.
"rotation" causes the = problem.

I defined domino as = follows.
It is not the exact code but just show the form of = the codes.

...
def domino (a, b, c, d =  )
save pic;
picture = pic;
= draw something 1;
draw something 2;
pic :=3D = currentpicture;
draw pic rotated 90 shifted ( c, = d );
enddef;

and call it = using

\startbuffer[domino3]
domino = (1, 2, 3, 4);
domino (2, 1, 1, = 2);
= domino (3, 3, 2, = 3);
\stopbuffer

and = \processMPbuffer[].

it draw the first domino at = the right place, but it is rotated when the second domino is drawn. = Hence, it actually rotated 180 degree. Also two dominos rotated again = when the third domino is drawn. 
Previous drawings are = rotated again again when the function domino = called.

How to avoid this problem? How to draw = one figure and move to wanted position and draw another figure and move = to another location without changing the previous = figure?

If you want to see the whole codes, = please see the attachment in the previous mail in ntg-context Digest, Vol 84, Issue = 94.