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{}
\fancyhead[LE]{\small\leftmark}
\fancyhead[RO]{\small\rightmark}
\fancyhead[RE,LO]{\textbf{\thepage}}
\renewcommand{\headrulewidth}{0pt}
\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?
Best Answer
Use the
titlesec
package's\assignpagestyle
to set the page style for\chapter
. Something like this.Edit: Now that you've added a sample, I know that you're using
fancyhdr
so the solution is simple: