| 1 |
%% LaTeX2e file `etocsnippet-13.tex' |
| 2 |
%% generated by the `filecontentshere' environment |
| 3 |
%% from source `etoc' on 2026/05/05. |
| 4 |
%% |
| 5 |
\begingroup |
| 6 |
\definecolor{subsecnum}{RGB}{13,151,225} |
| 7 |
\definecolor{secbackground}{RGB}{0,177,235} |
| 8 |
\definecolor{tocbackground}{RGB}{212,237,252} |
| 9 |
|
| 10 |
\renewcommand{\etocbkgcolorcmd}{\color{tocbackground}} |
| 11 |
\renewcommand{\etocleftrulecolorcmd}{\color{tocbackground}} |
| 12 |
\renewcommand{\etocrightrulecolorcmd}{\color{tocbackground}} |
| 13 |
\renewcommand{\etocbottomrulecolorcmd}{\color{tocbackground}} |
| 14 |
\renewcommand{\etoctoprulecolorcmd}{\color{tocbackground}} |
| 15 |
|
| 16 |
\renewcommand{\etocleftrule}{\vrule width 1cm} |
| 17 |
\renewcommand{\etocrightrule}{\vrule width .5cm} |
| 18 |
\renewcommand{\etocbottomrule}{\hrule height 12pt} |
| 19 |
\renewcommand{\etoctoprule}{\hrule height 12pt} |
| 20 |
|
| 21 |
\renewcommand{\etocinnertopsep}{0pt} |
| 22 |
\renewcommand{\etocinnerbottomsep}{0pt} |
| 23 |
\renewcommand{\etocinnerleftsep}{0pt} |
| 24 |
\renewcommand{\etocinnerrightsep}{0pt} |
| 25 |
|
| 26 |
\newcommand\shiftedwhiterule[2]{% |
| 27 |
\hbox to \linewidth{\color{white}% |
| 28 |
\hskip#1\leaders\vrule height1pt\hfil}\nointerlineskip\vskip#2} |
| 29 |
|
| 30 |
\etocsetlinestyle{subsubsection}{\etocskipfirstprefix} |
| 31 |
{\shiftedwhiterule{\leftskip}{6pt}} |
| 32 |
{\sffamily\footnotesize |
| 33 |
\leftskip2.5cm\hangindent1cm\rightskip1cm\noindent |
| 34 |
\hbox to 1cm{\color{subsecnum}\etocnumber\hss}% |
| 35 |
\color{black}\etocname\leaders\hbox to .2cm{\hss.}\hfill |
| 36 |
\rlap{\hbox to 1cm{\hss\etocpage\hskip.2cm}}\par |
| 37 |
\nointerlineskip\vskip3pt} |
| 38 |
{} |
| 39 |
|
| 40 |
\etocsetlinestyle{subsection}{\etocskipfirstprefix} |
| 41 |
{\shiftedwhiterule{1.5cm}{6pt}} |
| 42 |
{\sffamily\small |
| 43 |
\leftskip1.5cm\hangindent1cm\rightskip1cm\noindent |
| 44 |
\hbox to 1cm{\color{subsecnum}\etocnumber\hss}% |
| 45 |
\color{black}\etocname\leaders\hbox to .2cm{\hss.}\hfill |
| 46 |
\rlap{\hbox to 1cm{\hss\etocpage\hskip.2cm}}\par |
| 47 |
\nointerlineskip\vskip6pt} |
| 48 |
{} |
| 49 |
|
| 50 |
\newcommand{\coloredstuff}[2]{% |
| 51 |
\leftskip0pt\rightskip0pt\parskip0pt |
| 52 |
\fboxsep0pt % \colorbox uses \fboxsep also when no frame! |
| 53 |
\noindent\colorbox{secbackground} |
| 54 |
{\parbox{\linewidth}{% |
| 55 |
\vskip5pt |
| 56 |
{\noindent\color{#1}#2\par}\nointerlineskip |
| 57 |
\vskip3pt}}% |
| 58 |
\par\nointerlineskip} |
| 59 |
|
| 60 |
\etocsetlinestyle{section} |
| 61 |
{\coloredstuff{white} |
| 62 |
{\hfil \hyperref[toc:b]{\bfseries\large I am a twin of |
| 63 |
that other TOC (click me!)}\hfil}} |
| 64 |
{\vskip3pt\sffamily\small} |
| 65 |
{\coloredstuff{white} |
| 66 |
{\leftskip1.5cm\rightskip.5cm\parfillskip-\rightskip |
| 67 |
\makebox[0pt][r]{\makebox[.5cm][r]{\etocnumber\hspace{.2cm}}}% |
| 68 |
\etocname\hfill\makebox[.5cm][r]{\etocpage\hspace{.2cm}}}% |
| 69 |
\vskip6pt } |
| 70 |
{} |
| 71 |
|
| 72 |
\etocframedstyle[1]{} |
| 73 |
\tableofcontents \label{toc:clone} \ref{toc:tocstyle} |
| 74 |
\endgroup |