I would like to insert the chapter number and name on the left header of a page.
So far, I have used the following code, which works very well:
\renewcommand{\chaptermark}[1]{\markright{\thechapter\;\; #1}{}}
\lhead[\fancyplain{}{}]{\fancyplain{}{\bfseries\rightmark}}
\chead[\fancyplain{}{}]{\fancyplain{}{}}
\rhead[\fancyplain{}{}]{\fancyplain{}{\bfseries\thepage}}
However, if I happen to include sections, this code does not work anymore, replacing the chapter number and name by the section number and name (capitalised, for some reason).
Could anybody please help? Thanks.
Best Answer
The result: