Take the 2-minute tour ×
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.

I want the footer of all pages to be "Page N°X" on the right. I used this:

\usepackage{fancyhdr}
\pagestyle{fancy}
\fancyhf{} % clear all header and footer fields
\fancyhead[R]{\leftmark}
\fancyfoot[R]{\footnotesize Página N$^\circ$ \thepage\ }
\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{0pt}

It works on every page but the chapter beginning ones.

share|improve this question
1  
Instead of N$^\circ$ you could use \textnumero, which is part of the textcomp package. It looks nicer and it avoids "abusing" the math environment. –  doncherry May 1 '11 at 9:05

1 Answer 1

up vote 7 down vote accepted

The first page of every chapter gets the plain page style internally; you can change this behaviour by redefining the plain style:

\usepackage{fancyhdr}
\pagestyle{fancy}
\fancyhf{} % clear all header and footer fields
\fancyhead[R]{\leftmark}
\fancyfoot[R]{\footnotesize Página N$^\circ$ \thepage\ }
\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{0pt}
% redefinition of the plain style:
\fancypagestyle{plain}{%
\fancyhf{} % clear all header and footer fields
\fancyfoot[R]{\footnotesize Página N$^\circ$ \thepage\ }
\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{0pt}}
share|improve this answer

Your Answer

 
discard

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.