From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/20429 Path: news.gmane.org!not-for-mail From: Richard Hirsch Newsgroups: gmane.comp.tex.context Subject: lost position information with metafun registers Date: Wed, 18 May 2005 22:44:50 +0200 Message-ID: <1116449091.9670.29.camel@drr.elaphus> Reply-To: tabletten-teilbarkeit@t-online.de, mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1116449196 3263 80.91.229.2 (18 May 2005 20:46:36 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 18 May 2005 20:46:36 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Wed May 18 22:46:29 2005 Return-path: Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by ciao.gmane.org with esmtp (Exim 4.43) id 1DYVOu-0003aU-Bf for gctc-ntg-context-518@m.gmane.org; Wed, 18 May 2005 22:44:20 +0200 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 7F0E912823; Wed, 18 May 2005 22:44:54 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 05870-01; Wed, 18 May 2005 22:44:49 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 8D59612829; Wed, 18 May 2005 22:44:49 +0200 (CEST) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 4BE8B12829 for ; Wed, 18 May 2005 22:44:47 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 05535-08-2 for ; Wed, 18 May 2005 22:44:46 +0200 (CEST) Original-Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by ronja.ntg.nl (Postfix) with SMTP id 5C7CB12823 for ; Wed, 18 May 2005 22:44:46 +0200 (CEST) Original-Received: (qmail invoked by alias); 18 May 2005 20:44:46 -0000 Original-Received: from p54B6E0F2.dip.t-dialin.net (EHLO p54B6E0F2.dip.t-dialin.net) [84.182.224.242] by mail.gmx.net (mp031) with SMTP; 18 May 2005 22:44:46 +0200 X-Authenticated: #4067381 Original-To: ntg-context@ntg.nl X-Mailer: Evolution 2.2.1 X-Y-GMX-Trusted: 0 X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.5 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 X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on smtp.ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:20429 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:20429 Dear ConTeXt users (and developers), I am very fond of the presentation capabilites of ConTeXt, especially in connection with the Metafun macros. A big hand for the ConTeXt team! Now I want to link some checkboxes to a MPgraphic (a fieldstack actually) and I thought, that the best approach would be via the layer mechanism described in section 5.4 of the Metafun manual. I got the background picture and the checkboxes, but unfortunately the checkboxes were not in the intended positions (saved in register macros) but rather in the top left corner of the image. The same happened when I tried to reproduce the example from the Metafun manual: The texts show up in the top left corner of the boundig box of the circle. \setupcolors [state=start] \setuppapersize [S6][S6] \definelayer [test] \startuseMPgraphic{oeps} path p ; p := fullcircle scaled 6cm ; fill p withcolor .8white ; draw p withpen pencircle scaled 1mm withcolor .625red ; register ("somepos-1",0cm,0cm,center currentpicture) ; register ("somepos-2",3cm,1cm,(-1cm,-1cm)) ; register ("somepos-3",2cm,0cm,(-2cm,2cm)) ; \stopuseMPgraphic \setMPlayer [test] [somepos-1] [location=c] {Does it work all right?} \setMPlayer [test] [somepos-2] {\framed [width=\MPlayerwidth,height=\MPlayerheight, background=color,backgroundcolor=white] {It Works!}} \starttext \getMPlayer [test]{\useMPgraphic{oeps}} \stoptext Does somebody have an idea what might go wrong? Do I miss an important setting or activation? (I am using ConTeXt ver: 2005.01.31 fmt: 2005.4.26 int: english mes: english in connection with tetex 3.0-13 on a linux box.) Or might this rather be a problem with the acrobat reader (version 7.0 on linux but also version 5 on windows)? I also tried to get some debug information via activating testmode (1. running texexec with the --mode=test option and 2. with \getMPlayer [test] [state=start,option=test]{\useMPgraphic{oeps}} in the document.) But I can not find the position information in the logfiles. Any help would be greatly appreciated. Best regards, Richard