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 wanted to have all page numbering at right bottom of each page. So I used package fancyhdr.

I put this at the preamble

%customize page numbering on right hand side
\fancyhf{} %clear all header and footer fields
\fancyfoot[RO]{\thepage}
\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{0pt}

It works OK, especially at first page of every chapters with \thispagestyle{fancy} where I put after \chapter{}.

but it doesn't work at these pages below, table of contents, figures, tables and nomenclature. They are appear bottom of page at the middle. Am I missing something here?

%Table of content

\newpage
\thispagestyle{fancy}
\renewcommand\contentsname{CONTENTS}
\tableofcontents
\addcontentsline{toc}{chapter}{CONTENTS}

%List of tables 

\newpage
\thispagestyle{fancy}
\renewcommand\listtablename{LIST OF TABLES}
\listoftables
\addcontentsline{toc}{chapter}{LIST OF TABLES}

%List of figures

\newpage
\thispagestyle{fancy}
\renewcommand\listfigurename{LIST OF FIGURES}
\listoffigures
\addcontentsline{toc}{chapter}{LIST OF FIGURES}

%Nomenclature

\newpage
\thispagestyle{fancy}
\addcontentsline{toc}{chapter}{NOMENCLATURE}
\printnomenclature[3cm]
share|improve this question
    
Welcome to TeX.SE. While code snippets are useful in explanations, it is always best to compose a fully compilable MWE that illustrates the problem including the \documentclass and the appropriate packages so that those trying to help don't have to recreate it. –  Peter Grill Jul 18 '12 at 5:05
    
thanks Peter Grill for the reminder.... mine document class is report –  azlanaznam Jul 18 '12 at 5:54
add comment

1 Answer

up vote 1 down vote accepted

In the standard document classes, the first page of a chapter is set using \thispagestyle{plain}. You can redefine the plain page style to be similar to your fancy page style, which will make all references to \thispagestyle{plain} be equivalent to \thispagestyle{fancy} by following the guideline in the fancyhdr documentation (section 7 Redefining plain style, p 7):

\documentclass{book}
\usepackage{lipsum}% http://ctan.org/pkg/lipsum
\usepackage{fancyhdr}% http://ctan.org/pkg/fancyhdr
%customize page numbering on right hand side
\fancypagestyle{plain}{% Redefining plain page style
  \fancyhf{} %clear all header and footer fields
  \fancyfoot[RO]{\thepage}
}%
\fancyhf{} %clear all header and footer fields
\fancyfoot[RO]{\thepage}
\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{0pt}
\pagestyle{fancy}% Fancy page style
\begin{document}
\tableofcontents

\chapter{First chapter}%\thispagestyle{fancy}
\lipsum[1-20]
\chapter{Second chapter}%\thispagestyle{fancy}
\lipsum[21-40]
\chapter{Last chapter}%\thispagestyle{fancy}
\lipsum[41-60]
\end{document}

By redefining the plain page style, you don't have to issue \thispagestyle{fancy} at the start of every chapter, as is indicated in the above MWE.

share|improve this answer
    
thank you so much Werner... it works.... :-) –  azlanaznam Jul 18 '12 at 5:52
    
@azlanaznam: Consider up-voting and possibly marking it as ‘Accepted’ by clicking on the tickmark below their vote count (see How do you accept an answer?). It assigns reputation points to the author of the answer (and to you!). –  Werner Jul 18 '12 at 5:55
    
sorry.. may i ask one more question. i want to have 8pt size, currently is 12pt as the whole document in 12pt. i tried to insert \fancyfoot[RO]{\fontsize{8pt}\thepage}, it doesn't work. thank you for your advice. –  azlanaznam Aug 2 '12 at 5:07
    
@azlanaznam: Under a 12pt base font size, \scriptsize delivers 8pt font size. So you could use \fancyfoot[RO]{\scriptsize\thepage}. Also, you're showing a 0% accept rate. Up-voting and accepting is part of this site's functionality. See How do you accept an answer? in order to boost your acceptance rate (given that this answer helped, of course). –  Werner Aug 2 '12 at 6:32
    
thank you so much. :-) sorry i didn't know about that. thank you for advising me on that. –  azlanaznam Aug 2 '12 at 8:01
add comment

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.