Document ClassesPage number restarts in the middle of document

Information and discussion about specific document classes and how to create your own document classes.
mecatuls
Posts: 17
Joined: Thu Jun 26, 2008 9:41 am

Page number restarts in the middle of document

Post by mecatuls »

Hello,

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
Last edited by mecatuls on Sun Dec 14, 2008 7:14 am, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
daleif
Posts: 199
Joined: Wed Nov 19, 2008 12:46 am

Re: Page number restarts in the middle of document

Post by daleif »

minimal example please.

without code it is impossible to help
phi
Posts: 577
Joined: Tue Oct 21, 2008 8:10 pm

Page number restarts in the middle of document

Post by phi »

There must be something that triggers this behavior. Could you try to figure out in which region the problem occurs, and reduce the document to the problematic region? Without any code, it's hard to say anything. If you need to include contents, simply replace them with nonsense text (from the blindtext or lipsum) packages when posting here.
User avatar
nlct
Posts: 276
Joined: Thu Nov 06, 2008 11:15 am

Page number restarts in the middle of document

Post by nlct »

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>
That's a warning rather than an error and is the result of having two pages with the same number (2 in this case).

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
mecatuls
Posts: 17
Joined: Thu Jun 26, 2008 9:41 am

Page number restarts in the middle of document

Post by mecatuls »

my master file is as given below:

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} 
\usepackage[labelfont=bf]{caption} %---> when I use this package to make label of caption Bold it gives me error as undefined control sequence related to \baselinestreach
\newfont{\punkbx}{punkbx20}

\setlength {\parindent} {1cm} % this sets the indent of paragraph, equivalent of TAB. 
\setlength {\headsep} {5mm}

\setlength{\jot}{15pt}  %<----- sets vertical space between multiple lines of equation 

\makenomenclature
\renewcommand{\nomname}{Nomenclature and Abbreviations}

\makeindex
\pagestyle{fancy}  

\renewcommand{\chaptermark}[1]{\markboth{\thechapter. \ #1}{}}  
\renewcommand{\sectionmark}[1]{\markright{\thesection \ #1}{}}

\headheight=20pt
\renewcommand\headrulewidth{1pt}

\graphicspath{{F:/figures/}}

\usepackage{hyperref} 
\usepackage{cleveref} 

\crefname{chapter}{Chapter}{Chapters}
\crefname{section}{Section}{Sections}
\crefname{subsection}{Section}{Sections}
\crefname{subsubsection}{Section}{Sections}
\crefname{figure}{Figure}{Figures} % changes default behavior to Figure. 1
\crefname{table}{Table}{Tables}
\crefname{equation}{Eq.}{Equations}
\Crefname{equation}{Eq.}{Equations}
\crefname{subfigure}{Figure}{Figures}
\crefname{subsubfigure}{Figure}{Figures}

\begin{document}
\include{Front}
\include{ch1-Intro}
\include{ch2-Literature} 
\include{ch3-Exp} 
\include{ch4-nm}
\include{ch5} 
\include{ch6}
\include{fft}
\include{ch7}
\include{conclusions}
\include{Appendix-A}

\bibliography{something}
\bibliographystyle{IEEE}
\end{document}
User avatar
localghost
Site Moderator
Posts: 9201
Joined: Fri Feb 02, 2007 12:06 pm

Page number restarts in the middle of document

Post by localghost »

mecatuls wrote:my master file is as given below: [...]
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.


Best regards
Thorsten¹
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes[/size]

¹ System: openSUSE 42.2 (Linux 4.4.52), TeX Live 2016 (vanilla), TeXworks 0.6.1
mecatuls
Posts: 17
Joined: Thu Jun 26, 2008 9:41 am

Re: Page number restarts in the middle of document

Post by mecatuls »

The included files contain standard chapter commands like

\chapter{}
blah blah
\section{}
table enviornment
eqn enviornment
.
.
.

\subsection{}

text with \cref commands .......


so on.....
User avatar
localghost
Site Moderator
Posts: 9201
Joined: Fri Feb 02, 2007 12:06 pm

Page number restarts in the middle of document

Post by localghost »

mecatuls wrote:The included files contain standard chapter commands […]
And at least one of them contains a command that causes the reset of page numbers.
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes[/size]

¹ System: openSUSE 42.2 (Linux 4.4.52), TeX Live 2016 (vanilla), TeXworks 0.6.1
mecatuls
Posts: 17
Joined: Thu Jun 26, 2008 9:41 am

Re: Page number restarts in the middle of document

Post by mecatuls »

Thanks for the response.

I have scanned my document, But I am not able to find it. I will try going through it again.

Regards,
Atul
User avatar
localghost
Site Moderator
Posts: 9201
Joined: Fri Feb 02, 2007 12:06 pm

Page number restarts in the middle of document

Post by localghost »

mecatuls wrote:[...] I have scanned my document, But I am not able to find it. [...]
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.
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes[/size]

¹ System: openSUSE 42.2 (Linux 4.4.52), TeX Live 2016 (vanilla), TeXworks 0.6.1
Post Reply