From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/18041 Path: main.gmane.org!not-for-mail From: h h extern Newsgroups: gmane.comp.tex.context Subject: Re: help - spine centered figure Date: Sun, 30 Jan 2005 22:35:14 +0100 Message-ID: <41FD5312.7030305@wxs.nl> References: <20050129170047.17336.qmail@web80401.mail.yahoo.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1107122776 8262 80.91.229.6 (30 Jan 2005 22:06:16 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 30 Jan 2005 22:06:16 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Sun Jan 30 23:06:10 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 1CvNCs-0007Gd-00 for ; Sun, 30 Jan 2005 23:06:10 +0100 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id B622C127E1; Sun, 30 Jan 2005 23:06:11 +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 27377-05; Sun, 30 Jan 2005 23:06:10 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id E71B8127CF; Sun, 30 Jan 2005 23:06:09 +0100 (CET) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 4FA0C127CF for ; Sun, 30 Jan 2005 23:06:08 +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 27374-08 for ; Sun, 30 Jan 2005 23:06:07 +0100 (CET) Original-Received: from mailrelay02.solcon.nl (maillb.solcon.nl [212.45.32.200]) by ronja.ntg.nl (Postfix) with ESMTP id 80F4F127C7 for ; Sun, 30 Jan 2005 23:06:07 +0100 (CET) Original-Received: from server-1.pragma-net.nl (dsl-212-84-128-085.solcon.nl [212.84.128.85]) by mailrelay02.solcon.nl (8.12.11/SQL-8.12.11-5/8.12.11) with ESMTP id j0UM613V006559; Sun, 30 Jan 2005 23:06:01 +0100 Original-Received: by server-1.pragma-net.nl (Postfix, from userid 65534) id B702217B53; Sun, 30 Jan 2005 22:57:51 +0100 (CET) Original-Received: from [127.0.0.1] (unknown [10.100.1.1]) by server-1.pragma-net.nl (Postfix) with ESMTP id A471417B1C; Sun, 30 Jan 2005 21:57:49 +0000 (UTC) User-Agent: Mozilla Thunderbird 0.8 (Windows/20040913) X-Accept-Language: en-us, en Original-To: ciro@kavyata.com, mailing list for ConTeXt users In-Reply-To: <20050129170047.17336.qmail@web80401.mail.yahoo.com> X-Virus-Scanned: ClamAV 0.80/540/Tue Oct 19 14:59:23 2004 clamav-milter version 0.80j on mailrelay02 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:18041 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:18041 Ciro A. Soto wrote: > I am hoping to get the version 1. The other version > is like an exercise for me, to see how it would be > done. well, the machinery is there, and there are several solutions, of which i show only one (watch further on how we enable clipping); don't forget to submit this example to the wiki \definelayer [page] [width=\paperwidth, height=\paperheight, offset=-\measure{page-bleed}, doublesided=yes] \setupbackgrounds [page] [background=page] \setuppagenumbering [alternative=doublesided] \definemeasure [page-bleed] [\dimexpr(10mm)] \useexternalfigure [page-graphic] [cow] [ width=\dimexpr(2\paperwidth +2\measure{page-bleed}), height=\dimexpr( \paperheight+2\measure{page-bleed})] \starttext % cleaner here \startstandardmakeup[doublesized=no,page={empty,left}] \setlayer [page] [preset=lefttop] {\externalfigure[page-graphic]} \stopstandardmakeup \startstandardmakeup[doublesized=no,page=right] \setlayer [page] [preset=righttop] {\externalfigure[page-graphic]} \stopstandardmakeup % less intuitive here % % \page[left] % % \setlayer % [page] [left] [preset=lefttop] % {\externalfigure[page-graphic]} % % \setlayer % [page] [right] [preset=righttop] % {\externalfigure[page-graphic]} % % \startstandardmakeup % flush a page % \stopstandardmakeup % to show bleeding: \setuppapersize [A4][A3] \setuplayout [location=middle] \setupbackgrounds [page][frame=on] % add this in order to clip \setuplayout [clipoffset=\measure{page-bleed}] \startstandardmakeup[doublesized=no,page={empty,left}] \setlayer [page] [preset=lefttop] {\externalfigure[page-graphic]} \stopstandardmakeup \startstandardmakeup[doublesized=no,page=right] \setlayer [page] [preset=righttop] {\externalfigure[page-graphic]} \stopstandardmakeup \stoptext ----------------------------------------------------------------- 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 -----------------------------------------------------------------