[pdftex] hyperref and customized section formatting

Heiko Oberdiek oberdiek at uni-freiburg.de
Tue Feb 18 12:43:51 CET 2003


On Tue, Feb 18, 2003 at 05:16:20AM -0500, Martin Jansche wrote:

> I've run into a problem involving pdflatex, hyperref, and my need for
> custom formatting of section headings: if I \renewcommand{\chapter} to
> implement strange formatting requirements, I start getting warning
> messages ("Package hyperref Warning: No destination for bookmark of
> \addcontentsline...") corresponding to code fragments like
> 
>   \chapter*{Unnumbered chapter}
>   \addcontentsline{toc}{chapter}{Unnumbered chapter}

\addcontentsline uses the last set anchor. But if you
redefined \chapter you have probably deleted that anchor
setting stuff. For setting an anchor you can try adding
\phantomsection at an appropriate place in your redefinition.

Yours sincerely
  Heiko <oberdiek at uni-freiburg.de>
-- 


More information about the pdftex mailing list