# How to set page number at right footer

I want to know how can i set the page number of documents at right footer i.e. bottom right of the page in the whole document even on the chapter heading page too. Please help me out on this.

• What \documentclass are you using? – Werner Jan 9 '14 at 5:15
• Which typesetting software package do you use? Is it TeX/LaTeX? If so, which document class do you employ? – Mico Jan 9 '14 at 14:05
• Report class with Latex. – Shivam Dhoot Jan 9 '14 at 17:32

This should get you started.

\documentclass{article}

\usepackage{fancyhdr}
\usepackage{lipsum}

\title{Some document}
\author{Shivam Dhoot}

% Turn on the style
\pagestyle{fancy}
% Clear the header and footer
\fancyfoot{}
% Set the right side of the footer to be the page number
\fancyfoot[R]{\thepage}

\begin{document}
\maketitle
% Input some blind text
\lipsum
\end{document}


Since you explicitly mention that you want the page number also on the footer of chapter heading pages, you need to redefine the plain style, which is used for these pages. Copying from this answer here I get this code here, which seems to be exactly what you want.

\documentclass{report} % to have chapters

\usepackage{fancyhdr} % to change header and footers
\usepackage{blindtext} % to quickly get a full document

\title{Some document}
\author{Shivam Dhoot}

\pagestyle{fancy} % Turn on the style
% Set the right side of the footer to be the page number
\fancyfoot[R]{\thepage}

% Redefine plain style, which is used for titlepage and chapter beginnings
% From https://tex.stackexchange.com/a/30230/828
\fancypagestyle{plain}{%