I have been trying to use fancyheadings.sty to set headers for a report doc.I just want to set it for all pages so that it shows subsection and page number only.but some of the pages have headers,others have some other strange text in the header??some of the headers are drawn into the text body, others have no headers..etc is there a simple way to do this?thanks
here is the code am using
Code: Select all
\pagestyle{fancy}
\parskip=2mm
\renewcommand{\chaptermark}[1]{\markboth{\thechapter. #1}{}}
\renewcommand{\sectionmark}[1]{\markright{\thesection. #1}}
\renewcommand{\subsectionmark}[1]{\markright{\thesubsection. #1}}
\lhead[\fancyplain{}{\bfseries\thepage}]%
{\fancyplain{}{\bfseries\rightmark}}
\rhead[\fancyplain{}{\bfseries\leftmark}]%
{\fancyplain{}{\bfseries\thepage}}
\cfoot{}