I am working in a book now, but since the beginning I've had this problem... It generates the toc and prints the index in the final page of pdf, but all items on index lead to the same page at clicking anyone of these.
I am using Debian Squeeze and my TeX Live version is 2009.
Here is my main .tex
Code: Select all
\documentclass[12pt,oneside]{book}
\linespread{1}
\usepackage{graphicx}
\usepackage{color}
\usepackage{ulem}
\usepackage{fixltx2e}
\usepackage[colorlinks,citecolor={blue},linkcolor={blue}]{hyperref}
\usepackage{titlesec}
\titleformat{\section}[display]
{\normalfont\huge\bfseries\centering}{\centering\sectiontitlename\ \thesection}{20pt}{\Huge}
\titlespacing*{\section}
{0pt}{40pt}{20pt}
\renewcommand{\contentsname}{\'Indice}
\renewcommand{\rmdefault}{pag}
\renewcommand{\ttdefault}{pag}
\normalfont
\usepackage[T1]{fontenc}
\definecolor{greyish}{cmyk}{0.025,0.025,0.025,0.025}
\definecolor{darkblue}{rgb}{0,0,0.3}
\definecolor{darkgreen}{rgb}{0,0.1,0}
\begin{document}
\input{titlepage}
\newpage
{
\pagestyle{empty}
\begin{center}
\bigskip
\bigskip
\bigskip
\begin{footnotesize}
\textbf{n\'emesis} \textit{f. fig.}Castigo.
\end{footnotesize}
\end{center}
\newpage
}
%------------------------------------------------------
\input{presspage}
%------------------------------------------------------
\section*{Si Llegas}
\addcontentsline{toc}{section}{Si Llegas}
\begin{verse}
bla bla
%feb 25, 2.40am
\end{verse}
\newpage
%------------------------------------------------------
\section*{Contestando el Buz\'on de Sugerencias}
\addcontentsline{toc}{section}{Contestando el Buz\'on de Sugerencias}
\begin{verse}
bla bla
%Mar 1, 01:08am
\end{verse}
\newpage
%------------------------------------------------------
\section*{S\'olo un Momento}
\addcontentsline{toc}{section}{S\'olo Un Momento}
\begin{verse}
blabla
%feb 25, 9.41pm
\end{verse}
\newpage
%------------------------------------------------------
\section*{Editorial}
\addcontentsline{toc}{section}{Editorial}
%------------------------------------------------------
\begin{verse}
blabla
\end{verse}
\newpage
%------------------------------------------------------
\tableofcontents
\end{document}