|
![]() |
|
Thread Tools | Search this Thread |
![]() |
#16 |
Junior Member
![]() Posts: 9
Karma: 10
Join Date: Sep 2024
Device: none
|
Thank you for the suggestion DNSB. However, I don't think that will work.
When I set --level1-toc to //*[(name()='h1' or name()='h3')] it gathers all <h1> tags and all <h3> tags and makes them ToC items at level1. I'm worried at this point the command line ebook-convert tool just doesn't make ToCs at the full depth that I need. I don't see a way to make <h4> and <h5> tags turn into level4 and level5 ToC elements. It seems like the GUI is the only way to make ToCs up to 5 or 6 levels deep. Am I missing anything? Or am I correct that ebook-convert can only make ToCs with three levels of ToC elements? |
![]() |
![]() |
![]() |
#17 |
Junior Member
![]() Posts: 9
Karma: 10
Join Date: Sep 2024
Device: none
|
If ebook-convert doesn't make ToC with depth >3, is there any other automated way to do that? Like a script in Calibre's code base I could use?
It would be really helpful to automate this rather than use the UI. Thanks for any suggestions. |
![]() |
![]() |
![]() |
Tags |
toc, toc creation |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
create a useable TOC when book uses images for chapter headings | stumped | Sigil | 23 | 06-09-2019 03:12 PM |
How to insert automatically valid id's in ToC headings? | chaot | Editor | 18 | 02-01-2017 06:55 AM |
Generated TOC at beginning of PDF via command line | alexandreaquiles | Conversion | 1 | 10-12-2014 03:24 AM |
HTML to Epub conversion isn't generating TOC through command line | marcosalles | Conversion | 1 | 02-20-2014 10:09 PM |
Calibre Command Line Interface TOC | bcolflesh | Calibre | 3 | 02-04-2010 04:09 PM |