# How to change the position of the page number in the first page of every chapter of a book?

I am using the book.cls and I want that the page number of the first page (only the first page) of every chapter be at the bottom and on the right. And page numbering of the other pages remain intact.

Here is my .tex file: ‎

\documentclass[11pt,a4paper,‎twoside]{book}‎‎
‎\usepackage{lipsum}‎‎‎‎
‎\usepackage{fancybox,‎fancyhdr}‎
‎\pagestyle{fancy}‎
‎\renewcommand{\chaptermark}[1]{%‎
‎\markboth{#1}{}}‎
‎\renewcommand{\sectionmark}[1]{%‎
‎\markright{\thesection\ #1}}‎
‎\fancyhf{}
‎\renewcommand{\chaptermark}[1]{%‎
‎\markboth{\thechapter\ #1}{}}‎
‎\renewcommand{\sectionmark}[1]{\markright{\thesection\ ‎#1}}‎‎‎
‎\begin{document}‎‎
‎\chapter{Chapter‎ ‎one}‎‎
‎\section{Section‎ ‎one‎‎}‎‎
‎\lipsum[1-‎10‎‎‎]‎‎
‎\end{document}‎‎


How can I do this?

-
I think that probably this question would not have been answered if the fancyhdr manual have been carefully read. – Alessandro Cuttin Oct 21 '10 at 10:33

Use the titlesec package's \assignpagestyle to set the page style for \chapter. Something like this.

\usepackage{titlesec}
\newpagestyle{chapterpage}{\setfoot{}{}{\thepage}}
\assignpagestyle\chapter{chapterpage}


Edit: Now that you've added a sample, I know that you're using fancyhdr so the solution is simple:

\fancypagestyle{plain}{
\fancyfoot[R]{\textbf{\thepage}}
}

-
@TH: Thanks, but your solution doesn't work. In fact, the result is terrible. Because your code typesets "1 Chapter One" in the footer (and also in the header) as well. – Malek Oct 20 '10 at 17:55
@Malek: It worked just fine. You neglected to mention what you were actually doing. Now that you've done so, I've edited my answer to provide a simple solution. – TH. Oct 20 '10 at 22:04
@TH: Thanks very much for your reply. Now it is exactly what I need. – Malek Oct 21 '10 at 8:56

I assume that you want the first page of evey chapter to have the same layout of the other pages, correct? And probably you are using fancyhdr, isn'it?

If so, maybe this can help you. Otherwise, you can redefine the layout of plain (the style invoked for every \chapter command) pages like this:

\fancypagestyle{plain}{%
\fancyhf{} % clear all header and footer fields
\fancyfoot[R]{\thepage} % except the right