On this page:
table_  of_  contents
local_  table_  of_  contents
9.0.0.6

3.8 Table of Contents🔗ℹ

Creates a flow block that renderes a table of contents for the enclosing document.

For PDF/Latex output, the table of contents is for the whole document, but for other renderers, the table of contents is only for the enclosing section.

function

fun local_table_of_contents(~style: style :: maybe(StyleLike) = #false)

  :: FlowBlock

Similar to table_of_contents, but limited to sections within the enclosing section, and only for renderers (like the one for HTML) that support it.

The meaning of the style argument depends on the renderer, but #'#{immediate-only} normally creates a table of contents that contains only immediate subsections of the enclosing section. See also the #'quiet style property of part (i.e., in a part structure, not supplied as the style argument to local_table_of_contents), which normally suppresses subpart entries in a table of contents.