For the table of contents, I change the page number in the footer from roman numerals to arabic numerals. But the problem is that the page number will be reset to 1 after the table of contents. I want to make it continue following the page number of table of contents. Could anyone tell me how to do that?
The following is my code for setup header-footer and chapter page:
% Setup fancy headings
\pagestyle{fancyplain}
\newcommand{\clearemptydoublepage}{%
\newpage{\pagestyle{empty}\cleardoublepage}%
}
\renewcommand{\chaptermark}[1]{%
\markboth{#1}{}%
}
\renewcommand{\sectionmark}[1]{%
\markright{\thesection\ #1}%
}
\fancyhead[LE]{\fancyplain{}{\includegraphics[height=0.56in, width=1.5in]{logo.jpg}}}
\fancyhead[CE]{\fancyplain{}{}}
\fancyhead[RE]{\fancyplain{}{}}
\fancyhead[LO]{\fancyplain{}{}}
\fancyhead[CO]{\fancyplain{}{}}
\fancyhead[RO]{\fancyplain{}{\includegraphics[height=0.56in, width=1.5in]{logo.jpg}}}
\fancyfoot[LE]{\fancyplain{}{\bfseries\ page \arabic{page}\ of \pageref{LastPage}}}
\fancyfoot[CE]{\fancyplain{}{}}
\fancyfoot[RE]{\fancyplain{}{}}
\fancyfoot[LO]{\fancyplain{}{}}
\fancyfoot[CO]{\fancyplain{}{}}
\fancyfoot[RO]{\fancyplain{}{\bfseries\ page \arabic{page}\ of \pageref{LastPage}}}
%---------- Set up chapter style -------------------------------------
\makeatletter
\def\thickhrulefill{\leavevmode \leaders \hrule height 2pt \hfill \kern \z@}
\def\@makechapterhead#1{%
\thispagestyle {fancyplain}
\vspace*{10\p@}%
{\parindent \z@
{\raggedleft \reset@font%
\fontencoding{OT1}\fontfamily{cmr}\fontseries{b}\fontshape{n}\fontsize{22pt}{12}\selectfont%
\bfseries\thechapter\nobreak\hspace{1ex}}%
{\raggedright \reset@font%
\fontencoding{OT1}\fontfamily{cmr}\fontseries{b}\fontshape{n}\fontsize{22pt}{12}\selectfont%
\bfseries #1}%
\interlinepenalty\@M
\par\nobreak
\textcolor{orange}{\thickhrulefill}
\vspace{26pt}
\par\nobreak
}}
\def\@makeschapterhead#1{%
\thispagestyle {fancyplain}
\vspace*{10\p@}%
{\parindent \z@
{\raggedright \reset@font%
\fontencoding{OT1}\fontfamily{cmr}\fontseries{b}\fontshape{n}\fontsize{22pt}{12}\selectfont%
\bfseries #1}%
\interlinepenalty\@M
\par\nobreak
\textcolor{orange}{\thickhrulefill}
\vspace{26pt}
\par\nobreak
}}
\makeatother