| 1 |
<!-- --> |
| 2 |
|
| 3 |
Source: etoc.dtx (1.2e) |
| 4 |
Author: Jean-Francois Burnol |
| 5 |
Summary: Completely customisable TOCs |
| 6 |
License: LPPL 1.3c |
| 7 |
Copyright (C) 2012-2023, 2026 Jean-Francois Burnol. |
| 8 |
<jfbu at free dot fr> |
| 9 |
Repository: https://github.com/jfbu/etoc |
| 10 |
Bug tracker: https://github.com/jfbu/etoc/issues |
| 11 |
|
| 12 |
ABSTRACT |
| 13 |
======== |
| 14 |
|
| 15 |
With `etoc` loaded, `\tableofcontents` can be used multiple times and |
| 16 |
an added command `\localtableofcontents` allows to typeset "local" |
| 17 |
tables of contents, i.e. having their scope limited to the last |
| 18 |
sectioning command encountered. |
| 19 |
|
| 20 |
No auxiliary file is used additionally to the standard `.toc` file. |
| 21 |
Release 1.2 provides **experimental** additions `\locallistoffigures` and |
| 22 |
`\locallistoftables` which also use only the `.toc` file. |
| 23 |
|
| 24 |
Such local TOCs or "Lists Of" typically need to adopt a "display |
| 25 |
style" (i.e. the way the title is rendered, whether it should add |
| 26 |
itself an entry in the `.toc` file, ...) somewhat distinct from the |
| 27 |
global TOC. The release 1.2 default adapts automatically the titles |
| 28 |
of local TOCs to their depths in the sectioning hierarchy. Should the |
| 29 |
need arise to customize such "display style", full control is allowed |
| 30 |
by package commands. |
| 31 |
|
| 32 |
Regarding how the individual "contents lines" are handled, here again |
| 33 |
complete control is given to the user to define from the ground-up how |
| 34 |
to use the *name*, *number*, and *page number* for each entry, |
| 35 |
according to their "levels" (i.e. part, chapter, section, subsection, |
| 36 |
...). As this requires some LaTeX fluency, many examples which can |
| 37 |
serve as starting points are attached to the PDF documentation as |
| 38 |
extractible files. |
| 39 |
|
| 40 |
Loading `etoc` per itself modifies nothing to "contents lines" |
| 41 |
rendering from the class default or changes from other packages. But |
| 42 |
full usage of the package allows spectacular effects such as displaying |
| 43 |
TOCs as trees or mind maps. |
| 44 |
|
| 45 |
INSTALLATION |
| 46 |
============ |
| 47 |
|
| 48 |
For manual installation do `etex etoc.dtx` to extract files then move |
| 49 |
`etoc.sty` to a place where TeX can find it. |
| 50 |
|
| 51 |
etoc.sty -> TDS:tex/latex/etoc/etoc.sty |
| 52 |
etoc.dtx -> TDS:source/latex/etoc/etoc.dtx |
| 53 |
etoc.pdf -> TDS:doc/latex/etoc/etoc.pdf |
| 54 |
README.md -> TDS:doc/latex/etoc/README.md |
| 55 |
|
| 56 |
To produce `etoc.pdf` run pdflatex on the extracted file `etoc.tex` |
| 57 |
sufficiently many times (`latexmk -pdf etoc` is recommended). |
| 58 |
|
| 59 |
LICENSE |
| 60 |
======= |
| 61 |
|
| 62 |
This Work may be distributed and/or modified under the |
| 63 |
conditions of the LaTeX Project Public License, in its |
| 64 |
version 1.3c. This version of this license is in |
| 65 |
|
| 66 |
> <http://www.latex-project.org/lppl/lppl-1-3c.txt> |
| 67 |
|
| 68 |
and the latest version of this license is in |
| 69 |
|
| 70 |
> <http://www.latex-project.org/lppl.txt> |
| 71 |
|
| 72 |
and version 1.3 or later is part of all distributions of |
| 73 |
LaTeX version 2005/12/01 or later. |
| 74 |
|
| 75 |
The Author of this Work is Jean-Francois Burnol <jfbu at free dot fr> |
| 76 |
|
| 77 |
This Work consists of the main source file etoc.dtx and the derived files |
| 78 |
etoc.sty, etoc.tex, etoc.pdf, etoc.dvi. |
| 79 |
|
| 80 |
RECENT CHANGES |
| 81 |
============== |
| 82 |
|
| 83 |
- `1.2e 2026/05/04` compatibility hotfix with `hyperref v7.01q` |
| 84 |
|
| 85 |
- `1.2d 2023/10/29` bugfix |
| 86 |
|
| 87 |
- `1.2c 2023/10/28` compatibility hotfix with `hyperref v7.01c` |
| 88 |
|
| 89 |
- `1.2b 2023/07/01` bugfix, docs |
| 90 |
|
| 91 |
- `1.2a 2023/05/01` `deeplevels` option, removal of the requirement of |
| 92 |
a recent LaTeX |
| 93 |
|
| 94 |
- `1.2 2023/03/01` *experimental* `\locallistoffigures` and |
| 95 |
`\locallistoftables`, automatic choice of level by `localtableofcontents` |
| 96 |
adapted to its location inside the document hierarchy, options `toctotoc`, |
| 97 |
`localtoctotoc`, `locallottotoc`, `localloftotoc`, `ouroboros`. |
| 98 |
Compatibility with `tocbibind` package, too. |
| 99 |
|