The TocMacro generates a table of contents for the current page or a set of
pages.

WWW: http://trac-hacks.org/wiki/TocMacro