3

Is there a handy way to display only the subsections corresponding to the current section in scrartcl like \tableofcontent[currentsection] does in beamer?

  • Check out the \newlistof comand fromt the tocloft package. – John Kormylo May 23 '17 at 12:12
4

You could use package etoc:

\documentclass{scrartcl}
\usepackage{etoc}
\usepackage{lipsum}

\begin{document}
\tableofcontents

\etocsettocstyle{\subsection*{\contentsname}}{}
\etocsettocdepth{subsection}

\clearpage
\section{Sec1}
\localtableofcontents
\subsection{SubSec1}
\subsubsection{SubSubSec}
\lipsum[1]
\subsection{SubSec2}
\lipsum[2]

\section{Sec1}
\localtableofcontents
\subsection{SubSec1}
\subsubsection{SubSubSec}
\lipsum[3]
\subsection{SubSec2}
\lipsum[4]
\end{document}

enter image description here

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