Register Guidelines E-Books Search Today's Posts Mark Forums Read

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

Notices

Reply
 
Thread Tools Search this Thread
Old 03-27-2020, 10:50 AM   #1
hymie
Enthusiast
hymie began at the beginning.
 
Posts: 27
Karma: 10
Join Date: Oct 2011
Device: iPhone
Table of Contents depth first?

So I'm using ebook-convert to create EPUB documents from a bunch of HTML files. I've noticed that it creates the TOC "breadth first" rather than "depth first" -- that is...

My "Home" doc has links to three pages (but no links to their sections), and then each page has links to three subsections. My TOC ends up looking like this:
  • Home
  • Page 1
  • Page 2
  • Page 3
  • Page 1 Sec 1
  • Page 1 Sec 2
  • Page 1 Sec 3
  • Page 2 Sec 1
  • Page 2 Sec 2
  • Page 2 Sec 3
  • Page 3 Sec 1
  • Page 3 Sec 2
  • Page 3 Sec 3

Am I doing something wrong? Or is this just the way it is?
hymie is offline   Reply With Quote
Old 03-27-2020, 07:07 PM   #2
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 20,459
Karma: 26645808
Join Date: Mar 2012
Location: Sydney Australia
Device: none
FWIW - with the Edit ToC tool you can move the ToC entries via drag-n-drop or with the green arrows on the right and nest/denest them with the blue arrows - you may need to add the Edit ToC tool to a toolbar/menu or give it a shortcut.

BR
BetterRed is offline   Reply With Quote
Advert
Old 03-27-2020, 11:08 PM   #3
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,778
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Auto-generated tocs from links will always be in whatever order the links appear in the document, links are not followed while processing tocs. So it wil lalways be breadth first (or more precisely document order).
kovidgoyal is offline   Reply With Quote
Old 03-29-2020, 05:09 PM   #4
hymie
Enthusiast
hymie began at the beginning.
 
Posts: 27
Karma: 10
Join Date: Oct 2011
Device: iPhone
Quote:
Originally Posted by kovidgoyal View Post
Auto-generated tocs from links will always be in whatever order the links appear in the document, links are not followed while processing tocs. So it wil lalways be breadth first (or more precisely document order).
Bummer. Thanks for the info.
hymie is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Table of Contents not being identified as Table of Contents openletter Conversion 2 10-19-2012 12:54 AM
Table of Contents fiona86 Conversion 1 08-11-2011 07:14 AM
Using Table of Contents sammieb77 enTourage Archive 7 01-14-2011 08:01 PM
Table of Contents peterinnes Sigil 1 09-29-2010 03:03 AM
How to: table of contents wizzofoz Sigil 1 10-08-2009 08:22 AM


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


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