对于回忆录,目录中似乎只显示章节/节,但我需要在回忆录文档的目录中显示子节。我该怎么做?
\documentclass[12pt,oneside]{memoir}
\title{Document}
\author{prosseek}
% }
\begin{document}
\frontmatter
\maketitle
\tableofcontents
\mainmatter
\chapter{The Domain Problem and Stakeholders}
\section{First}
abcdef.
\subsection{Sub}
def
\end{document}
答案1
\documentclass[12pt,oneside]{memoir}
\title{Document}
\author{prosseek}
% }
\setsecnumdepth{subsection} %% added
\settocdepth{subsection} %% added
\begin{document}
\frontmatter
\maketitle
\tableofcontents
\mainmatter
\chapter{The Domain Problem and Stakeholders}
\section{First}
abcdef.
\subsection{Sub}
def
\end{document}