From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/31971 Path: news.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: Why must I move frame to center it? Date: Sun, 26 Nov 2006 17:27:07 +0100 Message-ID: <4569C05B.9040300@wxs.nl> References: <200611241840.30824.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 1164558440 18541 80.91.229.2 (26 Nov 2006 16:27:20 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 26 Nov 2006 16:27:20 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Sun Nov 26 17:27: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 1GoMqZ-0002oB-1z for gctc-ntg-context-518@m.gmane.org; Sun, 26 Nov 2006 17:27:15 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 414B51FE59; Sun, 26 Nov 2006 17:25:40 +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 16922-03-12; Sun, 26 Nov 2006 17:25:33 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 132B51FE40; Sun, 26 Nov 2006 17:25:33 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id BA6271FE4C for ; Sun, 26 Nov 2006 17:25:31 +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 16636-05-7 for ; Sun, 26 Nov 2006 17:25:28 +0100 (CET) Original-Received: from mail.pragma-ade.net (dsl-083-247-100-017.solcon.nl [83.247.100.17]) by ronja.ntg.nl (Postfix) with SMTP id C484B1FE3A for ; Sun, 26 Nov 2006 17:25:28 +0100 (CET) Original-Received: from [10.100.1.101] (unverified [10.100.1.101]) by controller-1 (SurgeMail 3.7b8) with ESMTP id 20099 for ; Sun, 26 Nov 2006 17:27:03 +0100 User-Agent: Thunderbird 1.5.0.8 (Windows/20061025) Original-To: mailing list for ConTeXt users In-Reply-To: <200611241840.30824.john@wexfordpress.com> X-Server: High Performance Mail Server - http://surgemail.com r=-274017400 X-Authenticated-User: hagen@controller-1 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:31971 Archived-At: John R. Culleton wrote: > I am using some old code that Hans provided to create a pretty frame around > some text, for purposes of a "Part" header page. Here is my current test > file: > -------------------------------------- > \setupoutput[pdftex] > \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] > \starttext > %\startstandardmakeup > \noheaderandfooterlines > \startuseMPgraphic{bg} > StartPage ; > path p ; p := Page enlarged -10mm ; > path q ; q := Page enlarged -15mm ; > 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 ; > add setbounds currentpicture to Page ; > StopPage ; > \stopuseMPgraphic > hm, inches ... > \vglue -1.55in %??? > \hglue -.75in %??? > \useMPgraphic{bg} > \vglue -6.5in > \hglue .2in > \centerline{\bf Here is some text} > %\stopstandardmakeup > \stoptext > ------------------------------------------------- > > Now here is my question: why must I use the negative \vglue and \hglue lines > (arrived at by experimentation) to place the frame properly on the page? Did > I mess something up? > -- ----------------------------------------------------------------- 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 -----------------------------------------------------------------