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

hyperref links incorrect

34 views
Skip to first unread message

Kenth Eriksson

unread,
Nov 5, 2001, 4:41:54 AM11/5/01
to
I have troubles getting hyperref to work correctly. Clicking a hyperlink
created by the hyperref package points one to the wrong page. Problem
seems to be in conjunction with subfigure.

I'm using hyperref with the options plainpages=false and
hypertexnames=true. The incorrect hyperlink affects only links pointing
to pages containing a subfigure environment. The links are from an index
page (created with makeindex). All other links are correct.

Is there a bug in hyperref, or have I missed something here?

Regards
Kenth Eriksson

Heiko Oberdiek

unread,
Nov 5, 2001, 6:45:25 AM11/5/01
to
On Mon, 05 Nov 2001 10:41:54 +0100, Kenth Eriksson
<e8k...@etek.chalmers.se> wrote:

> I have troubles getting hyperref to work correctly. Clicking a hyperlink
> created by the hyperref package points one to the wrong page. Problem
> seems to be in conjunction with subfigure.

It is a limitation of the subfigure support of hyperref:
If hyperref subfigure detects, it sets hypertexnames=false.
But then the index links will not work for example.

You can load subfigure after hyperref or overwrite
the behaviour of hyperref with
\hypersetup{hypertexnames, plainpages=false}
But I then expect problems with subfigure links.

Yours sincererly
Heiko <ober...@uni-freiburg.de>

Kenth Eriksson

unread,
Nov 5, 2001, 7:18:12 AM11/5/01
to
Ok, thank you so much. Overriding with option hypertexnames works fine
for the whole document, though I haven't tested referencing a subfigure
yet. Maybe I'll consider using minipage instead of subfigure.

BTW why does the title page and the following page both get number "1"?
This causes problems when using hyperref, since the two anchor points
will confuse the hyperlink. Running latex gives (on my machine) no
warning, but pdflatex does! What's the correct way of resolving this? I
have tried both setcounter and addtocounter, and both resolves the
problem. But none of them is really slender... are they?

Heiko Oberdiek

unread,
Nov 5, 2001, 1:32:07 PM11/5/01
to
On Mon, 05 Nov 2001 13:18:12 +0100, Kenth Eriksson
<e8k...@etek.chalmers.se> wrote:

Please no full quote at the end.

> BTW why does the title page and the following page both get number "1"?
> This causes problems when using hyperref, since the two anchor points
> will confuse the hyperlink. Running latex gives (on my machine) no
> warning, but pdflatex does! What's the correct way of resolving this?

For example:

\begin{document}
\begingroup
\renewcommand*{\thepage}{Title}%
\maketitle
\newpage
\endgroup
...

With plainpages=true, the arabic value of the page counter
should be different. With plainpages=false the string that
\thepage produces should be unique for every page.

Recommended options:
hypertexnames,% because of subfigure
plainpages=false,
pdfpagelabels,% this informs AR 4 about \thepage.

Yours sincerely
Heiko <ober...@uni-freiburg.de>

0 new messages