Bug 116102

Summary: pdflatex acrobat bookmarks not created correctly
Product: [openSUSE] SUSE LINUX 10.0 Reporter: Dennis Lubert <plasmahh>
Component: OtherAssignee: Dr. Werner Fink <werner>
Status: RESOLVED WORKSFORME QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None    
Version: RC 1   
Target Milestone: ---   
Hardware: i686   
OS: All   
Whiteboard:
Found By: Other Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: tex file that shows the behavioru
A working hyperref example
the working example with the two packages added
this is the result here when texing the above modified example

Description Dennis Lubert 2005-09-09 12:25:44 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.
Comment 1 Dennis Lubert 2005-09-09 12:27:11 UTC
Created attachment 49372 [details]
tex file that shows the behavioru

this is the file that does not compile to a correct pdf
Comment 2 Dr. Werner Fink 2005-09-09 13:18:11 UTC
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.
Comment 3 Dennis Lubert 2005-09-09 15:53:21 UTC
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.
Comment 4 Dr. Werner Fink 2005-09-09 16:39:19 UTC
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.
Comment 5 Dr. Werner Fink 2005-09-09 16:41:24 UTC
Created attachment 49441 [details]
A working hyperref example

Please try this out to see, that pdflatex
works together with hyperref package.
Comment 6 Dennis Lubert 2005-09-09 17:20:30 UTC
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.
Comment 7 Dennis Lubert 2005-09-09 17:22:06 UTC
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
Comment 8 Dennis Lubert 2005-09-09 17:24:02 UTC
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...
Comment 9 Dr. Werner Fink 2005-09-09 17:44:36 UTC
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.