我無法讓 TOC 工作。我記得它以前有效,但我做了一些事情(不幸的是我不記得那是什麼),之後 TOC 就停止工作了。
這是我的文件的一部分:
\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}
答案1
該類別將 tocdepth 設為 0,因此您的範例永遠無法運行。您可以更改深度:
\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}