Book world.
For my diss, I would like to have headers on chapter/title pages as well (Contents included), but I would like to hide the chapter name, and just keep the page number. This will prevent repetitions. From the second page onwards, classical heading applies (chapter/session name + page number).
I attach relevant coding:
Code: Select all
\usepackage{fancyhdr}
\setlength{\headheight}{15.2pt}
\pagestyle{fancy}
\renewcommand{\chaptermark}[1]{
\markboth{\thechapter.\ #1}{}}
\renewcommand{\sectionmark}[1]{
\markright{\thesection.\ #1}}
\lhead[\thepage]{\leftmark}
\rhead[\rightmark]{\thepage}
\fancyfoot[C]{} %remove page number from footer
\makeatletter %insert header on title pages
\let\ps@plain\ps@fancy
\makeatother
\begin{document} %__________
\pagestyle{fancy}
\begin{doublespace}
\pagenumbering{roman}
\tableofcontents
\end{doublespace}
\clearpage
\mainmatter
\pagenumbering{arabic}
\chapter{Lorem Ipsum}
Lorem Ipsum
\end{document}
Any help would be highly appreciated.
Sincerely,
Udiubu