LaTeX forum ⇒ GeneralPage numbering problem Topic is solved

LaTeX specific issues not fitting into one of the other forums of this category.
User avatar
drpartha
Posts: 43
Joined: Wed Dec 02, 2009 1:41 am

Page numbering problem

Postby drpartha » Fri Jun 16, 2023 2:29 pm

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 ?

Recommended reading 2021:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics
User avatar
Stefan Kottwitz
Site Admin
Posts: 10071
Joined: Mon Mar 10, 2008 9:44 pm

Page numbering problem

Postby Stefan Kottwitz » Fri Jun 16, 2023 2:33 pm

Hi,

please post a Infominimal 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
LaTeX.org admin

User avatar
drpartha
Posts: 43
Joined: Wed Dec 02, 2009 1:41 am

Page numbering problem

Postby drpartha » Fri Jun 16, 2023 3:05 pm

Will create a MWE soon. Pls hangon.

EvelynKluge
Posts: 1
Joined: Sat Jun 24, 2023 8:48 am

Page numbering problem

Postby EvelynKluge » Mon Jun 26, 2023 7:04 am

Check if you have the "twoside" option enabled; it may affect the page numbering.

User avatar
drpartha
Posts: 43
Joined: Wed Dec 02, 2009 1:41 am

Page numbering problem

Postby drpartha » Fri Sep 15, 2023 5:50 am

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.

User avatar
Stefan Kottwitz
Site Admin
Posts: 10071
Joined: Mon Mar 10, 2008 9:44 pm

Page numbering problem  Topic is solved

Postby Stefan Kottwitz » Fri Sep 15, 2023 9:16 am

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:
\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

User avatar
drpartha
Posts: 43
Joined: Wed Dec 02, 2009 1:41 am

Page numbering problem

Postby drpartha » Sun Sep 17, 2023 4:30 pm

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.


Return to “General”

Who is online

Users browsing this forum: No registered users and 17 guests