![]() |
#1 |
Banned
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 244
Karma: 2112680
Join Date: Jan 2017
Device: iBooks
|
Three Tables of Contents?
The epub I'm working on has two tables of contents. One is the TOC that drops down when you click the icon at the top of your epub reader. The other TOC is something I created manually in a file named introduction.xhtml, which also includes a few other things (Preface, Introduction, etc.).
I just realized that the HTML for the automatically generated TOC is in a file named nav.xhtml, not in toc.ncx (which I thought was the file associated with the auto-TOC). So if my TOC content is in nav.xhtml, then what's the purpose of toc.ncx? I'm working with Sigil on a Mac, by the way. |
![]() |
![]() |
![]() |
#2 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,025
Karma: 90000009
Join Date: Nov 2011
Location: Charlottesville, VA
Device: Kindles
|
The nav file is for reading devices that support EPUB 3. The ncx is a fallback for EPUB 2 readers.
|
![]() |
![]() |
![]() |
#3 |
Banned
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 244
Karma: 2112680
Join Date: Jan 2017
Device: iBooks
|
Ah, that explains it.
This is the content right now: Code:
<text>Unknown</text> </docTitle> <navMap> <navPoint id="navPoint-1" playOrder="1"> <navLabel> <text>Start</text> </navLabel> <content src="Text/introduction.xhtml"/> </navPoint> </navMap> Code:
<text>Unknown</text> </docTitle> <navMap> <navPoint id="navPoint-1" playOrder="1"> <navLabel> <text>Start</text> </navLabel> <content src="Text/introduction.xhtml"/> <content src="Text/chapter1.xhtml"/> </navPoint> </navMap> |
![]() |
![]() |
![]() |
#4 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,025
Karma: 90000009
Join Date: Nov 2011
Location: Charlottesville, VA
Device: Kindles
|
No, there is a particular structure that must be followed. And you want to keep all of the TOC copies in sync. I recommend using a TOC tool in an EPUB editor.
|
![]() |
![]() |
![]() |
#5 |
Banned
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 244
Karma: 2112680
Join Date: Jan 2017
Device: iBooks
|
Hmmm...Sigil apparently allows me to only make an Epub 3.0 auto-TOC and/or an HTML TOC. So I need to use a different software program to create a TOC for Epub 2.0?
Actually, I should do some research on Epub 2.0 before I go any further. Is it still popular enough to really merit wasting time on it? Thanks. |
![]() |
![]() |
![]() |
#6 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,294
Karma: 78876004
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
|
I think it's safe to say that more eReaders support epub 2 than 3
|
![]() |
![]() |
![]() |
#7 |
Banned
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 244
Karma: 2112680
Join Date: Jan 2017
Device: iBooks
|
Wow, I thought I read that Epub 2.0 was dying out.
OK, what are some software programs that can create TOC's for Epub 2.0? |
![]() |
![]() |
![]() |
#8 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
Quote:
Now, for programs that can create TOC's. Sigil and Calibre for sure. You can also do it by hand, it is not that hard. It is just some XML. |
|
![]() |
![]() |
![]() |
#9 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,680
Karma: 23983815
Join Date: Dec 2010
Device: Kindle PW2
|
Quote:
Tools > Epub3 Tools > Generate NCX from Nav If your book also contains a regular HTML TOC for older Kindle devices also select: Tools > Table of Contents > Create HTML Table of Contents |
|
![]() |
![]() |
![]() |
#10 |
mostly an observer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,518
Karma: 987654
Join Date: Dec 2012
Device: Kindle
|
|
![]() |
![]() |
![]() |
#11 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,064
Karma: 144284144
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
ePub 2 is actually more in use as more programs read ePub 2 and not ePub 3. Also, ePub 2 is easier to make and unless you actually need some features of ePub 3, you'd be best to stick to ePub 2.
With ePub 2 you only NEED one ToC. That ToC being the NCX ToC. |
![]() |
![]() |
![]() |
#12 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,025
Karma: 90000009
Join Date: Nov 2011
Location: Charlottesville, VA
Device: Kindles
|
EPUB 3 navigation was defined in such a way that the table of contents that appears within the document flow can also be used as the logical table of contents by adding extra mark up. In practice this is rarely done. So instead of reaching the intended goal of a single TOC, now there are typically three in an EPUB.
|
![]() |
![]() |
![]() |
#13 |
Banned
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 244
Karma: 2112680
Join Date: Jan 2017
Device: iBooks
|
Wow, good tips; lots to think about.
I try my best to keep up with the latest technology, so Epub 3.0 seemed the way to go. But I'll have to take another look at it. Anyway, I now have three tables of contents. ![]() P.S. Now I remember why I was so fixated on Epub 3.0. I watched a series of InDesign tutorials @ Lynda.com, and I think the instructions were to choose Epub 3.0. I imagine the folks at Adobe would favor Epub 3.0 because it shows off whatever InDesign is supposed to do better than 2.0. Last edited by SigilBear; 02-13-2017 at 01:52 PM. |
![]() |
![]() |
![]() |
#14 |
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
|
|
![]() |
![]() |
![]() |
Tags |
table of contents, toc.ncx |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Tables not looking just right | oiver55 | Sigil | 4 | 08-27-2015 07:51 AM |
Tables of Contents | carogray | General Discussions | 17 | 10-23-2013 04:45 PM |
Multiple tables of contents | e.loureiro | Kindle Formats | 0 | 02-08-2013 07:09 AM |
General question on tables of contents | starrigger | Calibre | 4 | 02-23-2009 02:05 AM |
Sitemap Creator and Tables of Contents | brewt | Workshop | 0 | 12-18-2007 01:22 AM |