diff options
Diffstat (limited to 'Master/texmf-dist/doc/latex/etoc/etocsnippet-12.tex')
-rw-r--r-- | Master/texmf-dist/doc/latex/etoc/etocsnippet-12.tex | 44 |
1 files changed, 23 insertions, 21 deletions
diff --git a/Master/texmf-dist/doc/latex/etoc/etocsnippet-12.tex b/Master/texmf-dist/doc/latex/etoc/etocsnippet-12.tex index 6daaaf779b9..bb53da16dbd 100644 --- a/Master/texmf-dist/doc/latex/etoc/etocsnippet-12.tex +++ b/Master/texmf-dist/doc/latex/etoc/etocsnippet-12.tex @@ -1,25 +1,27 @@ %% LaTeX2e file `etocsnippet-12.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. %% - < in the preamble > -\newcounter{visibletoc} -\renewcommand{\etocaftertitlehook} - {\stepcounter{visibletoc}\etoctoccontentsline{visibletoc}{\thevisibletoc}} -\etocsetlevel{visibletoc}{6} -\begin{document} - < document body > -\subsection{Surprising uses of etoc} \begingroup - \etocinline - \etocsetlevel{part}{1} - % \etocsetlevel{chapter}{1} % (no chapters in scrartcl class) - \etocsetlevel{visibletoc}{0} - \etocsetstyle{visibletoc} - {\etocskipfirstprefix}{, }{{\color{niceone}\etocname}}{} - \etocsettocstyle{}{} % don't set any title, rules or frame or multicol! - \etocsetnexttocdepth{visibletoc} % display only the `visibletoc' entries from .toc - -Here is the numbered and linked list of all tables of contents which are -displayed within this document: \tableofcontents. +\newsavebox{\forsubsections} +\etocsetstyle{part}{\upshape. \etocskipfirstprefix} + {. \upshape} + {\bfseries\etocname:~~} + {} +\etocsetstyle{section}{\itshape\etocskipfirstprefix} + {, } + {\mdseries\etocname} + {} +\etocsetstyle{subsection} + {\begin{lrbox}{\forsubsections}\footnotesize\upshape\etocskipfirstprefix} + {; } + {\etocname} + {.\end{lrbox}\footnote{\unhbox\forsubsections}} +\etocsetstyle{subsubsection} + { (\itshape\etocskipfirstprefix} + {, } + {\etocname} + {\/\upshape)} +\etocsettocstyle{Here is the inline table of contents. }{.\par} +\tableofcontents \label{toc:crazyinline} \endgroup |