diff options
Diffstat (limited to 'Master/texmf-dist/doc/latex/etoc/etocsnippet-25.tex')
-rw-r--r-- | Master/texmf-dist/doc/latex/etoc/etocsnippet-25.tex | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/etoc/etocsnippet-25.tex b/Master/texmf-dist/doc/latex/etoc/etocsnippet-25.tex new file mode 100644 index 00000000000..1acb5467f97 --- /dev/null +++ b/Master/texmf-dist/doc/latex/etoc/etocsnippet-25.tex @@ -0,0 +1,25 @@ +%% LaTeX2e file `etocsnippet-25.tex' +%% generated by the `filecontentshere' environment +%% from source `etoc' on 2019/11/17. +%% + < 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. +\endgroup |