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

hm, dirty tricks -)

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

(sometimes \prependtoks is better)

Hans

-----------------------------------------------------------------