Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

list of tables/figures and hyperref

708 views
Skip to first unread message

Stuart Colley

unread,
Jun 22, 2001, 8:24:43 AM6/22/01
to

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.

Any ideas how to fix this?

thanks in advance,
Stuart

Peter Wilson

unread,
Jun 22, 2001, 11:27:29 AM6/22/01
to Stuart Colley

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.

Heiko Oberdiek

unread,
Jun 22, 2001, 12:16:36 PM6/22/01
to
Stuart Colley <s...@zupcx6.star.ucl.ac.uk> wrote:

>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>

Stuart

unread,
Jun 25, 2001, 9:09:44 AM6/25/01
to
Heiko Oberdiek <ober...@ruf.uni-freiburg.de> wrote in message news:<3fp6jtgf5nt84ih94...@4ax.com>...

\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

Heiko Oberdiek

unread,
Jun 25, 2001, 9:58:40 AM6/25/01
to
Stuart (s...@star.ucl.ac.uk) wrote:

> \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>

Stuart

unread,
Jun 26, 2001, 6:06:52 AM6/26/01
to
ober...@informatik.uni-freiburg.de (Heiko Oberdiek) wrote in message news:<9h7g2g$5ks$1...@n.ruf.uni-freiburg.de>...

>
> Which versions?
> Minimal test file?
>
The versions of pdflatex/hyperref are the standard ones supplied with Redhat 7,

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}

Stuart

unread,
Jun 26, 2001, 7:01:29 AM6/26/01
to
ober...@informatik.uni-freiburg.de (Heiko Oberdiek) wrote in message news:<9h7g2g$5ks$1...@n.ruf.uni-freiburg.de>...
> Stuart (s...@star.ucl.ac.uk) wrote:
I've just had a go using the natbib package rather than the harvard
package, this seems to work fine, so I think I'll just continue using
it.

cheers,
Stuart

Heiko Oberdiek

unread,
Jun 26, 2001, 7:25:32 AM6/26/01
to
Stuart (s...@star.ucl.ac.uk) wrote:
> ober...@informatik.uni-freiburg.de (Heiko Oberdiek) wrote in message news:<9h7g2g$5ks$1...@n.ruf.uni-freiburg.de>...
> >
> > Which versions?
> > Minimal test file?
> >
> The versions of pdflatex/hyperref are the standard ones supplied with Redhat 7,

> 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>

0 new messages