htmltoc(1)

htmltoc1

Add table of contents to html document

Usage

htmltoc [-2345] [file]

Overview

htmltoc adds a table of contents to the HTML document named on the command line or provided as standard input. The table of contents is inserted between <tableofcontents> and </tableofcontents>, which must appear on lines by themselves. Any text between those two markers is discarded. These markers are inserted automatically by the sl2h(1) filter.

The table of contents includes only headers at levels 2, 3, 4, and 5. This can be changed by using a command-line option, e.g., -123456789P to include all possible headers.

Version

This man page is from noweb version 2.12.

Releases

15 releases since Debian 2.0 (Hamm); the text changed 4 times.

  1. 2.0–2.1
  2. 2.2–3.0
  3. 3.1
  4. 4.0–10
  5. 11–13

Bugs

htmltoc can't cope with a header that is split across multiple lines, even though this is legal HTML.

Author

Norman Ramsey, Tufts University. Internet address [email protected].
Noweb home page at http://www.cs.tufts.edu/~nr/noweb.

Stephen Parker provided a preliminary version.

From noweb 2.13-2 in Debian 13 (Trixie). Parsed by carta from the page's man source.