From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/17804 Path: main.gmane.org!not-for-mail From: Tom Fossen Newsgroups: gmane.comp.tex.context Subject: layers and papersize Date: Mon, 10 Jan 2005 16:45:48 +0100 Message-ID: <200501101645.48033.tom.fossen@xs4all.nl> Reply-To: tom.fossen@xs4all.nl, mailing list for ConTeXt users NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1105371996 13694 80.91.229.6 (10 Jan 2005 15:46:36 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 10 Jan 2005 15:46:36 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Mon Jan 10 16:46:29 2005 Return-path: Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1Co1kT-0005tU-00 for ; Mon, 10 Jan 2005 16:46:29 +0100 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id BAD9A1276F; Mon, 10 Jan 2005 16:46:28 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (ronja.vet.uu.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 01355-02; Mon, 10 Jan 2005 16:46:26 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id EEB3E12788; Mon, 10 Jan 2005 16:46:25 +0100 (CET) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 2E18012788 for ; Mon, 10 Jan 2005 16:46:24 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (ronja.vet.uu.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 01256-04 for ; Mon, 10 Jan 2005 16:46:23 +0100 (CET) Original-Received: from smtp-vbr6.xs4all.nl (unknown [194.109.24.26]) by ronja.ntg.nl (Postfix) with ESMTP id 6CC8D1276F for ; Mon, 10 Jan 2005 16:46:23 +0100 (CET) Original-Received: from bron.water (a80-126-49-154.adsl.xs4all.nl [80.126.49.154]) by smtp-vbr6.xs4all.nl (8.12.11/8.12.11) with ESMTP id j0AFkNfk015069 for ; Mon, 10 Jan 2005 16:46:23 +0100 (CET) (envelope-from tom.fossen@xs4all.nl) Original-Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by bron.water (Postfix) with ESMTP id D41583F4E for ; Mon, 10 Jan 2005 15:45:48 +0000 (UTC) Original-To: User-Agent: KMail/1.5.94 Content-Disposition: inline X-Virus-Scanned: by XS4ALL Virus Scanner X-Virus-Scanned: by 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-Virus-Scanned: by amavisd-new at ntg.nl Xref: main.gmane.org gmane.comp.tex.context:17804 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:17804 This is probably a beginners question. While trying to understand the layer-mechanism I made a drawing which is meant as a background for a schedule in a magazine. I add the information within this drawing using the 'register' option I found on page 263 of the Metafun manual. Here is the example in a minimal form: \starttext \definelayer[rooster] \startuseMPgraphic{list} path p, s ; p := unitsquare scaled 3cm superellipsed 0.84 ; s := flex ((2.5cm,3.0cm), (10.0cm,3.0cm), (6.5cm,-0.5cm)) ; draw p withpen pencircle scaled 5pt withcolor .625white ; draw s withpen pencircle scaled 3pt withcolor .625white ; register ("da",2.4cm,2.4cm,(.3cm,2.8cm)) ; register ("name",5.6cm,0.6cm,(5.4cm,3.5cm)) ; register ("who",6cm,3cm,(3.4cm,2.8cm)) ; register("color",1.5cm,0.5cm,(7.6cm,-0.6cm)) ; \stopuseMPgraphic \setMPlayer[rooster][da]{\framed [width=\MPlayerwidth,height=\MPlayerheight,align=right] {pos 1}} \setPlayer[rooster][name]{\framed [ [width=\MPlayerwidth,height=\MPlayerheight] {pos 2}} \setMPlayer[rooster][who]{\framed [width=\MPlayerwidth,height=\MPlayerheight,align=right] {pos 3}} \setMPlayer[rooster][color]{\framed [width=\MPlayerwidth,height=\MPlayerheight] {pos 4}} \getMPlayer[rooster] {\useMPgraphic{list}} \stoptext This works for the standard papersize. But I want this to work in a magazine on A5. So I add: \setuppapersize [A5][A4] \setuparranging [2UP,rotated,doublesided] \setuppagenumbering[alternative=doublesided] \setuplayout[margin=0pt,width=middle] followed by the fragment above. But now all of the texts ("pos x") end up somewhere in the left corner of the page. Only the drawing is on its right place. I tried to experiment with adding 'position= on' or 'off' to the 'definelayer' command. No difference. Where are the misunderstandings on my side? tom fossen