From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/16155 Path: main.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: How to implement a changing navigation bar? Date: Mon, 16 Aug 2004 23:33:54 +0200 Sender: ntg-context-bounces@ntg.nl Message-ID: <41212842.9020800@wxs.nl> References: <4120DCF2.7010808@gmx.de> 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 1092903423 20919 80.91.224.253 (19 Aug 2004 08:17:03 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 19 Aug 2004 08:17:03 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Thu Aug 19 10:16:55 2004 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 1Bxi6R-0005yM-00 for ; Thu, 19 Aug 2004 10:16:55 +0200 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 8ABC212788; Thu, 19 Aug 2004 10:16:49 +0200 (CEST) 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 04048-06-3; Thu, 19 Aug 2004 10:16:49 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id BAFF61278B; Thu, 19 Aug 2004 09:39:00 +0200 (CEST) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 29E7B12796 for ; Thu, 19 Aug 2004 09:38:56 +0200 (CEST) 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 03619-03-4 for ; Thu, 19 Aug 2004 09:38:54 +0200 (CEST) Original-Received: from mailrelay01.solcon.nl (unknown [212.45.32.200]) by ronja.ntg.nl (Postfix) with ESMTP id 3DADE12791 for ; Thu, 19 Aug 2004 09:38:53 +0200 (CEST) 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 i7J7cpSb031107 for ; Thu, 19 Aug 2004 09:38:51 +0200 Original-Received: by server-1.pragma-net.nl (Postfix, from userid 65534) id 0FC6C2EB4B; Thu, 19 Aug 2004 09:38:51 +0200 (CEST) Original-Received: from [10.100.1.191] (unknown [10.100.1.191]) by server-1.pragma-net.nl (Postfix) with ESMTP id C55642EB26 for ; Thu, 19 Aug 2004 07:38:49 +0000 (UTC) User-Agent: Mozilla Thunderbird 0.6 (Windows/20040502) X-Accept-Language: en-us, en Original-To: mailing list for ConTeXt users In-Reply-To: <4120DCF2.7010808@gmx.de> X-Virus-Scanned: clamd / ClamAV version 0.73, clamav-milter version 0.73a on mailrelay01.solcon.nl 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: , Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: by amavisd-new at ntg.nl Xref: main.gmane.org gmane.comp.tex.context:16155 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:16155 Stefan Wachter wrote: > Hi all, > > I use an overlay to implement a navigation bar in the left margin of a > document. It seems to me that the processing of the overlay is done > only once and not for every page again. In addition, the \lastpage is > not available. page, paper and text backgrounda are calculated each page, unless you say \setupbackgrounds[state=repeat], in which case all are recalculated; if you put something in a layer it happens directly (but the layer may be flushed later) > Does anyone know a solution? Maybe headers/footers are a solution. But > how is absolute positioning accomplished with them? > you can put a layer in the background of the header area and that do something: \startsetups whatever \setlayer[thatlayer][....positioning...]{\the\pageno} \stopsetups \setupheadertexts[\setups{whatever}] > PS: Here is my current implementation: > > \definelayer[navbar] > \setupbackgrounds[text][leftmargin][background=navbar] > \setlayer[navbar][x=0cm,y=10cm]{\the\pageno} lastpage etc only make sense in the output routine (during page building) since one does not know where tex will break the page. H ----------------------------------------------------------------- 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 -----------------------------------------------------------------