Edited to include a reproducible example.
So, I've found a number of people asking about how to add the chapter title from the header of subsequent pages but I need the opposite. I'm using fancy header but need everything except the page number removed from the header (the page needs to be at the top right of every page). The code I'm using removes the header from the first page of each chapter, but every subsequent page has the chapter name in the header on the left. I'm using \documentclass[12pt,oneside]{book}
.
Below is the header code:
\documentclass[12pt,oneside]{book}
\usepackage{fancyhdr} % Permits header customization. See header section below.
\fancypagestyle{plain}{
\lhead{}
\fancyhead[R]{\thepage}
\fancyhead[L]{}
\renewcommand{\headrulewidth}{0pt}
\fancyfoot{}
}
\begin{document}
\chapter{Starting Here}
Some stuff
\newpage
New stuff
\end{document}
I have to submit this document with specific formatting requirements and want to continue using the fancyhdr package. Any help is much appreciated.
While your MWE loads the fancyhdr
package, you don't actually use it for normal pages as there is no \pagestyle{fancy}
or similar. This means your code only customises plain pages like they are used for the first page of a chapter.
If you want to customise normal pages as well:
\documentclass[12pt,oneside]{book}
\usepackage{fancyhdr} % Permits header customization. See header section below.
\fancypagestyle{plain}{
\lhead{}
\fancyhead[R]{\thepage}
\fancyhead[L]{}
\renewcommand{\headrulewidth}{0pt}
\fancyfoot{}
}
\pagestyle{fancy}
\fancyhead[R]{\thepage}
\fancyhead[L]{}
\renewcommand{\headrulewidth}{0pt}
\fancyfoot{}
\begin{document}
\chapter{Starting Here}
Some stuff
\newpage
New stuff
\end{document}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With