%% LaTeX2e file `etocsnippet-05.tex'
%% generated by the `filecontentsdef' environment
%% from source `etoc' on 2026/05/05.
%%
\begingroup
\newcommand*{\DotsAndPage}% follow it by \par
{\nobreak\leaders\hbox{\bfseries\normalsize\hbox to .75ex {\hss.\hss}}%
         \hfill\nobreak
         \makebox[\rightskip][r]{\bfseries\normalsize\etocpage}}

\etocsetlinestyle {part}
{\parindent 0pt
 \nobreak
 \large\bfseries\centering\scshape
 \etocskipfirstprefix}
{\pagebreak[3]\medskip}
{\etocifnumbered{Part \etocnumber{} -- }{}\etocname\par}
{}

\etocsetlinestyle {section}
{\begingroup
 \leftskip 0pt \rightskip .75cm \parfillskip-\rightskip
 \normalsize \normalfont \bfseries
 \nobreak\medskip
 \etocskipfirstprefix}
{\leftskip 0pt \rightskip .75cm \parfillskip-\rightskip
 \pagebreak[1]\smallskip}
{\etocnumber. \etocname\DotsAndPage\par}
{\endgroup }

\etocsetlinestyle {subsection}
{\begingroup
 \leftskip 1cm \rightskip .75cm \parfillskip 0pt plus 1fil\relax
 \footnotesize\sffamily\mdseries\itshape
 \nobreak
 %\smallskip
}
{}
{\etocname{} \textup{(\etocnumber, p.\@{} \etocpage).} }
{\par
 \endgroup
 %\smallskip
}

\etocsettagdepth {preamble}   {none}
\etocsettagdepth {overview}   {none}
\etocsettagdepth {styling}    {subsection}
\etocsettagdepth {control}    {none}
\etocsettagdepth {examples}   {none}
\etocsettagdepth {advanced}   {none}
\etocsettagdepth {etocandworld}{subsection}
\etocsettagdepth {code}       {none}

\etocsettocstyle {\centering\LARGE\textsc{\contentsname}\par\nobreak\medskip}{}
\etocsetnexttocdepth {all} %  but depth tags will control the actual contents
\etocobeydepthtags % this is default anyhow, but may have been turned off
\tableofcontents
\endgroup
