# [NTG-context] How to implement a changing navigation bar?

Hans Hagen pragma at wxs.nl
Tue Aug 17 17:53:08 CEST 2004

Vit Zyka wrote:

>
>
> 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.
>>
>> Does anyone know a solution? Maybe headers/footers are a solution.
>> But how is absolute positioning accomplished with them?
>
>
> Hi Stefan, header/footer is a solution but I use another
>
>   \def\PageNavig{\setlayer[navbar][x=0cm,y=10cm]{\the\pageno}}
>
>   \appendtoks
>     \PageNavig
>   \to \everypagebody
>
> for this task.

hm, dirty tricks -)

beware of interference, also, be careful not to introduce funny spaces then.

(sometimes \prependtoks is better)

Hans

-----------------------------------------------------------------
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
-----------------------------------------------------------------