The production of table of contains.
prototype |
(toc [:ident] [:class "toc" ] [:chapter #t ] [:section #t ] [:subsection] handle ) |
ident | html latex xml | The node identifier. |
class | html latex xml | 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: skr/api.skr:15566] [?mark handle: skr/api.skr:15566] |
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: