3

I can't get the TOC to work. I remember it worked before, but there was something I did (unfortunately I can't remember what it was), and after that the TOC just stopped working.

Here is a part from my document:

\documentclass[deutsch]{llncs}

\usepackage{graphicx}
\usepackage[labelformat=empty]{caption}
\usepackage{subcaption}
\captionsetup{compatibility=false}

\bibliographystyle{unsrt}

\pagestyle{headings}
\begin{document}

\sffamily

\begin{titlepage}
    %Some stuff here
\end{titlepage}

\thispagestyle{headings}
\tableofcontents
\newpage
%more stuff here blablabla
\section{test}
\subsection{test2}
\end{document}
3
  • @Raaja I added some more "code" to the example.
    – phrogg
    Feb 19 '19 at 9:20
  • Could you also add the error message that you encounter? Feb 19 '19 at 9:22
  • @Raaja I don't get an error. I cannot even find a warning.
    – phrogg
    Feb 19 '19 at 9:22
5

The class sets tocdepth to 0, so your example could never worked. You can change the depth:

\documentclass[deutsch]{llncs}

\usepackage{graphicx}
\usepackage[labelformat=empty]{caption}
\usepackage{subcaption}
\captionsetup{compatibility=false}

\bibliographystyle{unsrt}

\pagestyle{headings}
\setcounter{tocdepth}{5} %show more in the toc
\begin{document}

\sffamily

\begin{titlepage}
    %Some stuff here
\end{titlepage}

\thispagestyle{headings}
\tableofcontents
\newpage
%more stuff here blablabla
\section{test}
\subsection{test2}
\end{document}

enter image description here

1
  • 1
    That's it! Danke!
    – phrogg
    Feb 19 '19 at 9:25

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.