From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/17811 Path: main.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: layers and papersize Date: Mon, 10 Jan 2005 19:11:19 +0100 Message-ID: <41E2C547.30003@wxs.nl> References: <200501101645.48033.tom.fossen@xs4all.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1105380694 10803 80.91.229.6 (10 Jan 2005 18:11:34 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 10 Jan 2005 18:11:34 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Mon Jan 10 19:11:26 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 1Co40j-0003tw-00 for ; Mon, 10 Jan 2005 19:11:25 +0100 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 3AC76127A9; Mon, 10 Jan 2005 19:11:25 +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 02791-03-3; Mon, 10 Jan 2005 19:11:22 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id D62EC127B4; Mon, 10 Jan 2005 19:11:22 +0100 (CET) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 67452127B4 for ; Mon, 10 Jan 2005 19:11:22 +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 02791-03-2 for ; Mon, 10 Jan 2005 19:11:21 +0100 (CET) Original-Received: from mailrelay01.solcon.nl (unknown [212.45.32.200]) by ronja.ntg.nl (Postfix) with ESMTP id 8D86A127A9 for ; Mon, 10 Jan 2005 19:11:21 +0100 (CET) Original-Received: from server-1.pragma-net.nl (dsl-212-84-128-085.solcon.nl [212.84.128.85]) by mailrelay01.solcon.nl (8.12.11/SQL-8.12.11-5/8.12.11) with ESMTP id j0AIBHR1025435; Mon, 10 Jan 2005 19:11:17 +0100 Original-Received: by server-1.pragma-net.nl (Postfix, from userid 65534) id 334FC1A489; Mon, 10 Jan 2005 19:06:36 +0100 (CET) Original-Received: from [10.100.1.191] (unknown [10.100.1.191]) by server-1.pragma-net.nl (Postfix) with ESMTP id DAABA17B14; Mon, 10 Jan 2005 18:06:34 +0000 (UTC) User-Agent: Mozilla Thunderbird 0.8 (Windows/20040913) X-Accept-Language: en-us, en Original-To: tom.fossen@xs4all.nl, mailing list for ConTeXt users In-Reply-To: <200501101645.48033.tom.fossen@xs4all.nl> X-Virus-Scanned: ClamAV 0.80/540/Tue Oct 19 14:59:23 2004 clamav-milter version 0.80j on mailrelay01 X-Virus-Status: Clean 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:17811 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:17811 Tom Fossen wrote: > 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] this is the problem: the last run the pages are reshuffled and the graphics/twopassdata no longer matches texexec --arrange --pdf thatfile.tex may work, else do the page imposition in a separate run (can be doen with texexec) Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------