In the documentclass report
, how do I prevent "CONTENTS" from appearing in the header of the Table of contents?
In the preface I have no header, only page numbers, and in the main part I want chapter in the upper, inner corner and section in the upper, outer corner - but not in the ToC where I only want page numbers.
\documentclass[12pt,a4paper,UKenglish,T1,twoside,openright]{report}
\usepackage[latin1]{inputenc}
\usepackage[bindingoffset=1cm,centering,margin=2.4cm]{geometry}
\usepackage[final]{pdfpages}
\usepackage{lastpage}
\usepackage{fancyhdr}
\setlength{\headheight}{15.2pt}
\pagestyle{fancy}
\fancyhf{}
\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{0pt}
\renewcommand{\chaptermark}[1]{\markboth{\MakeUppercase{\thechapter.\ #1}}{}}
\renewcommand{\sectionmark}[1]{\markright{\ #1}{}}
\fancyhead[LE,RO]{\rightmark}
\fancyhead[LO,RE]{\leftmark}
\fancyfoot[RO,LE]{\thepage\ of \pageref{LastPage}}
\fancypagestyle{plain}{
\fancyhf{}
\fancyhead[LE,RO]{\rightmark}
\fancyhead[LO,RE]{\leftmark}
\fancyfoot[RO,LE]{\thepage\ of \pageref{LastPage}}
\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{0pt}}
\begin{document}
\pagenumbering{Roman}
\includepdf[pages={1,{}}]{Tittelside.pdf}
\setcounter{page}{1}
\thispagestyle{plain}
\include{Abstract/abstract}
\newpage
\thispagestyle{plain}
\mbox{}
\newpage
\pagestyle{plain}
\tableofcontents
\clearpage{\pagestyle{plain}\cleardoublepage}
\pagenumbering{arabic}
\pagestyle{plain}
\include{Introduction/introduction}
\include{Futurework/Futurework}
\end{document}
\AtBeginDocument{\addtocontents{toc}{\protect\thispagestyle{plain}}}
without luck. This is how TOC is included:\newpage \pagestyle{plain} \tableofcontents \clearpage{\pagestyle{plain}\cleardoublepage} \pagenumbering{arabic} \pagestyle{plain}
\documentclass{...}
and ending with\end{document}
.