Debian Codegraph @

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

raw
1 %% LaTeX2e file `etocsnippet-02.tex'
2 %% generated by the `filecontentshere' environment
3 %% from source `etoc' on 2026/05/05.
4 %%
5 \etocruledstyle[2]{\normalfont\normalsize\rmfamily\itshape
6 \fbox{\parbox{.6\linewidth}{
7 \leftskip 0pt plus .5fil
8 \rightskip 0pt plus -.5fil
9 \parfillskip 0pt plus 1fil This is the global table of
10 contents on two columns, using \etoc default line styles, but with
11 sections as chapters, and subsections as sections.
12 }}}
13 \etocfallbacklines
14 \etocsetnexttocdepth{1}
15 \begingroup
16 \etocsetlevel{section}{0}
17 \etocsetlevel{subsection}{1}
18 \renewcommand*{\etocfontone}{\normalfont \normalsize}
19 \renewcommand*{\etoctoclineleaders}
20 {\hbox{\normalfont\normalsize\hbox to 1ex {\hss.\hss}}}
21 \sloppy
22 \tableofcontents
23 \endgroup