I am using the titlesec
package to change the section font to sans-serif. Unfortunately, this breaks the links to "unnumbered" sections both in the TOC and in the bookmarks sidebar of PDF readers. I am using the tocbibind
package and the heading=bibintoc
setting of biblatex
to add both the bibliography and the list of figures to the TOC.
In the following example, only the link to "Section" works. Clicking on "List of Figures" jumps to the TOC instead, clicking on "References" jumps to "Section".
foo.tex
\documentclass{article}
\usepackage[sf,bf]{titlesec}
\usepackage[nottoc]{tocbibind}
\usepackage[backend=biber]{biblatex}
\usepackage{hyperref}
\addbibresource{foo.bib}
\begin{document}
\tableofcontents
\clearpage
\listoffigures
\clearpage
\section{Section}
\clearpage
\nocite{foo}
\printbibliography[heading=bibintoc]
\end{document}
foo.bib (only needed because biblatex
otherwise complains about an empty bibliography)
@book{foo,
author = {foo},
title = {foo}
}
Any way to fix this?
\phantomsection
in front of\listoffigures
resolve your problem? – Qrrbrbirlbel Sep 28 '12 at 14:15