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

Bug#153320: tetex-extra: Package hyperref Warning: bookmark level for unknown xchapter defaults to 0.



 > I don't have an example document at hand. Have you tried to define
 > \toclevel@xchapter by saying
 > 
 > \providecommand*{\toclevel@xchapter}{0}%
 > 
 > Does that a) make the warning disappear and b) give the desired output
 > in the pdf file?

Here's what I have found necessary:

  \ifwanthyperref       % horrid incompatibility
  \usepackage{hyperref}
  % \usepackage{minitoc_href}
  \usepackage{minitoc-hyper}
  \makeatletter\def\toclevel@xchapter{0}\makeatother  % should be 
  \makeatletter\def\toclevel@xpart{-1}\makeatother  % should be 
  \else
  \usepackage{minitoc}
  \fi

This makes the warning disappear; I don't use PDF so I can't speak to
the other.

 > Anyway, I have contacted the author of hyperref.sty, in whose directory
 > minitoc-hyper.sty is distributed on CTAN, wether he feels responsible.

Thanks!

 > Have you noticed that minitoc.sty has version number v34 (in
 > tetex-2.0.2), whereas minitoc-hyper only v28href? Also, hyperref has
 > evolved a lot since then. Have you tried wether minitoc-hyper is still
 > necessary at all?

No, I haven't.




Reply to: