%% LaTeX2e file `etocsnippet-30-A.tex' %% generated by the `filecontentsdef' environment %% from source `etoc' on 2021/07/13. %% \begingroup \etocglobaldefs % necessary for \etocname etc... to survive & % observe the locations of the \\ \etocsetstyle{part} {} {\\\hline} {\strut\etocnumber &\bfseries\etocname&\etocpage } {} \etocsetstyle{section} {} {\etociffirst{\etocifnumbered{\\\hline}{\\\hline\hline}}{\\}} {\etocnumber&\etocname &\etocpage } {} \etocsetstyle{subsection} {} {\\} {&\makebox[1cm][c]{\etocnumber}% \parbox[t]{\dimexpr6cm-\tabcolsep\relax}{\sloppy\itshape\etocname\strut}% &\itshape\etocpage } {} \etocsettocstyle {\hypersetup{hidelinks}% \begin{longtable}{|>{\bfseries}c|p{7cm}|r|} \hline \multicolumn{3}{|c|}{\Large\bfseries\strut\strut TABLE OF CONTENTS}% } {\\\hline\end{longtable}} \etocsetnexttocdepth {subsection} \tableofcontents \endgroup