For some reason, page number 1-3 shows up on my output PDF file although i use the fancyhdr package including the \fancyfoot{} command.
I try to get the \fancyfoot[LE,RO]{\thepage} to work on the first three pages also but somehow, it doesn't work.
Mininum working example:
Code: Select all
\documentclass[12pt, twoside]{report}
\usepackage{fancyhdr}
\setlength{\headheight}{15pt}
\pagestyle{fancy}
\renewcommand{\sectionmark}[1]{\markright{\thesection.\ #1}}
\renewcommand{\chaptermark}[1]{\markboth{\textbf{\thechapter.\ #1}}{}}
\usepackage[top=3cm, bottom=3cm, left=2cm, right=2cm, a4paper]{geometry}
%\setkomafont{disposition}{\normalfont\bfseries}
% if i want to use it \addtokomafont{sectioning}{\color{cyan}}
\usepackage{titlesec}
\titleformat{\chapter}[hang]{\bf\huge}{\thechapter}{2pc}{}
\usepackage{cite}
\usepackage[latin1]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{mathpazo, textcomp, varioref}
\usepackage{url}
\usepackage{hyperref}
\hypersetup{colorlinks=true, linkcolor=black, citecolor=blue}
\tolerance = 5000
\usepackage{multirow}
\usepackage{subfig}
\usepackage{xfrac}
\usepackage{graphicx}
\usepackage[font=small,format=plain,labelfont=bf]{caption}
\setlength{\headwidth}{\textwidth}
\fancyhead{}
\fancyfoot{}
\fancyhead[RO]{\footnotesize \slshape \rightmark}
\fancyhead[LE]{\footnotesize \slshape \leftmark}
\fancyfoot[LE,RO]{\thepage}
\renewcommand{\bibname}{References}
\renewcommand{\contentsname}{Table of Contents}
\setlength{\parindent}{0pt}
\setlength{\parskip}{\baselineskip}
\setlength{\intextsep}{12pt}
\begin{document}
\setcounter{page}{1}
\tableofcontents
\newpage
\pagebreak
\chapter{Summary}
so summary will be written here
\newpage
\pagebreak
\chapter{Chapter one}
\section{section 1}
\newpage
\pagebreak
\subsection{subsection 1}
\end{document}