Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 11-01-2010, 03:57 PM   #1
davidhburton
Addict
davidhburton rocks like Gibraltar!davidhburton rocks like Gibraltar!davidhburton rocks like Gibraltar!davidhburton rocks like Gibraltar!davidhburton rocks like Gibraltar!davidhburton rocks like Gibraltar!davidhburton rocks like Gibraltar!davidhburton rocks like Gibraltar!davidhburton rocks like Gibraltar!davidhburton rocks like Gibraltar!davidhburton rocks like Gibraltar!
 
davidhburton's Avatar
 
Posts: 211
Karma: 100001
Join Date: Feb 2010
Location: Toronto
Device: none
Calibre and TOC with images

Hi there,

I've put images at the beginning of each chapter rather than the text in a book I'm formatting and I was wondering if there's a way to code the html so that Calibre will create a TOC from it. I can do it if there is text using paragraphs tags a class for "chapter" but not sure what to do when there's no text.

Anyone do this before?

Thanks!
David
davidhburton is offline   Reply With Quote
Old 11-01-2010, 03:59 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,843
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
You can insert a hidden text based toc and have calibre use that.

Just wrap your toc in a <div style="display:none"> tag like this

Code:
<div style="display:none">
...
</div>
that way it wont be visible, but calibre will still be able to use it.
kovidgoyal is offline   Reply With Quote
Advert
Old 11-01-2010, 04:01 PM   #3
davidhburton
Addict
davidhburton rocks like Gibraltar!davidhburton rocks like Gibraltar!davidhburton rocks like Gibraltar!davidhburton rocks like Gibraltar!davidhburton rocks like Gibraltar!davidhburton rocks like Gibraltar!davidhburton rocks like Gibraltar!davidhburton rocks like Gibraltar!davidhburton rocks like Gibraltar!davidhburton rocks like Gibraltar!davidhburton rocks like Gibraltar!
 
davidhburton's Avatar
 
Posts: 211
Karma: 100001
Join Date: Feb 2010
Location: Toronto
Device: none
Thanks!! And how do I mark each chapter? Keep the class=chapter attribute?
davidhburton is offline   Reply With Quote
Old 11-01-2010, 04:02 PM   #4
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,843
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
yes, basically make exactly the same sort of toc you would have if you were making a text based toc
kovidgoyal is offline   Reply With Quote
Old 11-01-2010, 04:04 PM   #5
davidhburton
Addict
davidhburton rocks like Gibraltar!davidhburton rocks like Gibraltar!davidhburton rocks like Gibraltar!davidhburton rocks like Gibraltar!davidhburton rocks like Gibraltar!davidhburton rocks like Gibraltar!davidhburton rocks like Gibraltar!davidhburton rocks like Gibraltar!davidhburton rocks like Gibraltar!davidhburton rocks like Gibraltar!davidhburton rocks like Gibraltar!
 
davidhburton's Avatar
 
Posts: 211
Karma: 100001
Join Date: Feb 2010
Location: Toronto
Device: none
Awesome sauce! I'll try that. Thanks!!
davidhburton is offline   Reply With Quote
Advert
Old 11-01-2010, 04:18 PM   #6
davidhburton
Addict
davidhburton rocks like Gibraltar!davidhburton rocks like Gibraltar!davidhburton rocks like Gibraltar!davidhburton rocks like Gibraltar!davidhburton rocks like Gibraltar!davidhburton rocks like Gibraltar!davidhburton rocks like Gibraltar!davidhburton rocks like Gibraltar!davidhburton rocks like Gibraltar!davidhburton rocks like Gibraltar!davidhburton rocks like Gibraltar!
 
davidhburton's Avatar
 
Posts: 211
Karma: 100001
Join Date: Feb 2010
Location: Toronto
Device: none
That doesn't seem to be working. I think I'm missing something. Any parameters when I used Calibre to output to epub/mobi that I need to be aware of?
davidhburton is offline   Reply With Quote
Old 11-01-2010, 04:19 PM   #7
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,843
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
see http://calibre-ebook.com/user_manual...le-of-contents
kovidgoyal is offline   Reply With Quote
Old 11-01-2010, 06:57 PM   #8
Guido Henkel
Enthusiast
Guido Henkel began at the beginning.
 
Posts: 37
Karma: 10
Join Date: Feb 2010
Device: mobi, epub, lit
Kovid,

Your "display: none" suggestion does not work properly. It creates the same problems I pointed out about the use of "visibility: hidden" in this thread https://www.mobileread.com/forums/sho...d.php?t=105047

These properties work when you create an ePub file but the TOC is not linked to the proper pages when building a MOBI file. It looks like you have a bug in there somewhere.
Guido Henkel is offline   Reply With Quote
Old 11-01-2010, 08:30 PM   #9
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,843
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
In that case open a ticket and attach a test case.
kovidgoyal is offline   Reply With Quote
Old 11-02-2010, 01:16 AM   #10
Guido Henkel
Enthusiast
Guido Henkel began at the beginning.
 
Posts: 37
Karma: 10
Join Date: Feb 2010
Device: mobi, epub, lit
Okay, I have submitted a ticket with an example for you to review.
Guido Henkel is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Calibre TOC at end Dante Calibre 17 12-19-2010 09:36 AM
TOC in Calibre? fading Calibre 5 08-14-2009 05:53 AM
New to Calibre... TOC question ruchti Calibre 10 06-08-2009 05:53 PM
Making a TOC for LRFs? Issues with Calibre + LRF TOC editor not working Magitek LRF 0 05-06-2009 01:25 PM
Images on calibre =X= Calibre 13 04-14-2009 07:15 PM


All times are GMT -4. The time now is 08:37 AM.


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