How can I make a TOC and section mini TOCs such that
TOC at the beginning of the whole document shows sections and subsections,
mini TOCs at the beginning of each subsection show only the very section that I'm showing now and subsections and subsubsections that belong to the subsection?
I started from the template included in TexWorks for Mac.
What I tried is minitoc
package and \secttoc
command.
I got correct the whole TOC.
But miniTOCs which should contain only that section and sub- and sub subsections is just the same as the entire TOC.
I tried various combinations of the two numbers in the below \setcounter
command,
but the result only depends on 'tocdepth'.
The part of the code I used and exemplary result I want to get is as follows.
\documentclass{beamer}
\mode<presentation>
\setcounter{secttocdepth}{2}
\AtBeginSubsection[]
{
\begin{frame}<beamer>{Outline}
\secttoc
\tableofcontents
\end{frame}
}
\setcounter{tocdepth}{2}
\dosecttoc
\tableofcontents
TOC I want to get is
Section 1
Subsection 1.1
Subsection 1.2
Section 2
Subsection 2.1
Subsection 2.2
sectTOCs I want to have at the beginning of Section 2.1 and Section 2.2.
Section 2
Subsection 2.1
Subsubsection 2.1.1
Subsubsection 2.1.2
Subsection 2.2
Subsubsection 2.2.1
Subsubsection 2.2.2
Best Answer
You can use the following settings:
The general ToC:
The partial ToC for the first section:
The partial ToC for the second section: