2

I am using the book class for my thesis. I would like to create a short table of contents (containing only chapter titles), followed by a detailed table of contents (containing the default table of contents information, i.e., chapter, section, and subsection titles).

Here is a nice example. However, it is for the memoir class. How can I adapt the example for the book class?

Here is my MWE:

\documentclass[oneside,11pt]{book}

\begin{document}

\tableofcontents

\chapter{First ch}
\section{First sec ch 1}
\subsection{Sub A}
\subsection{Sub B}
\section{Second sec ch 1}

\chapter{Second ch}
\section{First sec ch 2}
\subsection{Sub A}
\subsection{Sub B}
\section{Second sec ch 2}

\chapter{Third ch}
\section{First sec ch 3}
\subsection{Sub A}
\subsection{Sub B}
\section{Second sec ch 3}

\end{document}

mwe

3

With the help of the etoc package, you can achieve the following:

enter image description hereenter image description here

\documentclass{book}
\usepackage{etoc}

\usepackage{blindtext}

\begin{document}
\etocsettocdepth.toc{chapter}
\tableofcontents

\etocignoretoctocdepth
\tableofcontents

\blinddocument
\blinddocument
\blinddocument

\end{document}
1
  • Congrats on passing the 40k reputation mark!!
    – Mico
    Nov 15 '20 at 21:21

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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