3

I recently decide to change the report class to book class for my thesis. One noticeable difference is that at the top of the page, chapter name appears for book class. Another noticeable difference is for every alternate page the page number appears at the top right instead of at the bottom of the page.

My goal is to make the chapter name disappears and make page number appears at the the bottom of the page for every single page. How can I do that? enter image description here

4

One way: Use the fancyhdr package and kick out all footers/headers first with \fancyhf{} and then enable \cfoot{\thepage} for a bottom page number, centered. Use \pagestyle{fancy} then.

\documentclass[12pt]{book}

\usepackage{blindtext}
\usepackage{fancyhdr}



\fancyhf{}
\renewcommand{\headrulewidth}{0pt}
\cfoot{\thepage}


\begin{document}
\pagestyle{fancy}
\tableofcontents
\chapter{Introduction}

% Dummy stuff
\blinddocument
\end{document}
| improve this answer | |
4

The book document class uses the headings page style for all pages except those that contain chapter headings (which use the plain page style). If I understand your requirements correctly, you want all pages to use the plain page style. This objective may be achieved by adding the following instruction to the document's preamble:

\pagestyle{plain} 
| improve this answer | |
  • I should definitely go deeper into this \ps@... stuff... ;-) – user31729 Jul 6 '15 at 20:18
  • That's cool ... I have no idea because I've never used the internal representation so far... – user31729 Jul 6 '15 at 20:23
  • 3
    Why not simply do \pagestyle{plain} before \begin{document}? There's no chance the page style headings will be used unless explicitly requested. – egreg Jul 6 '15 at 20:29
  • @egreg - Excellent point. :-) I'll make the change. – Mico Jul 6 '15 at 21:16
1

The package scrlayer-scrpage is another possibility:

\documentclass[12pt]{book}
\usepackage{blindtext}

\usepackage{scrlayer-scrpage}
\clearpairofpagestyles
\cfoot*{\pagemark}

\begin{document}
\tableofcontents
\chapter{Introduction}
\blinddocument
\end{document}
| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.