|
The production of table of contains.
prototype |
(toc [:ident] [:class] [:chapter #t ] [:section #t ] [:subsection] handle ) |
:ident | html latex | The node identifier. |
:class | html latex | The node class. |
:chapter | html | A boolean. The value #t forces the
inclusion of chapters in the table of contents. |
:section | html | A boolean controlling sections. |
:subsection | html | A boolean controlling subsections. |
handle | An optional handle pointing to the node from
which the table of contents if computed. |
document chapter section [?mark resolve] [?mark handle] |
Example:
(toc :chapter #t :section #f :subsection #f)
|
|
Ex. 5: The toc markup
Produces:
The second example only displays the table of contents of the current
chapter. Example:
(resolve (lambda (n e env)
(toc :chapter #t :section #t :subsection #t
(handle (ast-chapter n)))))
|
|
Ex. 6: A restricted table of contents
Produces:
|