11-21-2014, 10:01 AM | #1 |
Chief Bohemian Misfit
Posts: 571
Karma: 462964
Join Date: May 2013
Device: iPad, ADE
|
Your ToC in the ToC in iBooks?
What the heck is the deal with getting your table of contents to show up in the table of contents in iBooks? Like, in my book I have the "front matter," which consists of the title page and illustration, followed by a nicely formatted table of contents (which is much, much nicer to browse through than the device's built-in one), and this is followed by a similarly-formatted list of illustrations, and then the rest (and bulk) of the book.
All of the items that make up that "front matter" I've specified to be listed in the device's table of contents, but no matter what I try, I can't seem to get my table of contents to be listed in the iBooks' table of contents -- it shows the "Title Page & Illustration," and then comes "List of Illustrations." I even tried giving my own ToC a weird ID (like "whatever" or something), but I guess iBooks nevertheless knows that it's a table of contents and just doesn't want it listed in the table of contents -- if ya know what I mean. Anybody else noticed this? And anybody know a way to "fix" it? (PS. This isn't an issue in ADE -- my ToC shows up just fine in the ToC in there, so it's not an error in my coding or something.) Last edited by Psymon; 11-22-2014 at 02:42 AM. |
11-21-2014, 02:39 PM | #2 |
Addict
Posts: 398
Karma: 96448
Join Date: Dec 2013
Device: iPad
|
I don't understand, assuming you're building an EPUB2, the toc.ncx is what defines how your TOC would look in the app's TOC view. If you like to create an HTML file with a TOC go right ahead and do that and just put it in the spine.
If you're making an EPUB3, just make sure both the toc.ncx and the toc.html are the same. |
Advert | |
|
11-21-2014, 03:49 PM | #3 |
Chief Bohemian Misfit
Posts: 571
Karma: 462964
Join Date: May 2013
Device: iPad, ADE
|
I'm not sure how to explain this any better than I did -- although I do realize that it probably sounds a bit convoluted. I only experience this problem in iBooks, on my iPad, too -- it doesn't happen in ADE on my PC -- so I guess if you don't have an iPad (or other IOS device) you won't be able to see it. I'll try to re-state the problem, though, without reviewing what I wrote before -- maybe it'll come out differently this time and be more understandable what the problem is.
So every ebook reader has the ability to display a ToC for the reader -- when I make my book in Sigil, there's an option that does this automatically from the various headings, etc. that I've created in my book, of course. Apart from that, though, I wanted to make a "Table of Contents" in my book that's more like in a print book, i.e. after the title page and stuff, you "turn the page" and there's your ToC, all nicely formatted, looking the same (typographically) as the rest of your book does and stuff. Oh, and this is in epub2, by the way (if that matters, I don't know). The words (title) "Table of Contents" in there are coded as an <h1> heading, and therefore should show up in the device's (or more specifically in iBooks') ToC, too, though -- but they don't. In ADE on my PC -- where things work fine -- the first things listed in my ToC (the app's ToC, that is) are... Title Page & Illustration Table of Contents List of Illustrations Foreword [and then the rest of the book] ...but in iBooks, no matter what I do, I can't seem to get my Toc to show up in iBooks' Toc, so what I end up with is this being listed... Title Page & Illustration List of Illustrations Foreword [and then the rest of the book] Hope that explains the problem better? |
11-21-2014, 04:14 PM | #4 |
Grand Sorcerer
Posts: 5,640
Karma: 23191067
Join Date: Dec 2010
Device: Kindle PW2
|
If you've generated the HTML TOC after the NCX TOC, it obviously won't be included in the NCX TOC. I.e., you'll have to regenerate the NCX TOC after you've generated the HTLM TOC.
If you didn't use Sigil's Create HTML TOC option, you also might have to right-click your HTML TOC and select Add Semantics > TOC. |
11-21-2014, 04:37 PM | #5 | |
Chief Bohemian Misfit
Posts: 571
Karma: 462964
Join Date: May 2013
Device: iPad, ADE
|
Quote:
Ha ha... by my "HTML TOC", I presume you mean the one I made myself, that part of my book, that looks like the rest of my book? I don't actually do anything to "generate" that -- like, there's no feature in my program (Sigil) where I just click a button (or whatever) and it updates it automatically. I have to type in the code by myself, make any changes to it myself, just like any other HTML page in the book. I'm not quite sure if I understand the rest of what you were saying -- and I have no clue about "semantics." In any case, don't forget that everything works fine in ADE, it just seems to be iBooks that doesn't want to list your nicely-designed, part-of-the-book "Table of Contents" in its ToC. |
|
Advert | |
|
11-21-2014, 04:58 PM | #6 | ||
Grand Sorcerer
Posts: 5,640
Karma: 23191067
Join Date: Dec 2010
Device: Kindle PW2
|
Quote:
Quote:
It works fine, because ADE ignores guide items. |
||
11-21-2014, 05:21 PM | #7 | |||
Chief Bohemian Misfit
Posts: 571
Karma: 462964
Join Date: May 2013
Device: iPad, ADE
|
Quote:
Quote:
I also just looked into this ("semantics") a little more, and came across this page... http://sigildev.blogspot.ca/2010/04/...tics-menu.html ...but I still don't know what it's supposed to do, and -- perhaps more importantly -- how I would impliment it the way that I've done my book. I have one file, called "front_matter.xhtml", which contains ALL the front matter to my book, i.e. the title page, the following illustration, the table of contents and the list of illustrations. That "Add Semantics" thingie will only allow me to add one of those things. And in any case, even if I did add a "semantic", I still don't get what that's supposed to do. Quote:
|
|||
11-21-2014, 05:59 PM | #8 | |
Addict
Posts: 243
Karma: 359054
Join Date: Nov 2012
Device: default
|
Quote:
IIRC the semantics actually updates the guide section of content.opf. e.g. Code:
<reference href="Text/contents.xhtml" title="Table Of Contents" type="toc"/>
The reader should use these internally for various functions. |
|
11-21-2014, 06:28 PM | #9 | |
Chief Bohemian Misfit
Posts: 571
Karma: 462964
Join Date: May 2013
Device: iPad, ADE
|
Quote:
Unfortunately -- but then, like I said, I didn't want to split the file anyway. :/ |
|
11-22-2014, 11:34 PM | #10 | |
Addict
Posts: 243
Karma: 359054
Join Date: Nov 2012
Device: default
|
Quote:
Can you not buy a proper e-ink device? |
|
11-23-2014, 07:53 PM | #11 | |
Grand Sorcerer
Posts: 11,470
Karma: 13095790
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2 & Air 2, iPhone 7
|
Quote:
Dale |
|
11-23-2014, 08:06 PM | #12 | |
Chief Bohemian Misfit
Posts: 571
Karma: 462964
Join Date: May 2013
Device: iPad, ADE
|
Quote:
See my third post here in this thread -- I don't know how to explain the problem any better than I did there... https://www.mobileread.com/forums/sho...14&postcount=3 |
|
11-23-2014, 09:55 PM | #13 |
Grand Sorcerer
Posts: 11,470
Karma: 13095790
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2 & Air 2, iPhone 7
|
Ah, I was confused. It looks like Apple is treating your inline TOC as an external TOC and removing it from the book but probably keeping it as an external TOC so you can use it to navigate. This may be a function of epub 3 where Apple is confused.
Dale |
11-24-2014, 12:27 AM | #14 | |
Chief Bohemian Misfit
Posts: 571
Karma: 462964
Join Date: May 2013
Device: iPad, ADE
|
Quote:
If that makes sense -- I know it's confusing when I keep talking about "my" ToC and iBooks' ToC. |
|
11-24-2014, 02:07 AM | #15 | |
Grand Sorcerer
Posts: 11,470
Karma: 13095790
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2 & Air 2, iPhone 7
|
Quote:
Dale |
|
Tags |
ibooks, table of contents |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
iBooks TOC error in EPUB3 | brownetu | ePub | 13 | 08-15-2014 02:32 AM |
Do you create a hyperlinked TOC for your ePubs in iBooks? | katiesommer | ePub | 19 | 01-21-2013 02:39 AM |
Different image next to TOC than iBooks shelf | Alan Newson | ePub | 0 | 03-19-2012 08:17 AM |
Why does automatic TOC disappear in iBooks? | nonsequito | ePub | 1 | 06-07-2011 03:52 PM |