I am writing a report and I'm using the titlesec for the headers.
This the code I use:
Code: Select all
\renewpagestyle{plain}[\small\sffamily\upshape]{
\footrule
\setfoot{}{\textbf{\thepage}}{}}
\newpagestyle{myps}[\small\sffamily\upshape]{
\headrule
\sethead[\textbf{\thepage}][][\textbf{\thechapter. \chaptertitle}]
{\textbf{\thesection. \sectiontitle}}{}{\textbf{\thepage}}}
\pagestyle{myps}
Now, if a chapter, like the introduction or the bibliography, does not have any section, on the odd pages nothing comes out, but of course in such cases I'd like the number and title of the chapter as well.
How can I solve the problem?
Thank you, cheers, Mattia.