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? Thanks, Troy
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} 2. Or more directly \setuppagenumbering[location=] \setupfootertexts[Page \currentpage\ of \lastpage] Aditya
Thank you. The only problem that I'm encountering now is that I am using \startstandardmakeup ... \stopstandardmakeup on the first (title) page, and thus \lastpage is 1 too many.
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
Thank you (again). It seems that \setupfootertexts[Page \pagenumber~of~\lastpagenumber] also works.
participants (3)
-
Aditya Mahajan
-
Troy Henderson
-
Wolfgang Schuster