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

Bug#344790: hyperref: off by 1 error with pdf bookmarks and tocdepth



Micha Feigin <michf@post.tau.ac.il> wrote:

> hyperref uses tocdepth to decide the depth of the bookmarks generated
> from the document sections. The problem is that with documents that
> don't have a chapter section this causes an off by one error.
>
> Setting tocdepth to 1 to have only sections in the table of contents
> causes no bookmarks to be generated instead of generating bookmarks only
> for sections.
>
> setting tocdepth to 2 shows sections and subsections but only sections
> show in the bookmarks.

I tried to reproduce this, but failed.  Can you provide a small minimal
example that shows the problem?  For how to create a minimal example,
see the explanation in the bugreport you posted:

> If your example file isn't short or produces more than one page of
> output (except when multiple pages are needed to show the problem),
> you can probably minimize it further. Instructions on how to do that
> can be found at
>
> http://www.latex-einfuehrung.de/mini-en.html (english)
>
> or 
>
> http://www.latex-einfuehrung.de/mini.html (german)

Regards, Frank
-- 
Frank Küster
Inst. f. Biochemie der Univ. Zürich
Debian Developer




Reply to: