I am using the fancyhdr package and I have got big issues with the page numbering. Indeed, the pages appear for each new title, but then I don't have anymore page numbers,
Here is the code furnish by the package, I hope that someone could explain me what is wrong:
\usepackage{fancyhdr}
\lhead[\rm\thepage]{\fancyplain{}{\sl{\rightmark}}}
\rhead[\fancyplain{}{\sl{\leftmark}}]{\rm\thepage}
\chead{}
\lfoot{}
\rfoot{}
\cfoot{}
\pagestyle{fancy}
\renewcommand{\chaptermark}[1]{\btypeout{\thechapter\space #1}\markboth{\@chapapp\ \thechapter\ #1}{\@chapapp\ \thechapter\ #1}}
\renewcommand{\sectionmark}[1]{} \renewcommand{\subsectionmark}[1]{} \def\cleardoublepage{\clearpage\if@twoside \ifodd\c@page\else \hbox{} \thispagestyle{empty}
\newpage
\if@twocolumn\hbox{}
\newpage\fi\fi\fi}
\documentclass{...}and ending with\end{document}. – jub0bs May 26 '13 at 12:46