Debian Codegraph @

texmf-dist/doc/latex/etoc/etocsnippet-15.tex

raw
1 %% LaTeX2e file `etocsnippet-15.tex'
2 %% generated by the `filecontentshere' environment
3 %% from source `etoc' on 2026/05/05.
4 %%
5 \etocsetnexttocdepth{2} % sections are at level 1 and will show up
6 \begingroup
7 \etocsetlevel{exercise}{2} % but:
8 \etocsetlevel{chapter}{3} % no chapters
9 \etocsetlevel{subsection}{3} % no subsections
10 \etocsetlevel{part}{3} % no parts
11 \etocsetlinestyle{exercise}{}{} % \etocname = exercise number
12 {\noindent\etocname\strut\leaders\etoctoclineleaders\hfill\etocpage\par}
13 {\pagebreak[2]\vskip\baselineskip}
14 \etocsetlinestyle{section}{}{}
15 {\noindent\strut{\bfseries\large\etocnumber\hskip.5em\etocname}\par
16 \nopagebreak[3]}{}
17 \etocruledstyle[4]{\Large\bfseries List of the exercises}
18 \setlength{\columnseprule}{.4pt}
19 \tableofcontents
20 \endgroup