Showing the total number of pages in addition to the actual page number is straight forward using the “lastpage” package.
\usepackage{lastpage}
Now you can simply access the number of pages using:
\pageref{LastPage}
Note: You will have to typeset the DVI/PDF twice in order to get the number right.
Example:
\usepackage{fancyhdr, lastpage}
\pagestyle{fancy}
\fancyfoot[C]{{\thepage} of \pageref{LastPage}}
\begin{document}
...
Note: See this recent comment on how to count the number of figures within your document.
October 16, 2008 at 6:24 pm |
Hey! Wonderful blog! I have you in my feeds! I’m a TeX-lover!
I have only a minor suggestion. Perhaps you could also produce screen captures of your example’s results. It would be very illustrative…
Thanks, keep posting!
MV
December 31, 2008 at 12:21 am |
Hi. Do you know how AucTeX or LaTeX plugins for websites work? How can they extract small images contain formulas only?