Join Anne-Marie Concepción for an in-depth discussion in this video Adding a custom TOC as the first page of an EPUB file, part of InDesign CS4 to EPUB, Kindle, and iPad.
Whenever I'm reading a digital book and I'm scrolling through it and I'm deeply into the book, you know it's always nice as to be able to quickly get to a table of contents to see, did I hit that section in the collection of short stories, did I read that short story? So I'm constantly using the Navigational table of contents. And I talked earlier about how to create this. But a lot of times you don't always see this all the time, like here in Digital Editions, I can come up to his Reading menu and Hide the Navigation pane, and so I'm just looking at this.
And what I really appreciate when some producers do is, when they actually add an Inline or content, table of contents. So here if I want to quickly jump to certain section, I can just click right on that link, and also, if you've ever used any kind of ereader like a Kindle or something, it's often very hard to remember, how do you get back to that, navigational table of contents. You know there is a little icon hiding in a little corner, you got to press a certain secret button to show and hide it, but it's very simple, usually to figure out how to get to the beginning of the book, right? You just slide to the very beginning, or like here, I can just drag right up to the very beginning, and I know that the TOC is right there.
So how do you create one of these? Well, you actually have to put it right in InDesign, so let's talk about how to do that. Let me show the Navigation pane again, so back here in InDesign, I have created a book called California History, so each individual document is one of the pages, so this is just foreword and then here's a chapter called California's Name and Early History and so on. And in my contents page I have an actual existing table of contents, by that I mean I use the built-in feature to create this.
Let me show you I'm going to delete this for now and I'm just going to go right up to the Layout menu, choose table of contents, you can see I've already created the TOC style where I want, in the entire book Include Book Documents. So it shows me all the styles here and I've set this up, and then I click OK and it loads up my cursor with the table of contents text and then I can click and place it. And the problem is as I've explained, what gets transferred, what doesn't get transferred, that automatically generates Tables of Contents, don't get exported, they get ignored.
So you can't really even use this as a starting point to create your own table of contents. If you are looking at a framing and not sure was it automatically generated or not, and I really wish Adobe would add some sort of dingleberry or icon to these frames to let us know. But here's a tip is that if you select that frame and go to Edit > Edit in Story Editor, you'll see these links all over the place and that is a tipoff, this was an automatically generated TOC. So you can't really use this even though it is editable, you could select this text you can't really use it because it's going to be ignored.
What you can do is you can retype it or you can export this to RTF and place a RTF that clears it out as well. That is something that I've already done, as you can see on the pasteboard I have a duplicate of that. So you don't use an actual TOC, they are pretty much useless, when you're going to export to EPUB. And so this was actually hand-built, so if we open this in Story Editor, we're not seeing any of those word link things. So how do you make a link? Well, you use cross-references in InDesign CS4. If you're linking from one document to another, you have to have those other documents opened.
Now I am not going to go very deeply into Cross-References at all, but if you watch on my new features in InDesign CS4 videos on Lynda.com, I have a whole chapter I'm working with Cross- References, and I'm sure that covered in other InDesign titles as well. But the actual panel is under the Window menu, go to Interactive, choose Hyperlinks, which has Cross- References at the bottom and say that I want to make a link from Foreward to the Foreward section, I want to make sure it's open, which already has been, and then I click New Cross-Reference the bottom of the Hyperlinks panel.
I want to link to the Foreword to INDD file and it's called Title-special Foreword. I've already created a Cross-Reference format that contains the Full Paragraph, in other words, the full entry of that style with no quotes, because I don't like the quotes around it, and I want to make in Appearance it is Invisible Rectangle, because I don't want to see that rectangle here. When you export to EPUB, most ereaders and devices will add their own blue line or make it into a link, so it looks like an obvious link, or you can also edit that in CSS to override what the link looks like and make it look a little more special.
Let's do the same thing for this one, California's Name and Early History, I'm going to make a Cross-Reference to the Early History document, and that is chapter title, full paragraph, no quotes invisible, we will just do those two. And now let's export this book to EPUB and see what it looks like. So I go to the book panel menu and choose Export Book for Digital Editions, we'll save it onto the desktop and in our settings here I want to use, Defined Styles, no fonts, view the e-Book after exporting, Images are fine, in Contents, I do want to include the TOC entries for Basic TOC, I don't want the names of these documents to be the navigational TOC, and so I'll turn on Suppress Automatic Entries and click Export. Okay.
So here is our navigational table of contents and if I click Contents, there is the contents with the links. I click Foreword, it jumps to foreword, and let's go back. California's Name and History. I can hide the Navigation pane and still be able to use my built-in table of contents with all my links or I could create a list of illustrations in the book or a list of recipes. Really, whatever you want to do. Just use the Cross-Reference in the InDesign book feature.
- Understanding ebooks and ebook publishing
- Examining the EPUB format
- Creating linked navigational TOCs
- Formatting with paragraph, character, and object styles
- Optimizing graphics for the EPUB and Kindle formats
- Streamlining production with free InDesign scripts and plug-ins
- Creating drop caps, pull quotes, and text wraps in the EPUB
- Reviewing best practices for book cover images
- Using cross-platform EPUB editors and utilities
- Validating EPUBs
- Proofing ebooks in iBooks, the Kindle, and the B&N Nook
- Acquiring an ISBN for ebooks
- Distributing ebooks with resellers and aggregators
Skill Level Intermediate
Q: There is a problem with preptext.jsx mentioned in this course in the Chapter 4 movie named "Applying paragraph and character styles". Is there a fix or does Anne-Marie address this somewhere?
A: Please refer to the post on Anne-Marie's web site regarding this issue, which can be found at http://indesignsecrets.com/perfectpreptext-a-smart-way-to-style-local-formatting.php.