Am 21.06.2011 um 22:30 schrieb Aditya Mahajan:

> On Tue, 21 Jun 2011, Troy Henderson wrote:
> 
>> I would like the footer of my document to read
>> 
>> Page X of Y
>> 
>> where X is the current page and Y is the total number of pages.
>> Thoughts on how to accomplish this?
> 
> 1.
> 
> \setuppagenumbering[location=footer, command=\PAGECOMMAND]
> \def\PAGECOMMAND#1{Page #1 of \lastpage}

\define[1]\PAGECOMMAND{Page #1 of \lastpage}

> 2. Or more directly
> 
>  \setuppagenumbering[location=]
>  \setupfootertexts[Page \currentpage\ of \lastpage]

3. \setuppagenumbering[left={Page },right={ of \lastpage}]

4. \setuplabeltext[pagenumber={{Page },{ of \lastpage}}]

Wolfgang

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to