I want to add a footer to my document displaying the current number out of total number of pages. How do I do that?
|
I have not tried, but I found this at some old .tex files:
|
|||||||||||||||||
|
|
If the document just contains arabic page numbers, probably the lastpage package is your friend:
If the document consists of e.g. X (ten) pages with Roman numbers in the front matter, 100 pages with arabic numbers in the main matter, and K (eleven) pages with alphabetical "numbered" pages in the back matter,
which e.g. for page "B" in the backmatter would print "Page B (112) of 121". pageslts offers a lot of additional possibilities (probably "overkill" for a document with only arabic numbers). When there is output via If If the last page uses the fnsymbol page numbering scheme, lastpage could get problems. (pageslts should work.) Generally for generating "page ... of ..." two compilation runs are required. Depending on other packages, even more migt be necessary. See for any rerun messages at the end of the log-file. If the hyperref package is used, but The lastpage and pageslts manuals also list some further alternatives:
And Brent.Longborough additionally mentioned here the memoir package providing (If the question was "How do you add “page # of ##” on your document?" this would be a CW question...) |
|||||
|
|
Using the So the following code:
would print "page # of ##" (where # is the current page number and ## is the final page number). |
|||
|
|
|
The memoir package provides |
|||||||
|
|
There is an alternative to the For the minimal use-case this doesn't give any benefits, but with
|
|||||
|