![]() |
#1 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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 |
![]() |
![]() |
![]() |
#2 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,304
Karma: 27111242
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> |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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?
|
![]() |
![]() |
![]() |
#4 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,304
Karma: 27111242
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
|
![]() |
![]() |
![]() |
#5 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 211
Karma: 100001
Join Date: Feb 2010
Location: Toronto
Device: none
|
Awesome sauce! I'll try that. Thanks!!
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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?
|
![]() |
![]() |
![]() |
#7 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,304
Karma: 27111242
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
|
![]() |
![]() |
![]() |
#8 |
Enthusiast
![]() 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. |
![]() |
![]() |
![]() |
#9 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,304
Karma: 27111242
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
In that case open a ticket and attach a test case.
|
![]() |
![]() |
![]() |
#10 |
Enthusiast
![]() 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.
|
![]() |
![]() |
![]() |
|
![]() |
||||
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 |