Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

With memoir, it seems like that only chapter/section is shown in ToC, but I need to show subsection in ToC with memoir document. How can I do that?

enter image description here

\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}
share|improve this question
add comment

1 Answer

up vote 2 down vote accepted
\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}

enter image description here

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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