3.2.6 Table of contents

A table of contents is included using the
\markuplist \table-of-contents command. The elements which
should appear in the table of contents are entered with the
\tocItem command, which may be used either at top-level, or
inside a music expression.

Custom commands with their own markups can also be defined to build a
more complex table of contents. In the following example, a new style
is defined for entering act names in a table of contents of an opera;

A new markup variable (called tocActMarkup) is defined in the
\paper block;