LaTeX – Customize page numbering

by

For changing the default, centered page numbering, use the fancyhdr package:

\usepackage{fancyhdr}
\pagestyle{fancy}
\fancyhf{} % clear all header and footer fields
\fancyfoot[R]{\footnotesize Page \thepage\ of 2}
\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{0pt}

This will print the page number on the right side of the footer, smaller font and in the format “Page % of 2″.

About these ads

2 Responses to “LaTeX – Customize page numbering”

  1. besucherke Says:

    Thanx, man!

  2. Mat Jaggard (@matjaggard) Says:

    This isn’t very helpful. How do you get the total number or pages – I don’t want to update my footer every time I go onto a new page!!

Leave a Reply

Please log in using one of these methods to post your comment:

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 )

Google+ photo

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

Connecting to %s


Follow

Get every new post delivered to your Inbox.

%d bloggers like this: