Am 03.02.2009 um 07:50 schrieb Michael Bynum:
I am trying to use a layer to insert a page number in my document, but the page always displays page number 1. It seems nothing that I have tried has worked. I also don't know how to exclude the first page from the total number of pages count. Here is the code I'm trying to use.
You can find a solution from Aditya under the following link: http://archive.contextgarden.net/message/20070714.145156.91a20ef2.en.html I wrote also for myself a short test file for myself a while ago. \definelayer[head] [width=\paperwidth,height=\paperheight] \definelayer[nexthead][width=\paperwidth,height=\paperheight] \startsetups layer \doif {\pagenumber}{1}{\setlayer[head] [offset=2cm]{First page}} \doifnot{\pagenumber}{1}{\setlayer[nexthead][offset=2cm]{Page \pagenumber}} \stopsetups \setupbackgrounds[page][setups=layer,background={head,nexthead}] \starttext \dorecurse{4}{\page[empty]} \stoptext Wolfgang