From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/53628 Path: news.gmane.org!not-for-mail From: Daniel Bundzik Newsgroups: gmane.comp.tex.context Subject: How do you position/move a MPgraphic? Date: Fri, 23 Oct 2009 10:20:28 +0200 Message-ID: <4AE1674C.2010400@vicitra.se> 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 1256456620 4830 80.91.229.12 (25 Oct 2009 07:43:40 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 25 Oct 2009 07:43:40 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Sun Oct 25 08:43:33 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 1N1xlD-00013r-1k for gctc-ntg-context-518@m.gmane.org; Sun, 25 Oct 2009 08:43:31 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 0A878C9B16; Sun, 25 Oct 2009 08:42:25 +0100 (CET) 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 KU8K3bKYrm22; Sun, 25 Oct 2009 08:42:21 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id DB824C9A70; Sun, 25 Oct 2009 08:42:20 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 9EE26C9ABB for ; Fri, 23 Oct 2009 10:19:45 +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 DbTYjH0gza2o for ; Fri, 23 Oct 2009 10:19:35 +0200 (CEST) Original-Received: from mail.vicitra.se (144.23.227.87.static.spa.siw.siwnet.net [87.227.23.144]) by balder.ntg.nl (Postfix) with ESMTP id 9832BC9AAF for ; Fri, 23 Oct 2009 10:19:33 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by mail.vicitra.se (Postfix) with ESMTP id D689D9FF4E for ; Fri, 23 Oct 2009 10:20:29 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at vicitra.se Original-Received: from mail.vicitra.se ([127.0.0.1]) by localhost (mail.vicitra.se [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id clPg-hUPmOlx for ; Fri, 23 Oct 2009 10:20:29 +0200 (CEST) Original-Received: from [192.168.1.4] (samsara.platon.com [192.168.1.4]) by mail.vicitra.se (Postfix) with ESMTP id 3659F9FACA for ; Fri, 23 Oct 2009 10:20:29 +0200 (CEST) User-Agent: Thunderbird 2.0.0.23 (X11/20090817) X-Mailman-Approved-At: Fri, 23 Oct 2009 14:06:00 +0200 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:53628 Archived-At: Hi! How do you position/move a MPgraphic? Let us us say that you have the MPgraphics "somebackground" and "somecolorcircle" (See example below). These MPgraphics are both framed and used as a background, upon which "sometext" is written on. How can you freely move or position "somecolorcircle"? ( I want to move "somecolorcircle" below "sometext") Naturally, I have read Metafun and tried "shifted (x,y)", \definelayer, \setlayer, register, \setMPlayer, \getMPlayer... In general, if you have defined two or more MPgraphics how do you position them (In my case "somebackground" is fixed while "somecolorcircle" could be anywhere on "somebackground")? How would you solve this? Regards, Daniel \setupcolors[state=start] \setuppapersize[S6][S6] \setuplayout [width=fit, rightmargin=0cm, leftmargin=0cm, leftmargindistance=0pt, rightmargindistance=0pt, height=fit, topspace=0cm, header=0pt, footer=0cm, bottomspace=0cm, backspace=0cm, location=singlesided] \definecolor[Orange][r=1.,g=.47,b=.0] % dark orange \setupinteractionscreen[option=max] \startbuffer[sometext] \switchtobodyfont[sansserif,1.0cm] \midaligned{\white \bf This is the text} \stopbuffer \starttext \startuseMPgraphic{somebackground} fill fullsquare scaled 10cm withcolor .625red ; fill fullsquare scaled 10cm shifted (10cm,0) withcolor black ; fill fullsquare scaled 10cm shifted (20cm,0) withcolor \MPcolor{Orange} ; currentpicture := currentpicture xysized(OverlayWidth+.5pt,OverlayHeight+.5pt) ; \stopuseMPgraphic \startuseMPgraphic{somecolorcircle} % How do you move "somecolorcircle". I want this to be below "sometext" colorcircle(2cm,white,.625red,\MPcolor{Orange}) ; \stopuseMPgraphic \startTEXpage \defineoverlay[somebackground][\useMPgraphic{somebackground}] \defineoverlay[somecolorcircle][\useMPgraphic{somecolorcircle}] \framed [background={somebackground,somecolorcircle},height=12cm,frame=off] {\getbuffer[sometext] } \stopTEXpage \stoptext ___________________________________________________________________________________ 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 ___________________________________________________________________________________