| 1 |
%% LaTeX2e file `etocsnippet-05.tex' |
| 2 |
%% generated by the `filecontentsdef' environment |
| 3 |
%% from source `etoc' on 2026/05/05. |
| 4 |
%% |
| 5 |
\begingroup |
| 6 |
\newcommand*{\DotsAndPage}% follow it by \par |
| 7 |
{\nobreak\leaders\hbox{\bfseries\normalsize\hbox to .75ex {\hss.\hss}}% |
| 8 |
\hfill\nobreak |
| 9 |
\makebox[\rightskip][r]{\bfseries\normalsize\etocpage}} |
| 10 |
|
| 11 |
\etocsetlinestyle {part} |
| 12 |
{\parindent 0pt |
| 13 |
\nobreak |
| 14 |
\large\bfseries\centering\scshape |
| 15 |
\etocskipfirstprefix} |
| 16 |
{\pagebreak[3]\medskip} |
| 17 |
{\etocifnumbered{Part \etocnumber{} -- }{}\etocname\par} |
| 18 |
{} |
| 19 |
|
| 20 |
\etocsetlinestyle {section} |
| 21 |
{\begingroup |
| 22 |
\leftskip 0pt \rightskip .75cm \parfillskip-\rightskip |
| 23 |
\normalsize \normalfont \bfseries |
| 24 |
\nobreak\medskip |
| 25 |
\etocskipfirstprefix} |
| 26 |
{\leftskip 0pt \rightskip .75cm \parfillskip-\rightskip |
| 27 |
\pagebreak[1]\smallskip} |
| 28 |
{\etocnumber. \etocname\DotsAndPage\par} |
| 29 |
{\endgroup } |
| 30 |
|
| 31 |
\etocsetlinestyle {subsection} |
| 32 |
{\begingroup |
| 33 |
\leftskip 1cm \rightskip .75cm \parfillskip 0pt plus 1fil\relax |
| 34 |
\footnotesize\sffamily\mdseries\itshape |
| 35 |
\nobreak |
| 36 |
%\smallskip |
| 37 |
} |
| 38 |
{} |
| 39 |
{\etocname{} \textup{(\etocnumber, p.\@{} \etocpage).} } |
| 40 |
{\par |
| 41 |
\endgroup |
| 42 |
%\smallskip |
| 43 |
} |
| 44 |
|
| 45 |
\etocsettagdepth {preamble} {none} |
| 46 |
\etocsettagdepth {overview} {none} |
| 47 |
\etocsettagdepth {styling} {subsection} |
| 48 |
\etocsettagdepth {control} {none} |
| 49 |
\etocsettagdepth {examples} {none} |
| 50 |
\etocsettagdepth {advanced} {none} |
| 51 |
\etocsettagdepth {etocandworld}{subsection} |
| 52 |
\etocsettagdepth {code} {none} |
| 53 |
|
| 54 |
\etocsettocstyle {\centering\LARGE\textsc{\contentsname}\par\nobreak\medskip}{} |
| 55 |
\etocsetnexttocdepth {all} % but depth tags will control the actual contents |
| 56 |
\etocobeydepthtags % this is default anyhow, but may have been turned off |
| 57 |
\tableofcontents |
| 58 |
\endgroup |