3

I'm using both hyperref and titletoc for writing my thesis, which is known to cause other kind of incompatibilities which I don't observe in my case.

Using titletoc I'm adding a table of content at the beginning of each chapter but an unwanted string is printed before each of these ToC:

Doc-Startchapter*.7chapter*.8chapter.1section.1.1section*.9section*.9figure.captio

Here you are MWE where an unwanted section.1 appears (I added one subsection for making the actual ToC appear, but it is actually not needed for reproducing the problem):

\documentclass{article}
\usepackage{hyperref}
\usepackage{titletoc}
\begin{document}

\section{Bla}

\startcontents
\printcontents{}{2}{}

\subsection{Blabla: bla bla}

\end{document}

Note the section.1 string in the picture:

enter image description here

1 Answer 1

5

Load hyperref after titletoc:

\documentclass{article}
\usepackage{titletoc}
\usepackage{hyperref}

\begin{document}

\section{Bla}

\startcontents
\printcontents{}{2}{}

\subsection{Blabla: bla bla}

\end{document}
0

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .