Quote:
Originally Posted by spelunker
ALL of this could be avoided by generating your toc through the head element <title> as I suggested.
|
Since the
Calibre Editor already has that functionality, there's no point in adding it to Sigil, especially since it goes against best practices.
To generate a TOC from title tags in Calibre Editor:
- Add the book to your Calibre library, right-click it and select Edit book.
- Select Tools > Table of Contents > Edit Table of Contents.
- Delete the default Start entry.
- Click Generate ToC from Xpath.
- Paste //h:title in the Level 1 ToC box and click OK.
- Click OK again and select Save a copy from the File menu to save the updated epub.