| 1 |
%% LaTeX2e file `etocsnippet-10.tex' |
| 2 |
%% generated by the `filecontentshere' environment |
| 3 |
%% from source `etoc' on 2026/05/05. |
| 4 |
%% |
| 5 |
\etocfallbacklines |
| 6 |
\begingroup |
| 7 |
\renewcommand{\etoccolumnsep}{2em} |
| 8 |
\renewcommand{\etocinnerleftsep}{1.5em} |
| 9 |
\renewcommand{\etocinnerrightsep}{1.5em} |
| 10 |
% specify a background color for the toc contents |
| 11 |
\renewcommand{\etocbkgcolorcmd}{\color{yellow!10}} |
| 12 |
% set up the top and bottom rules |
| 13 |
\renewcommand{\etoctoprule}{\hrule height 1pt} |
| 14 |
\renewcommand{\etoctoprulecolorcmd}{\color{red!25}} |
| 15 |
\renewcommand{\etocbottomrule}{\hrule height 1pt} |
| 16 |
\renewcommand{\etocbottomrulecolorcmd}{\color{red!25}} |
| 17 |
% set up the left and right rules |
| 18 |
\renewcommand{\etocleftrule}{\vrule width 5pt} |
| 19 |
\renewcommand{\etocrightrule}{\vrule width 5pt} |
| 20 |
\renewcommand{\etocleftrulecolorcmd}{\color{red!25}} |
| 21 |
\renewcommand{\etocrightrulecolorcmd}{\color{red!25}} |
| 22 |
% use \fcolorbox to set up a colored frame for the title |
| 23 |
\fboxrule1pt |
| 24 |
\renewcommand{\etocbelowtocskip}{0pt\relax} |
| 25 |
\etocframedstyle {\normalsize\rmfamily\itshape |
| 26 |
\fcolorbox{red}{white}{\parbox{.8\linewidth}{\centering |
| 27 |
This is a table of contents \`a la \etoc, but for |
| 28 |
the subsections and subsubsections of \autoref{sec:tocstyle}. |
| 29 |
As it is put in a frame, it has to be small enough to fit on |
| 30 |
one page. It has the label |toc:b|.}}} |
| 31 |
\begin{figure}[ht!] |
| 32 |
\centering |
| 33 |
\tableofcontents \label{toc:b} \ref{toc:tocstyle} |
| 34 |
\end{figure} |
| 35 |
\endgroup |