目次に段落を含めようとしています。まだ解決策が見つからない理由は、ドキュメントクラスにあると思います。
\documentclass[ a4paper, fontsize=12pt, openright, twoside, listof=totocnumbered, bibliography=totoc, pointlessnumbers ]{scrbook}
私は main.tex ファイルを 1 つ使用します。このファイルでは、\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}