I am working on my thesis, using small parts of the exisiting template of my university. There, the head line is defined like in the MWE. Since I included a table of contents, list of figures and some smaller one page chapters numbered with roman letters before the actual dissertation begins, the following problem really disappoint me.
Somehow the head and especially the number(wheter roman or arabic) are not displayed on pages starting with a new chapter, including all of the examples I mentioned above. So basically there are some pages at the beginning without any head, altough their location is stated correctly in the table of contents.
I am pretty sure that it has to do with the definition of the pagestyle, but I could not solve it on my own.
I would like to have a head everywhere, except of the front page and empty pages in between chapters, as induced by \cleardoublepage .
Here is the MWE:
\documentclass[12pt,
listof=totoc,
bibliography=totoc,
listof=chapterentry]
{scrbook}
\usepackage{a4wide}
\usepackage{fancyhdr}
\usepackage{blindtext}
\pagestyle{fancyplain}
\renewcommand{\chaptermark}[1]%
{\markboth{\thechapter.\ #1}{}}
\renewcommand{\sectionmark}[1]%
{\markright{\thesection\ #1}}
\lhead[\fancyplain{}{\bfseries\thepage}]%
{\fancyplain{}{\bfseries\rightmark}}
\rhead[\fancyplain{}{\bfseries\leftmark}]%
{\fancyplain{}{\bfseries\thepage}}
\cfoot{}
\begin{document}
\chapter{chapter without numbers}
\blindtext
\section{a section}
\Blindtext
\chapter{another chapter}
\Blindtext
\end{document}
fancyhdr
with a KOMA-Script class is not really recommended or only if you know, what you are doing. Usage ofscrlayer-scrpage
would be more recommended. Moreover, packagea4wide
is one of the packages, listed inl2tabu
as do not use.