# How to get rid of a particular PDFLaTeX warning?

I am writing my bachelor's thesis and I want for the first pages (title, table of contents, abstract) to be numbered with roman numbers, and the rest of the pages with arabic numbers. I have almost managed to do this, except the fact that my abstract page and table of contents page are numbered with the same number, i, and I get the following warning:

destination with the same identifier (name{page.i}) has been already used,
duplicate ignored <to be read again>\relaxl.31 \newpage[1


I have read this page Hyperref and repeated page numbers and I have tried all these 3 options in the file mystyle.sty:

\usepackage[plainpages=false]{hyperref}
\usepackage[pdfpagelabels]{hyperref}
\usepackage[plainpages=false, pdfpagelabels]{hyperref}


But none of these help. Here is my document:

\documentclass[a4paper,10pt]{report}
\usepackage{mystyle}

\fancypagestyle{empty}{%
\fancyfoot[c]{Town, year}}

\setlength{\parskip}{0.4cm}
\setlength{\parindent}{0pt}

\title{Title}
\author{Author}

\date{}

\begin{document}
\pagenumbering{roman}

\maketitle

\newpage
\input{abstract.tex}
\newpage

\tableofcontents
\newpage

\input{./tex/chapter1.tex}
\pagenumbering{arabic}

\input{./tex/chapter2.tex}
\input{./tex/chapter3.tex}
\input{./tex/chapter4.tex}
\input{./tex/chapter5.tex}
\input{./tex/chapter6.tex}

\end{document}


This is my abstract.tex file:

\begin{abstract}
\thispagestyle{plain}
Abstract
\end{abstract}


And here is an example for one of the chapters file:

\chapter{Introduction}
\label{into}
Introduction


The mystyle.sty file:

\ProvidesPackage{mystyle}
\usepackage[utf8x]{inputenc}
\usepackage{hyperref}
\usepackage{fancyhdr}

• This looks like missing a \phantomsection statement.
– user31729
Feb 18, 2014 at 9:32
• There is some wrong anchor for bookmarks etc. inside from the \maketitle command. Omit it and try to make the title by hand. The message should vanish!
– user31729
Feb 18, 2014 at 9:46
• How can I make the title by hand? If I comment the \maketitle command I still get the warning Feb 18, 2014 at 9:54
• Why do the tableofcontents and the abstract have the same number? Do you reset it? Why? To avoid the warning see tex.stackexchange.com/a/18927/2388 (including the comments) Feb 18, 2014 at 10:01
• Many details are missing. How do you write your abstract? Please, make a self contained example. Feb 18, 2014 at 10:17