ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Jeong Dalyoung <haksan@me.com>
To: ntg-context@ntg.nl
Subject: Re: Metafun  shifting pictures - again
Date: Thu, 23 Jun 2011 13:32:49 +0900	[thread overview]
Message-ID: <315AB032-0AC4-464F-9D7D-72DFE58E29D5@me.com> (raw)
In-Reply-To: <mailman.1686.1308769368.4231.ntg-context@ntg.nl>


[-- Attachment #1.1: Type: text/plain, Size: 1114 bytes --]

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


[-- Attachment #1.2: Type: text/html, Size: 2433 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

       reply	other threads:[~2011-06-23  4:32 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.1686.1308769368.4231.ntg-context@ntg.nl>
2011-06-23  4:32 ` Jeong Dalyoung [this message]
2011-06-23  7:41   ` Hans Hagen
2011-06-24  6:32     ` dalyoung
2011-06-24 11:55       ` Hans Hagen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=315AB032-0AC4-464F-9D7D-72DFE58E29D5@me.com \
    --to=haksan@me.com \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).