From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/31485 Path: news.gmane.org!not-for-mail From: "Fredrik Sjunnesson" Newsgroups: gmane.comp.tex.context Subject: Problems with MetaFun and registers Date: Mon, 23 Oct 2006 20:32:30 +0200 Message-ID: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1161628409 25550 80.91.229.2 (23 Oct 2006 18:33:29 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 23 Oct 2006 18:33:29 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Mon Oct 23 20:33:25 2006 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org 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 1Gc4bE-00038J-Iy for gctc-ntg-context-518@m.gmane.org; Mon, 23 Oct 2006 20:32:36 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 157C31FE41; Mon, 23 Oct 2006 20:32:36 +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 32201-08; Mon, 23 Oct 2006 20:32:28 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id EFE7D1FDDB; Mon, 23 Oct 2006 20:32:27 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id DE0061FDE4 for ; Mon, 23 Oct 2006 20:32:25 +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 32156-05-2 for ; Mon, 23 Oct 2006 20:32:19 +0200 (CEST) Original-Received: from ms1.acobiaflux.ad (unknown [212.247.52.99]) by ronja.ntg.nl (Postfix) with SMTP id CD77B1FD93 for ; Mon, 23 Oct 2006 20:32:19 +0200 (CEST) Content-class: urn:content-classes:message X-MimeOLE: Produced By Microsoft Exchange V6.5 X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Problems with MetaFun and registers Thread-Index: Acb20ZkrZLibro9FSC6Xd1ATyX1Lww== Original-To: X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.7 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-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:31485 Archived-At: I have problems with the register macro in MetaFun. When I try ====================================================================== \setupcolors [state=start] \starttext \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) ; \stopuseMPgraphic \setMPlayer [test] [somepos-1] [location=c] {Does it work all right?} \getMPlayer [test]{\useMPgraphic{oeps}} \stoptext ====================================================================== (which is essentially copied from the manual) in ConTeXt live I get the following error message ====================================================================== ! Illegal unit of measure (pt inserted). - \pospxywhd ...fnum \positionanchormode =\plusone - \MPx \pageanchor \fi \rela... l.7 ...hd{somepos-1}{0}{5687206}{5687206}{0}{0}{0} ? ! Emergency stop. - \pospxywhd ...fnum \positionanchormode =\plusone - \MPx \pageanchor \fi \rela... l.7 ...hd{somepos-1}{0}{5687206}{5687206}{0}{0}{0} No pages of output. ====================================================================== Am I doing something wrong or is the register functionality broken in ConTeXt 2006.10.13? /Fredrik -------------------------------- Teknisk projektledare Ph.D. Complex Systems AcobiaFLUX AB fredrik.sjunnesson@acobiaflux.se Tel: +46 (0) 31 722 48 11 Fax: +46 (0) 31 722 48 01 Mob: +46 (0) 733 27 92 41 www.acobiaflux.se