TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm using roman page numbers in my introduction section, but for the remainder of the document I use arabic numbers, and this custom footer:


This leads to ugliness like:


in the introduction.

How can I specify a different footer for the introduction?

share|improve this question
At the appropriate place inside your document you can issue \renewcommand{\thepage}{\arabic{page}} (for arabic numbering) and \renewcommand{\thepage}{\roman{page}} (for Roman numbering), and your footer should follow suit. So, use the former at the start of your introduction and the latter at the start of whatever follows the introduction. – Werner May 14 '12 at 20:44
@Werner, I'm using \pagenumbering{roman} to switch the \thepage command between roman and arabic, and that works fine: the problem is the rest of the footer --- in the introduction I don't want the / N part of my 3 / N page numbering. – James May 14 '12 at 21:04
up vote 5 down vote accepted

You can issue a renewed \cfoot as needed to change the footer of the fancy page style. Here's a minimal example showing its usage:

enter image description here

\usepackage{fancyhdr}% http://ctan.org/pkg/fancyhdr
\usepackage{lastpage}% http://ctan.org/pkg/lastpage
\usepackage{lipsum}% http://ctan.org/pkg/lipsum

\cfoot{\normalsize\thepage}% Show only page number in footer
\pagenumbering{roman}% Roman-numbered pages (start from i)

\cfoot{\normalsize\thepage~/~\pageref{LastPage}}% Show page / LastPage in footer
\pagenumbering{arabic}% Arabic-numbered pages (start from 1)
\section{Other sections}

Renewing the footer (or header for that matter) will have an effect from "this page onward." That's why I issued \clearpage to restart the numbering and footer formatting on a fresh page. I assume you're doing the same.

share|improve this answer
Thanks a lot. It's really helpful :) – user15075 May 29 '12 at 13:17

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.