\chapter{Chapter name}
\label{s:1}
Some introductory text.

\section{section name}
\label{s:2}
Some section text.

\subsection{subsection name}
\label{s:3}
Some subsection text.

\setcounter{tocdepth}{3}
\tableofcontents
