I use the LaTeX package
titletoc to produce table of contents in some chapters or sections for Org-Mode LaTeX / PDF export with
#+TOC: headlines 1 local
But in the PDF file there is for example the following text before the table of content:
section.1 section.2 section.3 subsection.3.1 subsubsection.3.1.1 subsubsection.3.1.2 subsubsection.3.1.3 subsubsection.3.1.4 subsubsection.3.1.5 subsection.3.2
I have no idea about that. Perhaps somebody can give me a hint.