Package hyperref Warning: contentsline with no destination at line 290.
(report.lof [5]) [6]
where in the latex file I have:
\addcontentsline{toc}{chapter}{List of Figures}
\listoffigures
\clearemptydoublepage
I also notice in the pdf file that normal chapters do have the hyperlinks,
but there is no hyperlink to the list of tables/figures.
Any ideas how to fix this?
thanks in advance,
Stuart
Stuart Colley wrote:
>
> pdflatex seems to be having a problem with my list of tables/figures, e.g:
>
> Package hyperref Warning: contentsline with no destination at line 290.
>
> (report.lof [5]) [6]
>
> where in the latex file I have:
>
> \addcontentsline{toc}{chapter}{List of Figures}
> \listoffigures
> \clearemptydoublepage
>
> I also notice in the pdf file that normal chapters do have the hyperlinks,
> but there is no hyperlink to the list of tables/figures.
>
The tocbibind package adds things like the title of the LoF to the
ToC, with hyperlinks if the hyperref package is used as well. Otherwise,
do:
\clear(double)page
\phantomsection
\addcontentsline...
Peter W.
>Package hyperref Warning: contentsline with no destination at line 290.
>
>\addcontentsline{toc}{chapter}{List of Figures}
>\listoffigures
>\clearemptydoublepage
\clearemptydoublepage
\phantomsection % generates an anchor for \addcontentsline
\listoffigures
...
Yours sincerely
Heiko <ober...@uni-freiburg.de>
\phantomsection doesn't work on my machine, I suspect because the
version of the
hyperref package is older than v6.70. I did however find a machine on
our network with version 6.70f, however problems still remain:
! LaTeX Error: Command \harvarditem already defined.
or Name \end... illegal
when running pdflatex, but not latex. Are there conflicts between the
harvard and hyperref packages? Since I only use hyperref with
pdflatex.
thanks again,
Stuart
> \phantomsection doesn't work on my machine, I suspect because the
> version of the
> hyperref package is older than v6.70. I did however find a machine on
> our network with version 6.70f, however problems still remain:
> ! LaTeX Error: Command \harvarditem already defined.
> or Name \end... illegal
> when running pdflatex, but not latex. Are there conflicts between the
> harvard and hyperref packages? Since I only use hyperref with
> pdflatex.
Which versions?
Minimal test file?
Yours sincerely
Heiko <ober...@uni-freiburg.de>
pdfTeX (Web2C 7.3.1) 3.14159-0.13d
\ProvidesPackage{hyperref}
[2000/05/08 v6.70f - from hyperref.sty
%% harvard.sty - harvard bibliography style Version 2.0.5
It seems the error I described only occurs when the harvard package is loaded,
here is a test file that will hopefully reproduce the error.
--------------------------------------------------------------
\documentclass[fleqn,11pt,twoside,openright,a4paper]{report}
\usepackage[abbr]{harvard}
%\citationstyle{apsr}
%\renewcommand{\harvardand}{\&}
%\newcommand{\natexlab}[1]{#1}
\usepackage{graphicx}
\usepackage[pdftex, a4paper, colorlinks, linkcolor={blue},
citecolor={blue}, urlcolor={red}]{hyperref}
\begin{document}
\addcontentsline{toc}{chapter}{Table of Contents}
\tableofcontents
\clearemptydoublepage
\addcontentsline{toc}{chapter}{List of Figures}
\listoffigures
\clearemptydoublepage
\addcontentsline{toc}{chapter}{List of Tables}
\listoftables
\clearemptydoublepage
\include{HD64760/HD64760}
\clearemptydoublepage
\addcontentsline{toc}{chapter}{Bibliography}
\bibliographystyle{harthesis}
\bibliography{thesis}
\clearemptydoublepage
\end{document}
cheers,
Stuart
> pdfTeX (Web2C 7.3.1) 3.14159-0.13d
An very old version.
> \ProvidesPackage{hyperref}
> [2000/05/08 v6.70f - from hyperref.sty
http://www.tug.org/applications/hyperref/hyperref.zip
> It seems the error I described only occurs when the harvard package is loaded,
> here is a test file that will hopefully reproduce the error.
> [...]
The file is not minimal and not complete, so I cannot help.
Yours sincerely
Heiko <ober...@uni-freiburg.de>