Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I made a table of content with clickable links. Links to chapters and sections work fine: when I click on them I see the chapter title and its content. On the other hand, when I click to the list of figures, tables and content itself, I get to the text of the list rather then see the whole page with the title "List of Figures".

Can I get 'list of figure' behave in the same way of chapters?

EDIT: it might be a problem on how I compile the code as other users with the same pdf viewer say it already works as I would like.

Here's a code sample.

\documentclass{book}

\usepackage{color}
\usepackage{hyperref}
\hypersetup{
    colorlinks=true,
    citecolor=black,
    filecolor=black,
    linkcolor=blue,
    urlcolor=black
}


\begin{document}

\tableofcontents
\addcontentsline{toc}{chapter}{Content}

\newpage ~

\listoffigures
\addcontentsline{toc}{chapter}{List of Figures}

\listoftables
\addcontentsline{toc}{chapter}{List of Tables}

\newpage ~
\chapter{Intro}

\begin{figure}
\caption{Bla Bla}
\label{fig:bla}
\end{figure}

\newpage ~
\chapter{Related}

\begin{table}[hb]
\caption{Boh}
\begin{tabular}{|l|l|r|}

\end{tabular}
\label{tab:boh}
\end{table}


\end{document}
share|improve this question
    
This is is pretty easy to explain, the link comes with the caption. Since the Caption of a figure is below of the picture, the link points below the figure. –  Rico Sep 2 '13 at 14:43
    
Try the package »tocbibind« instead of the \addcontentsline commands. –  Thorsten Donig Sep 2 '13 at 14:43
    
@Rico, the point is the link to the list of figures not the links inside the list pointing to the figures. Note that inverting the lines \listoffigures \addcontentsline does not work properly. –  Niccolò Sep 2 '13 at 14:53
    
@ThorstenDonig I check it, thanks. The problem is that I actually use an external .sty that slightly modifies these and other commands. So it can be problematic. –  Niccolò Sep 2 '13 at 14:57
    
@ThorstenDonig the package did not work anyway. I tried it on the above example. –  Niccolò Sep 2 '13 at 15:15

1 Answer 1

up vote 1 down vote accepted

It seems that you are using an outdated TeXLive 2009. You can see this in the first line of your log file:

This is pdfTeX, Version 3.1415926-1.40.10 (TeX Live 2009/Debian) (format=pdflatex 2013.6.3) 

The current version is TeXLive 2013.

Please follow question How to install "vanilla" TeXLive on Debian or Ubuntu? to update your system.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.