Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

more problems with pdf bookmarks #2

Closed
ascherer opened this issue May 18, 2016 · 1 comment
Closed

more problems with pdf bookmarks #2

ascherer opened this issue May 18, 2016 · 1 comment

Comments

@ascherer
Copy link
Owner

The patches in the attachment show the effect of using colored boxes instead of destination marks.

Take latest cwebmac.tex (ver. 3.69) and test.w from the attachment.

First apply patch cwebmac-dvi.patch:

<get clean cwebmac.tex>
patch -p0 < cwebmac-dvi.patch
cweave test.w
tex '\let\pdf+ \input test.tex'
dvipdfm test.dvi
mv test.pdf test1.pdf

Then apply patch cwebmac-pdf.patch:

<get clean cwebmac.tex>
patch -p0 < cwebmac-pdf.patch
cweave test.w
pdftex test.tex
mv test.pdf test2.pdf

Now compare test1.pdf and test2.pdf

I see two problems:

  1. for pdf mode there are only two occurrences of \pdfdest (red and green), while for dvi mode there are three occurrences of setting destination marks (red, green and blue). I would like to point out
    that in pdf mode there is \makebookmarks macros, which does the same job more clearly, than it is done in dvi mode.
  2. in dvi mode link to first section points before date, not before the section itself, as in pdf mode
@ascherer
Copy link
Owner Author

Deeper analysis is done on branch https://github.com/ascherer/cweb/tree/pdf-bookmarks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant