View Single Post
Old 09-04-2024, 02:34 PM   #16
Whip
Member
Whip began at the beginning.
 
Posts: 10
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?
Whip is offline   Reply With Quote