About these ads

Tip: Showing page 4 of 65

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.

About these ads

3 Responses to “Tip: Showing page 4 of 65”

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

Join 745 other followers

%d bloggers like this: