Re: texi2pdf: clicking bookmarks lands past spot wanted

[email protected] (Karl Berry)
Newsgroups gmane.comp.tex.texinfo.pretest
Message-ID <[email protected]>
Hi folks.  An old Debian bug report found its way to me a few days ago
(thanks, Hille):

    From: "Karl M. Hegbloom" <[email protected]>
    Subject: tetex-bin: texi2pdf: clicking bookmarks lands past spot wanted
    Date: Tue, 11 May 1999 11:56:46 -0700

    I used `texi2pdf' to generate a pdf of a texinfo document, and found
    that clicking on the bookmark (in the window at the left) lands me in
    the document a little bit past the top of the section I clicked.
    There must be a miscalculation of some kind where it generates the
    target locations for those bookmarks.

It turned out not to be a miscalculation exactly. The pdf bookmarks were
simply using the page number as the destination, instead of making any
attempt to use the actual place on the page where the node existed.  For
the same reasons, cross-reference links in pdf output did not always go
to the correct place.

To fix this, I ended up rewriting most of the section-handling and
toc-handling part of texinfo.tex, especially for pdf output.  I don't
feel too bad about it, since the result has a lot less duplication
(although much more remains to be done).

Although I've tried the new code on a number of test and real documents,
the changes are so large I thought I'd send it to everyone I thought
might be interested before releasing it.  So it's attached.  And
besides, I can't release it right now anyway, since ftp.gnu.org is still
closed -- make a virtue of necessity. :)

Please let me know if problems or suggestions ...

Thanks,
karl

_______________________________________________
texinfo-pretest mailing list
[email protected]
http://ff0.org/mailman/listinfo/texinfo-pretest
texinfo.tex (application/octet-stream, 214.9 KB) - not displayed
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.