From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/31987 Path: news.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: Why must I move frame to center it? Date: Mon, 27 Nov 2006 19:44:49 -0500 (EST) Message-ID: References: <200611241840.30824.john@wexfordpress.com> <4569C05B.9040300@wxs.nl> <200611271859.06045.john@wexfordpress.com> 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 1164674717 12582 80.91.229.2 (28 Nov 2006 00:45:17 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 28 Nov 2006 00:45:17 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Tue Nov 28 01:45:15 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 1Gor5v-0007lS-Lz for gctc-ntg-context-518@m.gmane.org; Tue, 28 Nov 2006 01:45:07 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id D50351FE6B; Tue, 28 Nov 2006 01:43:22 +0100 (CET) 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 00885-02-2; Tue, 28 Nov 2006 01:43:17 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id B08001FE49; Tue, 28 Nov 2006 01:43:16 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 355E31FDE7 for ; Tue, 28 Nov 2006 01:43:14 +0100 (CET) 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 00885-02 for ; Tue, 28 Nov 2006 01:43:08 +0100 (CET) Original-Received: from skycaptain.mr.itd.umich.edu (smtp.mail.umich.edu [141.211.93.160]) by ronja.ntg.nl (Postfix) with SMTP id E0AE81FE49 for ; Tue, 28 Nov 2006 01:43:07 +0100 (CET) Original-Received: FROM aditya.engin.umich.edu (udhcp-wlan173.public.engin.umich.edu [141.213.120.183]) BY skycaptain.mr.itd.umich.edu ID 456B8681.C6D90.25149 ; 27 Nov 2006 19:44:50 -0500 Original-To: mailing list for ConTeXt users In-Reply-To: <200611271859.06045.john@wexfordpress.com> 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:31987 Archived-At: On Mon, 27 Nov 2006, John R. Culleton wrote: > On Sunday 26 November 2006 11:27, Hans Hagen wrote: >> setbounds currentpicture to Page ; > > Unfortunately the recommended line had no effect. Did I put it in the right > place? > So here is the file that works (so far!) Here is an alternate approach: Use an overlay as the page background for one page. Another approach is to let MetaPost do all the page building (see the source of texmfstart manual mtexmfstart.tex) \definepapersize [bok] [width=6.0in,height=9.0in] \setuppapersize [bok] [letter] \setuplayout [marking=on,margin=.5in,textwidth=4.5in,width=middle,location=middle] \setupcolors [state=start] \noheaderandfooterlines \startuseMPgraphic{bg} boolean debug ; debug := false ; path Page ; Page = (fullsquare xyscaled (\overlaywidth, \overlayheight)) ; path p ; p := Page enlarged -10mm ; path q ; q := Page enlarged -15mm ; if debug : draw Page withcolor green; draw p withcolor red ; draw q withcolor blue ; fi ; drawoptions(withcolor .85white) ; fill reverse topboundary q -- topboundary p -- cycle ; fill reverse bottomboundary q -- bottomboundary p -- cycle ; drawoptions(withcolor .65white) ; fill reverse leftboundary q -- leftboundary p -- cycle ; fill reverse rightboundary q -- rightboundary p -- cycle ; setbounds currentpicture to Page ; \stopuseMPgraphic \defineoverlay[coverpage][\useMPgraphic{bg}] \starttext \setupbackgrounds[page] [background=coverpage] \centerline{Part I} \vskip .4in \centerline{Prerequisite for Success:} \vskip .2in \centerline{A Thorough Understanding} \vfil \tfa \page[yes] \setupbackgrounds[page] [background=] \input knuth \stoptext Aditya