Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Devices

Notices

Reply
 
Thread Tools Search this Thread
Old 06-28-2024, 05:09 AM   #1
euriloco
Junior Member
euriloco began at the beginning.
 
euriloco's Avatar
 
Posts: 5
Karma: 10
Join Date: Sep 2010
Device: Kindle 3
Nested divs in Kindle

Hi,
I have an ebook whose index has h1, h2, and h3 levels. To create the TOC, I nested <div> elements to create the index structure.
The problem is that when converting this nesting of divs to azw3 with Calibre, the Kindle doesn't recognize them and displays everything at the same level in the TOC.
So I have to modify the TOC to remove the nested divs.
Is it possible to create a TOC with nested divs that the Kindle will recognize when I convert it to azw3?
euriloco is offline   Reply With Quote
Old 06-28-2024, 08:58 AM   #2
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: 30,506
Karma: 58055868
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Why are you doing it that way?
If you start with an EPUB2, The TOC tool will create a nested NCX TOC from the H# levels in the sections.
The Editor can the make an inline TOC from that. Tools:Table of Contents:inline TOC

OTOH Kindles may not support very deep nesting (been awhile since I made one for my K4)
theducks is online now   Reply With Quote
Advert
Old 06-29-2024, 11:18 AM   #3
Quoth
Reading till the spring
Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.
 
Quoth's Avatar
 
Posts: 12,518
Karma: 94058919
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper
Really only two levels is safe on everything. Some things support 3.

But it's only some textbooks etc that really need more than 2 and it's possible to make do with 2.
Quoth is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Do SVGs have to be wrapped in DIVs? what ePub 3 03-23-2021 03:40 AM
nesting divs & spans AlanHK ePub 7 11-20-2018 07:25 AM
Nested NCX and the Kindle(s) santosha Kindle Formats 3 10-16-2018 12:51 PM
KT3: nested (or even un-nested) document collections? milo1984 Amazon Kindle 1 12-24-2016 03:09 PM
Pasting creates DIVS but not Paragraphs? bitterbug Sigil 4 10-22-2010 01:42 AM


All times are GMT -4. The time now is 09:57 PM.


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