Generalan issue in TOC

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
User avatar
joe74
Posts: 15
Joined: Tue Mar 24, 2009 6:17 am

an issue in TOC

Post by joe74 »

Hi. A lot of time not visiting here.

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}
Any idea of what might be missing there?
joe74
http://latexlive.wordpress.com/
TeX Live 2009/TeXmaker
Powered by Debian Squeeze

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

west.logan
Posts: 87
Joined: Tue Sep 14, 2010 6:58 pm

Re: an issue in TOC

Post by west.logan »

This isn't a Minimum working example: you have several files that as an input. I can't see what the problem is.
User avatar
joe74
Posts: 15
Joined: Tue Mar 24, 2009 6:17 am

an issue in TOC

Post by joe74 »

west.logan wrote:This isn't a Minimum working example: you have several files that as an input. I can't see what the problem is.
Thanks for suggesting me the MWE thing. You can ignore the \input command and my example still resembles the error I get there in my document.

Guess I'll have to google somewhere else.

Thanks.
joe74
http://latexlive.wordpress.com/
TeX Live 2009/TeXmaker
Powered by Debian Squeeze
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

an issue in TOC

Post by localghost »

Insert \phantomsection right before every starred section in your document. See the hyperref manual for details.


Thorsten
Post Reply