The problem is either related to 'geometry' or 'fncychap' -- the pages with the Chapter headings have nothing at the header, but the following pages have a line at the top of the page... How do I remove this please?
Here is a cut-down version of my Thesis.tex
Code: Select all
\documentclass[a4paper, oneside, 11pt, openany]{book}
\usepackage{graphicx, natbib, amssymb, textcomp, amstext}
\usepackage{layouts}
\usepackage{lmodern}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[top=2cm, bottom=2.5cm, footskip=1.2cm, left=4cm, right=2.2cm]{geometry} % shows margins, sets margin widths etc
\usepackage[Bjornstrup]{fncychap}
\ChTitleVar{\raggedleft\Huge\sffamily\bfseries}
%force pagenumbering at bottom/centre of each page
\usepackage{fancyhdr}
\pagestyle{fancyplain}
\fancyhf{}
\cfoot{--- \thepage\ ---}
\usepackage{lipsum}
% generate nonsense latin text
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{document}
\mainmatter
\chapter{The first chapter}
\section{First section}
\lipsum[1-5]
\section{Second section}
\lipsum[6-12]
\chapter{The second chapter}
\section{First section}
\lipsum[1-5]
\section{Second section}
\lipsum[6-12]
\end{document}