diff options
Diffstat (limited to 'Master/texmf-dist/doc/latex/etoc/etocsnippet-06.tex')
-rw-r--r-- | Master/texmf-dist/doc/latex/etoc/etocsnippet-06.tex | 64 |
1 files changed, 30 insertions, 34 deletions
diff --git a/Master/texmf-dist/doc/latex/etoc/etocsnippet-06.tex b/Master/texmf-dist/doc/latex/etoc/etocsnippet-06.tex index d6726052ce7..4b0e28273ca 100644 --- a/Master/texmf-dist/doc/latex/etoc/etocsnippet-06.tex +++ b/Master/texmf-dist/doc/latex/etoc/etocsnippet-06.tex @@ -1,36 +1,32 @@ %% LaTeX2e file `etocsnippet-06.tex' -%% generated by the `filecontentshere' environment -%% from source `etoc' on 2023/01/21. +%% generated by the `filecontentsdef' environment +%% from source `etoc' on 2023/03/02. %% -\makeatletter -\newcommand*{\MyQuasiStandardTOC}[1]{% - \begingroup - \etocsetstyle{section} - {} - {\ifnum\etocthenumber=4 - \etocsetstyle{subsection} - {\par\nopagebreak\begingroup - \leftskip1.5em \rightskip\@tocrmarg - \parfillskip \@flushglue - \parindent 0pt - \normalfont\normalsize\rmfamily\itshape - \etocskipfirstprefix} - {\allowbreak\,--\,} - {\etocname\ \textup{(\etocnumber)}} - {.\par\endgroup}% - \else - \etocsetstyle{subsection} - {}% - {}% - {\l@subsection{\numberline{\etocnumber}\etocname}{\etocpage}}% - {}% - \fi - }% prefix for section sets the style dynamically for subsections! - {\l@section{\numberline{{\color{cyan}\etocthenumber}}\etocname}{\etocpage}}% - {}% - \etocstandarddisplaystyle - \etocsetnexttocdepth {2}% - \tableofcontents #1 - \endgroup -} -\makeatother +\begingroup % we start a group to keep the style changes local +\newlength{\tocleftmargin} \setlength{\tocleftmargin}{4cm} +\newlength{\tocrightmargin} \setlength{\tocrightmargin}{1cm} + +\etocsetstyle{section} % will pretend to be a Chapter +{\addvspace{1ex}\parfillskip0pt + \leftskip\tocleftmargin % (already done in title) + \rightskip\the\tocrightmargin plus 1fil + \parindent0pt\color{cyan}} % (already done) +{\bfseries\LARGE\upshape\addvspace{1ex}\leavevmode} +{\llap{Chapter\hspace{.5em}{\etocnumber}\hspace{.75cm}}\etocname + \nobreak\hfill\kern1em\makebox[-\tocrightmargin][l]{\makebox[0pt]{\etocpage}}\par} +{} + +\etocsetstyle{subsection} % will pretend to be a Section +{} +{\mdseries\large\addvspace{.5ex}\leavevmode} +{\llap{\etocnumber\hspace{.75cm}}\textit{\etocname}% + \hfill\makebox[-\tocrightmargin][l]{\makebox[0pt]{\etocpage}}\par} +{} + +\def\tmptitle{My Beautiful Thesis} +\etocsettocstyle{\color{cyan}\parindent0pt \leftskip\tocleftmargin + \leavevmode\leaders\hrule height 1pt\hfill\ + \huge\textit{\tmptitle}\par}{\bigskip} + +\tableofcontents \ref{toc:overview} +\endgroup |