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}
Best Answer
It seems that you are using an outdated TeXLive 2009. You can see this in the first line of your log file:
The current version is TeXLive 2013.
Please follow question How to install "vanilla" TeXLive on Debian or Ubuntu? to update your system.