Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 12-11-2025, 07:04 AM   #1
PubFut
Member
PubFut began at the beginning.
 
Posts: 11
Karma: 10
Join Date: Aug 2024
Device: Sigil
Option to specify heading level when auto-generating TOC

I use automatization to create my EPUB TOCs which works fine in general. However, I could not find an option to specify the heading levels to be included in the TOC as it can be specified when a TOC is generated by the corresponding menu item.

Is there a way to do so as well when creating the TOC in an automated process or could this option be added to one of the future releases?
PubFut is offline   Reply With Quote
Old 12-11-2025, 09:47 AM   #2
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 9,157
Karma: 6565346
Join Date: Nov 2009
Device: many
You can always use the Sigil built in tool to create the TOC, and then use the TOC Editor to control nesting and levels. But since building a toc is normally only done once, after the epub is fully edited, doing fine controls via an automation list is just not worthwhile in general in my opinion. You can always create a plugin to do what you want and add that to your automation list.
KevinH is offline   Reply With Quote
Old Yesterday, 05:17 AM   #3
PubFut
Member
PubFut began at the beginning.
 
Posts: 11
Karma: 10
Join Date: Aug 2024
Device: Sigil
Configurable default value for the heading levels to be included in a TOC

Quote:
Originally Posted by KevinH View Post
doing fine controls via an automation list is just not worthwhile in general in my opinion..
Thank you for your reply! I understand that this might not be a general use case. However, I think it could be helpful for more people to implement a setting for a default value for the heading levels to be included in a TOC. This relatively small change would also serve my case.
PubFut is offline   Reply With Quote
Old Yesterday, 10:17 AM   #4
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 9,157
Karma: 6565346
Join Date: Nov 2009
Device: many
Sorry not interested. The feature you requested is not of general use because it is typically just done once and there is already a way to do that via the TOC editor.

Building a TOC is typically done once at the end, so automating it is not useful. If you must have something that can be done in an automation list, create your own plugin that does what you want. Stripping a 3 level TOC down to a 2 level or single level TOC is quite easy to do in python, so a plugin would be relatively straight forward.

Last edited by KevinH; Yesterday at 11:06 AM.
KevinH is offline   Reply With Quote
Old Yesterday, 11:08 AM   #5
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 31,356
Karma: 62500000
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Seconded.
The TOC editor allows changing the indent nesting or removal with a click or 2.
You can even change the Order of appearance (this does not change the linear placement IN the EPUB) in the TOC
theducks is offline   Reply With Quote
Reply

Tags
automated processing, toc


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Removing all TOC info and generating a new TOC WV-Mike Sigil 19 09-07-2023 12:55 PM
How to get 4 levels of heading in ToC? Kumara Conversion 2 10-16-2014 02:48 AM
Are 'empty' heading tags acceptable for generating a table of contents? Derek R ePub 12 05-23-2014 06:34 AM
Heading level 3 marco-1 Conversion 1 03-21-2014 11:52 AM
html2epub: chapter splitting on more than 1 heading level Portnull Calibre 1 06-25-2009 10:17 AM


All times are GMT -4. The time now is 04:38 AM.


MobileRead.com is a privately owned, operated and funded community.