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