# Error; bookmark in PDF

I have this problem in LaTeX when I use;

\addcontentsline{toc}{section}{Resumen}

\tableofcontents

\tableofcontents

.
.
.

\setcounter{page}{1}
\renewcommand{\thepage}{\arabic{page}}

\section*{Capítulo 1 Introducción}

\setcounter{section}{1}

\subsection{Origen y necesidades del tema}


How can I fix this? Thanks for all!

• What is the problem you want fixed? – dgoodmaniii May 26 '15 at 4:28
• In the left side, the index is not well like in the right side – xiuhays May 28 '15 at 13:13

Add \usepackage{bookmark}. It implements a more robust algorithm with duplicate anchors and broken section structure. Maybe it is able to fix some of the issues.

But it cannot correct the LaTeX code:

• Setting \tableofcontents twice does not make sense.
• \section*{Capítulo 1 Introducción}
• Using \section\ for chpaters.
• \setcounter{page}{1}\renewcommand{\thepage}{\arabic{page}} can be replaced by \pagenumbering{arabic} or depending on the class \mainmatter can be used.
• LaTeX2e deprecates the use of old font switches \bf and friends. The new form are \bfseries as font switch statement and the argument form \textbf{...}. Anyway \section titles are usually already bold.