目录中显示的段落(documentclass scrbook)

目录中显示的段落(documentclass scrbook)

我正在尝试在目录中包含段落。我认为我尚未找到任何解决方案的原因是我的文档类:

\documentclass[ a4paper, fontsize=12pt, openright, twoside, listof=totocnumbered, bibliography=totoc, pointlessnumbers ]{scrbook}

我使用一个 main.tex 文件,它使用 \include 来包含其他 tex 文件,其中包含实际的章节和段落。

我如何使段落显示在目录中(对我来说,有一个子子子节也行)?

答案1

这对我有用:

\documentclass[ a4paper, fontsize=12pt, openright, twoside, listof=totocnumbered, bibliography=totoc, pointlessnumbers ]{scrbook}
\begin{document}
% 1 = chapter
% 2 = section
% and so on
\setcounter{tocdepth}{5}
\tableofcontents
\chapter{chapter1}
\section{section1}
\subsection{subsection1}
\subsubsection{subsubsection1}
\paragraph{paragraph1}
\end{document}

相关内容