In order for Sigil to generate a table of contents for you, you must have already identified the chapter names. See the previous tutorial if you have not done this already.
Once you have marked all your chapter headings you can click the Generate Table Of Contents button
or use the menu item to open a new dialog:
The dialog allows you to mark which headings to include or not include in your Table of Contents.
Marking a heading to be excluded from the TOC is persistent. The next time you generate the TOC, that heading will remain excluded. See the Table of Contents chapter for more details.
Click when you are finished.
The Table of Contents window will be updated to show your current TOC – which includes the headings you selected:
If you click on an entry in the Table of Contents window you will jump to its location in the book.
You should re-generate the TOC any time you change your headings.
If you also generate an HTML TOC as well, you should do that after you generate the EPUB TOC because the HTML TOC gets its information from the EPUB TOC, not directly from the HTML files.
Save
your book if you haven’t already.
See the Table of Contents chapter for more details.