## LaTeX forum ⇒ Page Layout ⇒ explicit pagenumebering

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
kent
Posts: 11
Joined: Thu Oct 20, 2016 3:41 pm

### explicit pagenumebering

Say I have a document with 103 pages.
How can I make the pagenumbering lik 1(103), 2(103), etc.?
Kent

Stefan Kottwitz
Posts: 7881
Joined: Mon Mar 10, 2008 9:44 pm
Location: Hamburg, Germany
Contact:
Hi Kent,

you can use the lastpage package. You need to compile two times to get the reference to the last page.

\documentclass{article}\usepackage{blindtext}\usepackage{lastpage}\usepackage{fancyhdr}\pagestyle{fancy} \cfoot{\thepage(\pageref{LastPage})}\begin{document}\Blinddocument\end{document}

Stefan

kent
Posts: 11
Joined: Thu Oct 20, 2016 3:41 pm
Thanks again for good and fast help!
At the last page of the my document I have a reference section (\begin{the bibliography}...\end{thebibliography}).
Strangely, this activates a left and right header REFERENCES to be printed on the last side. Headers are not written to any page in your
file. Any comments? (I get rid of the problem by explicitly defining \lhead{} and \rhead{} in my Latex file.)
Kent

Stefan Kottwitz
Posts: 7881
Joined: Mon Mar 10, 2008 9:44 pm
Location: Hamburg, Germany
Contact:
It depends on how your document class defined the thebibliography environment. Which document class are you using?

Maybe simply insert \lhead{} and \rhead{} before the bibliography. Normally the class feature should be modified.

Stefan