From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/18407 Path: main.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: Unconventional page number placement Date: Mon, 21 Feb 2005 13:13:37 +0100 Message-ID: <4219D071.907@wxs.nl> References: <42163696.8050408@havenrock.com> <20050218201431.31172@mail.comp.lancs.ac.uk> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.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 1108987810 11276 80.91.229.2 (21 Feb 2005 12:10:10 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 21 Feb 2005 12:10:10 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Mon Feb 21 13:10:10 2005 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 1D3CO4-0003De-At for gctc-ntg-context-518@m.gmane.org; Mon, 21 Feb 2005 13:10:04 +0100 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 673F9127E8; Mon, 21 Feb 2005 13:13:29 +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 15054-03-3; Mon, 21 Feb 2005 13:13:26 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id E4B2A127E4; Mon, 21 Feb 2005 13:13:26 +0100 (CET) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 98C15127E4 for ; Mon, 21 Feb 2005 13:13: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 15054-03-2 for ; Mon, 21 Feb 2005 13:13:24 +0100 (CET) Original-Received: from mailrelay01.solcon.nl (maillb.solcon.nl [212.45.32.200]) by ronja.ntg.nl (Postfix) with ESMTP id CB3AD127E3 for ; Mon, 21 Feb 2005 13:13:24 +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 j1LCDMsP017664 for ; Mon, 21 Feb 2005 13:13:22 +0100 Original-Received: by server-1.pragma-net.nl (Postfix, from userid 65534) id EEA1F239C9; Mon, 21 Feb 2005 13:01:25 +0100 (CET) Original-Received: from [10.100.1.191] (unknown [10.100.1.191]) by server-1.pragma-net.nl (Postfix) with ESMTP id 65B2F17B53 for ; Mon, 21 Feb 2005 12:01:24 +0000 (UTC) User-Agent: Mozilla Thunderbird 0.8 (Windows/20040913) X-Accept-Language: en-us, en Original-To: mailing list for ConTeXt users In-Reply-To: <20050218201431.31172@mail.comp.lancs.ac.uk> X-Virus-Scanned: ClamAV 0.80/705/Fri Feb 11 17:51:32 2005 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 X-MailScanner-From: ntg-context-bounces@ntg.nl X-MailScanner-To: gctc-ntg-context-518@m.gmane.org Xref: main.gmane.org gmane.comp.tex.context:18407 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:18407 Adam Lindsay wrote: > Hi Matt. > > I don't have a total solution, but I think you were much closer than you > thought. > > Matt Gushee said this at Fri, 18 Feb 2005 11:40:22 -0700: > > >> * Use negative dimensions to cause the header and footer to overlap >> the text area, e.g.: >> >> \setuplayout [...,headerdistance=-0.35in,footerdistance=-0.5in] >> >>As I said, this comes very close to the desired effect, but it seems >>impossible to correctly align the header text and page numbers with the >>main text. > > > How about this: > > \setuppapersize[A4,landscape][A4,landscape] > \setuplayout[width=16cm,rightedge=\marginwidth] > \setuplayout[headerdistance=-2\lineheight, > header=2\lineheight, > footerdistance=-2\lineheight, > footer=2\lineheight, > height=middle] > \setupheadertexts[margin][section][] > \setupfootertexts[margin][pagenumber][] > \setuphead[section][page=yes] > \starttext > \showframe > \section{one} > \section{two} > > You had it pretty much right, you just need to make sure that the text > blocks reach the bottom, a la the grid or \setupalign[line] stuff on the > list these past weeks. > > Actually, at first, I thought this was a job for texttexts (weird, yeah, > but in the manual...), but I have not idea how to move those up and down, > where you want them. > > And that rightedge block isn't really relevant here, but it looks nice on > the page. :) > \section{three} > \setuptext[margin][style=bold] > \setuptexttexts[margin][section][pagenumber] > \section{four} > \stoptext you can play with ... \startsetups one \vbox to \textheight \bgroup \strut \getmarking[section] \vfill \strut \pagenumber \egroup \stopsetups \setuptexttexts[margin][\setups{one}][\setups{two}] etc -- ----------------------------------------------------------------- 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 -----------------------------------------------------------------