Say I have a document with 103 pages.
How can I make the pagenumbering lik 1(103), 2(103), etc.?
Kent
Page Layout ⇒ explicit page numbering page x of y
- Stefan Kottwitz
- Site Admin
- Posts: 10290
- Joined: Mon Mar 10, 2008 9:44 pm
explicit page numbering page x of y
Hi Kent,
you can use the
lastpage package. You need to compile two times to get the reference to the last page.
Stefan
you can use the

Code: Select all
\documentclass{article}
\usepackage{blindtext}
\usepackage{lastpage}
\usepackage{fancyhdr}
\pagestyle{fancy}
\cfoot{\thepage(\pageref{LastPage})}
\begin{document}
\Blinddocument
\end{document}
LaTeX.org admin
explicit pagenumebering
Thanks again for good and fast help!
One question, using your code:
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
One question, using your code:
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
- Site Admin
- Posts: 10290
- Joined: Mon Mar 10, 2008 9:44 pm
explicit page numbering page x of y
It depends on how your document class defined the
Maybe simply insert
Stefan
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
LaTeX.org admin