Hello and first of all sorry if this is the wrong forum section for this question.
I'm writing a document with the book document class, parameters are [a4paper, 11pt, oneside, titlepage, openany]. Page number is centered in the footer for title pages, and top right corner for the other pages. Is there an easy way to place it centered in the footer for every page?
Page Layout ⇒ Page number centered on footer with book class
NEW: TikZ book now 40% off at Amazon.com for a short time.

- Johannes_B
- Site Moderator
- Posts: 4182
- Joined: Thu Nov 01, 2012 4:08 pm
Page number centered on footer with book class
Hi and welcome,
there are several packages that take care of this. One of them is package scrlayer-scrpage, from the KOMA-bundle (up-to-date).
You can use the following code:
there are several packages that take care of this. One of them is package scrlayer-scrpage, from the KOMA-bundle (up-to-date).
You can use the following code:
Code: Select all
\documentclass[a4paper, 11pt, oneside, titlepage,
%openany%since there are no left and right pages in a oneside
%document, you can leave that out.
]{book}
\usepackage[automark,
markcase=noupper
]{scrlayer-scrpage}
\setlength{\headheight}{13.6pt}%Found in the log file
\clearpairofpagestyles
\cfoot*{\pagemark}
\ihead{\leftmark}%chead better?
\usepackage{blindtext}
\begin{document}
\blinddocument
\end{document}
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.