Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old Today, 10:18 AM   #1
euriloco
Junior Member
euriloco began at the beginning.
 
euriloco's Avatar
 
Posts: 5
Karma: 10
Join Date: Sep 2010
Device: Kindle 3
Issue with Nested Divs in TOC on Kindle

Hi,
Sigil automatically generates the TOC with Tools > Table of Contents > Generate HTML from TOC.
The problem is that it generates a TOC structure with nested divs.
I am working with an epub that has 3 levels (h1, h2, h3) in the index, which results in the TOC having 3 nested divs.
The problem I have is that Kindle only supports 2 nested divs. If I add a TOC with 3 nested divs, Kindle displays it as if they are all at the same level (h1).
Is there any way to automatically generate the TOC without nesting divs?
Thanks
euriloco is offline   Reply With Quote
Old Today, 12:01 PM   #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: 7,808
Karma: 5446592
Join Date: Nov 2009
Device: many
You can run Sigil's toc editor tool and promote, demote or delete (i.e. not include) whatever headers you want. There is also a filter for limiting to the highest level. FWIW, Technically you are ordering ol and li tags not div tags in the nav, I believe.

Last edited by KevinH; Today at 12:10 PM.
KevinH is offline   Reply With Quote
Advert
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Nested divs in Kindle euriloco Devices 2 Yesterday 10:18 AM
Kindle -creating nested / multi level TOC menu codys Kindle Formats 1 10-16-2018 02:26 PM
Nested (expandable) ToC AppleTard Amazon Kindle 3 04-02-2017 07:25 PM
Touch Nested TOC problem with NST lavina Barnes & Noble NOOK 2 01-30-2014 06:01 PM
nested toc appears flattened on kindle MrNiceGaius Conversion 2 09-19-2013 08:51 AM


All times are GMT -4. The time now is 04:34 PM.


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