I notice that my even pges are not numbered . Why ?
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 ?
LaTeX forum ⇒ General ⇒ Page numbering problem Topic is solved
- Stefan Kottwitz
- Site Admin
- Posts: 10071
- Joined: Mon Mar 10, 2008 9:44 pm
Page numbering problem
Hi,
please post a
minimal working example that shows the issue when we compile it. Knowing document class and page style is not enough to guess what causes it in the other code.
Best regards,
Stefan
please post a

Best regards,
Stefan
LaTeX.org admin
Page numbering problem
Will create a MWE soon. Pls hangon.
-
- Posts: 1
- Joined: Sat Jun 24, 2023 8:48 am
Page numbering problem
Check if you have the "twoside" option enabled; it may affect the page numbering.
Page numbering problem
YES, the documentclass I use is :: \documentclass[12pt,a5paper, twoside, openany]{book}
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.
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: 10071
- Joined: Mon Mar 10, 2008 9:44 pm
Page numbering problem Topic is solved
It can be a margin issue. Included files are usually chapters with text and don't affect global settings.
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:
Click on "Run LaTeX here" to see it.
Stefan
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:
\documentclass[12pt,a5paper, twoside, openany]{book} \pagestyle{plain} \usepackage{blindtext} \usepackage{geometry} \begin{document} \include{chap1} \include{chap2} \include{chap3} \end{document}
Click on "Run LaTeX here" to see it.
Stefan
LaTeX.org admin
Page numbering problem
I followed the hint given by Stefan. The problem just vanished. I suspect that I had put a \pagetstyle{empty} somehwhere in one of the pages I had \input in the top level document. Thanks to all, I can now sleep in peace.
Who is online
Users browsing this forum: No registered users and 18 guests