From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/31965 Path: news.gmane.org!not-for-mail From: "John R. Culleton" Newsgroups: gmane.comp.tex.context Subject: Why must I move frame to center it? Date: Fri, 24 Nov 2006 18:40:30 -0500 Organization: WexfordPress Message-ID: <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 1164411692 23119 80.91.229.2 (24 Nov 2006 23:41:32 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 24 Nov 2006 23:41:32 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Sat Nov 25 00:41:27 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 1GnkfZ-00041b-Om for gctc-ntg-context-518@m.gmane.org; Sat, 25 Nov 2006 00:41:21 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 8D3231FF2B; Sat, 25 Nov 2006 00:39:57 +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 05224-05; Sat, 25 Nov 2006 00:39:50 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 909BE1FEF3; Sat, 25 Nov 2006 00:39:50 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 448351FEF7 for ; Sat, 25 Nov 2006 00:39:47 +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 05442-03 for ; Sat, 25 Nov 2006 00:39:41 +0100 (CET) Original-Received: from mta16.adelphia.net (mta16.mail.adelphia.net [68.168.78.211]) by ronja.ntg.nl (Postfix) with SMTP id 1E9421FEBA for ; Sat, 25 Nov 2006 00:39:40 +0100 (CET) Original-Received: from 69-168-13-200.chvlva.adelphia.net ([69.168.13.200]) by mta16.adelphia.net (InterMail vM.6.01.05.04 201-2131-123-105-20051025) with ESMTP id <20061124232454.KQTR26381.mta16.adelphia.net@69-168-13-200.chvlva.adelphia.net> for ; Fri, 24 Nov 2006 18:24:54 -0500 Original-To: ntg-context@ntg.nl User-Agent: KMail/1.9.4 Content-Disposition: inline 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:31965 Archived-At: 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 ; StopPage ; \stopuseMPgraphic \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? -- John Culleton Able Indexing and Typesetting Precision typesetting (tm) at reasonable cost. Satisfaction guaranteed. http://wexfordpress.com