I'm writing a thesis using memoir
as my class. I would like a header similar to fancyhdr
, but this is not emulated in memoir
. I know how to make my own pagestyle, however when I try to refer to the chapter name it only prints the chapter number.
On verso pages, I want the chapter name to be left ragged and the section name to be right ragged, and vice versa on recto pages. My code looks like this:
\makepagestyle{dtu}
\makeevenhead{dtu}{\sffamily \thechapter}{}{\sffamily \thesection}
\makeoddhead{dtu}{\sffamily \thesection}{}{\sffamily \thechapter}
\makeevenfoot{dtu}{\sffamily \thepage}{}{}
\makeoddfoot{dtu}{}{}{\sffamily\thepage}
\makeheadrule{dtu}{\textwidth}{1pt}
\pagestyle{dtu}
But it only prints the numbers, not the number + name of the chapter/section! How can I include the number+name of each chapter and section in the header?