[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#580912: hyperref: PDF output links to wrong page with doxygen-generated LaTeX



Hello,

Hilmar Preusse wrote:

> However after creating the minimal example below both pdflatex, and
> latex+dvipdf produce the wrong links.  Hence I think the bug is in
> hyperref package.

http://puszcza.gnu.org.ua/bugs/?137

No, it isn't a hyperref bug:

>From the bug report:
| pdflatex creates a PDF file with links to the wrong page.
| If instead I use latex+dvipdf I get correct links (on my
| original file).
|
| However after creating the minimal example below both
| pdflatex, and latex+dvipdf
| produce the wrong links. Hence I think the bug is in
| hyperref package.

| So 'ref1' and 'ref2' both point to the same page. However
| 'ref1' (pe_rawaddr) should point to the next page!

Because the "minimal" file contains lots of unreadable
garbage, I restrict myself to checking the first link
\hyperlink{ref1}{...} and the anchor setting
\hypertarget{ref1}{...}.

The anchor setting is done at the end of the paragraph
with "on success " (including the space) as last words.
Then the whatsit with the anchor setting follows.
The last line of the paragraph is at the bottom of page 2.
Therefore it's correct that the link point to that location
(both pdflatex and latex/dvips/ps2pdf).

BTW. \label{ref1} refers to the previous \paragraph.
It can be referenced by \hyperref[ref1]{...}
(The internal anchor name is different from "ref1".)

Yours sincerely
  Heiko



Reply to: