So in the default book class, the page number for chapters appears at the bottom of the page. I just want the page numbering to alternate left and right, as it does for all other pages.
How can I change the different behavior for pages where there is a chapter?
I have googled the problem and I am aware the package fancyhdr may be of some use, but I don't understand how to use it (yes I read some of the documentation and I still don't understand). So far I just use its default behavior:
\usepackage{fancyhdr}
\pagestyle{fancy}
\fancyhead[LE,RO]{\slshape \rightmark}
\fancyhead[LO,RE]{\slshape \leftmark}
\fancyfoot[C]{\thepage}
\begin{document}
\Stuff
\end{document}
EDIT: I want the page numbers to appear in the header. I've changed the code to look like this:
\usepackage{fancyhdr}
\pagestyle{fancy}
\fancyhead[LE]{\slshape \rightmark}
\fancyhead[RO]{\slshape \leftmark}
\fancyhead[LO,RE]{\thepage}
\begin{document}
\Stuff
\end{document}
What this does is to alternate the pages depending on whether it is odd or even, but for chapters, the pages are still centered. Also, I now have page numbers listed in BOTH the header AND the footer for ALL pages...
novel
document class, instead ofbook
. Many of the problems you are likely to face, are internally solved within this class. For example,fancyhdr
is pre-configured with several menu choices, optimized for fiction (including the one you want). Thenovel
package is not shipped with TeX; you have to get it via your TeX package manager.