Register Guidelines E-Books Today's Posts Search

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

Notices

Reply
 
Thread Tools Search this Thread
Old 10-29-2013, 10:50 PM   #1
sup
Connoisseur
sup began at the beginning.
 
Posts: 95
Karma: 10
Join Date: Sep 2013
Device: Kindle Paperwhite (2012)
Skip sectoin TOC when it contains only one article

I am writing a new recipe for a print magazine. I used the parse_index() method to get sections and articles that belong to those sections. However a number of sections contain just one article. When I browse the ebook, it is a bit tiresome to open these TOCs with just one item included.

Is there some way to avoid their creation?
sup is offline   Reply With Quote
Old 10-29-2013, 11:46 PM   #2
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,858
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
The ToC is created based on whatever you return from parse_index. Merge all your one artivle sections into a single section called Miscellaneous if you want.
kovidgoyal is offline   Reply With Quote
Advert
Old 10-30-2013, 05:32 AM   #3
sup
Connoisseur
sup began at the beginning.
 
Posts: 95
Karma: 10
Join Date: Sep 2013
Device: Kindle Paperwhite (2012)
Hm, that would work but dould be suboptimal. First it would mess the order of the articles (some one article sections are in the end of the magazine) and these one article sections would dissappear from the global TOC. This is not such a big deal though.
sup is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Decorate article headings as hyperlinks to full article? tomsem Recipes 5 10-15-2010 08:30 PM
PRS-300 Skip 10 pages-- everyone know this already? ardeegee Sony Reader 4 10-04-2010 11:43 PM
Skip to a certain page? kuwakodono Kobo Reader 1 05-19-2010 09:12 PM
audio skip jakeluck Sony Reader 6 03-26-2007 05:03 PM
Skip to Next Chapter? ptully Sony Reader 0 11-10-2006 01:38 PM


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


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