Bugzilla – Bug 116102
pdflatex acrobat bookmarks not created correctly
Last modified: 2005-09-09 17:44:36 UTC
Hi, when compiling the attached .tex file with pdflatex (twice for the toc to be generated) the resulting acrobate bookmarks (visible on the left with acrobat/adobe reader or xpdf) are in wrong order, only the first chapter, under that its first section, subsection etc. and under that the next chapters instead of all chapters on the same level. I have tried this on other distros pdflatex versions, and there it works fine.
Created attachment 49372 [details] tex file that shows the behavioru this is the file that does not compile to a correct pdf
RTFM Btw: it works as you can see with /usr/share/texmf/doc/tetex/TETEXDOC.pdf other distros are only relevant if and only if those include teTeX 3.0.
wow what a nice answer. It does not work for me when I use the packages mentioned in the file attached. It works in lots of other cases, but not in this combination and my file. I assume you have compiled my file and it worked for you, maybe you can attach it too here ? I will come back in 10-12 years when Im perfect and know everything about tex and latex, as of course everyone who uses latex should do that, and will of course see all the big mistakes I have in my example file... well maybe we can shorten this and someone else can enligthen me on what big and so obvious mistakes I made.
The interface for pdflatex and hyperref has changed. Please read the docs. I can not switch back to the old teTeX package. You may also ask the teTeX mailing list <tetex@dbs.uni-hannover.de> I'll attach the TETEXDOC.tex from the source tar ball. You may run pdflatex three times on this file to see how it works.
Created attachment 49441 [details] A working hyperref example Please try this out to see, that pdflatex works together with hyperref package.
this file works fine, but it also does not include the titlesec and varioref packages. I have added as line 25 and 26 these packages, and will attach the .tex file. When compiling it does not work, I will also attach the .pdf file for you to see exactly what I mean, on request I can also make a screenshot.
Created attachment 49450 [details] the working example with the two packages added when I compile it, I get as a result the pdf in the next attachment
Created attachment 49451 [details] this is the result here when texing the above modified example if you dont see what I mean (well, the bookmarks is even looking borked on windows) I can also attach a screenshot if you want...
Please read /usr/share/texmf/doc/latex/hyperref/README at line 261 ff: titleref: \usepackage{nameref} \usepackage{titleref}% without usetoc \usepackage{hyperref} titlesec: "nameref" supports titlesec, but hyperref does not (unsolved is the anchor setting, missing with unnumbered section, perhaps problems with page breaks with numbered ones). varioref: \usepackage{nameref} \usepackage{varioref} \usepackage{hyperref} vietnam: % pd1enc.def should be loaded before package dblaccnt: \usepackage[PD1,OT1]{fontenc} \usepackage{vietnam} \usepackage{hyperref} ... and I'll not fix this without a official patch from the hyperref author. Please move both style before including hyperref.