If you run this MWE piece of code (twice), you will see that there is a Contents header over the Acknowledgements and Acronyms section. I wonder why this is happening... and how to change it.
Any clues? Thanks!
Code: Select all
\documentclass[11pt]{book}
\usepackage{array,booktabs,longtable,tabularx}
\usepackage{chapterbib,varioref,url}
\usepackage{graphicx}
\usepackage{lineno,paralist,appendix,marginnote,float,amsfonts}
\usepackage{xkeyval,ifpdf}
\usepackage{subfig}
\usepackage{calc,lscape,rotating,textcomp}
\usepackage{fancyhdr}
\usepackage{setspace}
\usepackage{blindtext}
\usepackage{fancyhdr}
\pagestyle{fancy}
\renewcommand{\chaptermark}[1]{\markboth{#1}{}}
\renewcommand{\sectionmark}[1]{\markright{\thesection\ #1}}
\fancyhf{} % delete current setting for header and footer
\fancyhead[LO]{\bfseries\rightmark}
\fancyhead[RE]{\bfseries\leftmark}
\fancyfoot{} % clear all footer fields
\fancyfoot[LE,RO]{\bfseries\thepage}
\fancypagestyle{plain}{%
\fancyhead{} % get rid of headers on plain pages
\renewcommand{\headrulewidth}{0pt} % and the line
}
\usepackage[english]{babel}
\begin{document}
\tableofcontents
\chapter*{Acknowledgements}
\addcontentsline{toc}{chapter}{Acknowledgements}
%\input{acknowledgements}
\chapter*{Acronyms \& Abbreviations}
\addcontentsline{toc}{chapter}{Acronyms \& Abbreviations}
%\input{abbreviations}
\Blinddocument
\end{document}