Document Classes ⇒ Page number restarts in the middle of document
Page number restarts in the middle of document
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
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.
Re: Page number restarts in the middle of document
minimal example please.
without code it is impossible to help
without code it is impossible to help
Page number restarts in the middle of document
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.
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
LaTeX Resources: http://www.dickimaw-books.com/latexresources.html
Creating a Minimal Example: http://www.dickimaw-books.com/latex/minexample/
Creating a Minimal Example: http://www.dickimaw-books.com/latex/minexample/
Page number restarts in the middle of document
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}
- localghost
- Site Moderator
- Posts: 9201
- 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¹
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
Board Rules
Avoidable Mistakes[/size]
¹ System: openSUSE 42.2 (Linux 4.4.52), TeX Live 2016 (vanilla), TeXworks 0.6.1
Re: Page number restarts in the middle of document
The included files contain standard chapter commands like
\chapter{}
blah blah
\section{}
table enviornment
eqn enviornment
.
.
.
\subsection{}
text with \cref commands .......
so on.....
\chapter{}
blah blah
\section{}
table enviornment
eqn enviornment
.
.
.
\subsection{}
text with \cref commands .......
so on.....
- localghost
- Site Moderator
- Posts: 9201
- 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 […]
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
Board Rules
Avoidable Mistakes[/size]
¹ System: openSUSE 42.2 (Linux 4.4.52), TeX Live 2016 (vanilla), TeXworks 0.6.1
Re: Page number restarts in the middle of document
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
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: 9201
- 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. [...]
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
Board Rules
Avoidable Mistakes[/size]
¹ System: openSUSE 42.2 (Linux 4.4.52), TeX Live 2016 (vanilla), TeXworks 0.6.1