%% LaTeX2e file `etocsnippet-22-A.tex' %% generated by the `filecontentshere' environment %% from source `etoc' on 2020/05/15. %% \etocdefaultlines \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 just for the sections and subsections in this part. 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:globalcmds} \end{figure} \endgroup