General ⇒ Page numbering problem
Page numbering problem
I am using the document class ::
%\documentclass[a4paper,12pt]{book}
\documentclass[12pt,a5paper, twoside, openany]{book}
with \pagestyle{plain}
Strangely, all odd pages numbers are displayed correctly.
I am not using fancyheader anywhere.
Where am I going wrong ? Can someone give me a clue ?
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
- Stefan Kottwitz
- Site Admin
- Posts: 10360
- Joined: Mon Mar 10, 2008 9:44 pm
Page numbering problem
please post a

Best regards,
Stefan
Page numbering problem
-
- Posts: 1
- Joined: Sat Jun 24, 2023 8:48 am
Page numbering problem
Page numbering problem
In any case, book class is two sided by default. I suspect, the problem comes from the fact
that this book uses lot of \include files (one for each chapter). Maybe one/or more of these files is
causing a conflict and breaking the page numbering.
- Stefan Kottwitz
- Site Admin
- Posts: 10360
- Joined: Mon Mar 10, 2008 9:44 pm
Page numbering problem
You could create a copy of your document (copy of the whole folder), and test: comment out the included files, insert some dummy text, so you see if the issue persists even without the included files. You could post the reduced document copy here. If the issue goes away without the included files, comment in / activate them one by one and see step by step if the issue appears again.
In any case, if you don't tell us your preamble settings (header settings, margin settings) or suspect the issue in a file that you also don't post, we can hardly help.
Here, it doesn't happen, and I only did what you said:
Code: Select all
\documentclass[12pt,a5paper, twoside, openany]{book}
\pagestyle{plain}
\usepackage{blindtext}
\usepackage{geometry}
\begin{document}
\include{chap1}
\include{chap2}
\include{chap3}
\end{document}
Stefan