@print_table_of_contents()For Latex, the native table of contents construction is used. For flat HTML, the weaver generates a hyper linked table of headings, but two passes are required to get it right. For plain text, two passes are also required.
For stacked HTML, a separate contents page is created automatically. For this reason, the table of contents command is disabled for that weaver.