This is my code:
\documentclass[12pt,a4paper]{book}
\usepackage[T1]{fontenc}
\renewcommand{\baselinestretch}{1.5}
\pagestyle{fancy}
\fancypagestyle{plain}
{ \renewcommand{\chaptermark}[1]{\markboth{\chaptertitlename\ \thechapter.\ #1}{}}
\renewcommand{\sectionmark}[1]{\markright{\thesection\ #1}}
\fancyhead{}
\fancyfoot{}
\fancyfoot[C]{ \textbf{ \small \textsf{\thepage}}} \fancyhead[LE]{\scshape \rightmark}
\fancyhead[RO]{\scshape \leftmark}
\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{0pt} }
\begin{document}
\include{Chapter1}
\include{Chapter2}
\end{document}
i have used this code to add page number to the first page of each chapter (which contains the minitoc), I have errors, Have you an idea please ?
\chaptermarkand\sectionmarkas part of\fancypagestyle{plain}{...}. Moreover, you need to add also the settings for the "normal" page style. – egreg Jan 1 at 17:00\usepackage{titlesec}and\usepackage{fancyhdr}in your preamble too. – hpesoj626 Jan 1 at 17:02