Document Classes ⇒ Page number restarts in the middle of document
Page number restarts in the middle of document
I am writing my thesis, and my problem is that in the middle of thesis, page numbers restart from 1. I am not sure what is the reason for this behavior.
I am using hyperref and cleveref packages. I added cleverref package recently and suspect that it is because of its conflict. Can anyone help me with this.
I get an error corresponding to the page from where number restarts.
Error message reads like
pdfTex warning (ext4): destination with the same identifier (name(page.2)) has been already used, duplicate ignored <to be read again>
Thanks,
Atul
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p
Re: Page number restarts in the middle of document
without code it is impossible to help
Page number restarts in the middle of document
Page number restarts in the middle of document
That's a warning rather than an error and is the result of having two pages with the same number (2 in this case).mecatuls wrote:I get an error corresponding to the page from where number restarts.
Error message reads like
pdfTex warning (ext4): destination with the same identifier (name(page.2)) has been already used, duplicate ignored <to be read again>
Check if you have any of the following commands where the page number is reset: \frontmatter, \mainmatter, \pagenumbering as these all reset the page counter.
If you're not sure how to create a minimal example, you could try Creating a LaTeX minimal example which has a section on hacking down.
Regards
Nicola Talbot
Creating a Minimal Example: http://www.dickimaw-books.com/latex/minexample/
Page number restarts in the middle of document
Code: Select all
\documentclass[12pt,a4paper,english]{iiscthes}%\includeonly{Front}%\includeonly{ch1}%\includeonly{ch2}%\includeonly{ch3}%\includeonly{ch4}%\includeonly{ch5}%\includeonly{ch6}\includeonly{ch7}\usepackage{epsfig, graphicx}\usepackage{algorithm,algorithmic}\usepackage{microtype}\usepackage{chemarr}\usepackage{amsmath}\floatstyle{ruled}\usepackage{pdfsync}\usepackage{appendix}\usepackage{paralist}\usepackage{multirow}\usepackage{babel}\usepackage{subfigure}\usepackage{paralist}\usepackage{url}\usepackage{fancyhdr}\usepackage[sort, compress]{natbib}\bibpunct{[}{]}{,}{n}{,}{,}\usepackage{tocbibind}\usepackage[intoc]{nomencl}\usepackage{booktabs}\usepackage{eucal}\usepackage{mathrsfs}\usepackage{rotating}\usepackage[plain]{fancyref}\renewcommand*{\fancyrefdefaultspacing}{\fancyreftightspacing}
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Page number restarts in the middle of document
This is useless because nobody knows what's inside the included files. Check these files for the commands that Nicola mentioned in her last reply.mecatuls wrote:my master file is as given below: [...]
Best regards
Thorsten¹
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Re: Page number restarts in the middle of document
\chapter{}
blah blah
\section{}
table enviornment
eqn enviornment
.
.
.
\subsection{}
text with \cref commands .......
so on.....
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Page number restarts in the middle of document
And at least one of them contains a command that causes the reset of page numbers.mecatuls wrote:The included files contain standard chapter commands […]
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Re: Page number restarts in the middle of document
I have scanned my document, But I am not able to find it. I will try going through it again.
Regards,
Atul
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Page number restarts in the middle of document
Shouldn't be so difficult. You can see in your document where the page number restarts. Hence you know the chapter and with that the file you have to search in.mecatuls wrote:[...] I have scanned my document, But I am not able to find it. [...]
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10