It's about time I put InDesign through its paces. I've been neglecting Adobe's fantastic DTP package in favour of Illustrator.
For this exercise I'm going to show you how to create a table of contents in InDesign. In my experience this is a very useful thing to do. Not only do you automate the creation of a table of contents, but by creating PDF bookmarks you also make life a lot easier for yourself when you later come to format your document.
For this example I'm going to try something a little different. Rather than waste time getting you to create a book from scratch, I've taken the liberty of making the file that I use in this exercise available to everyone. If you wish to download the example file it can be found at:
http://europatraining.co.uk/Animal%20Farm.indd.zip
(Copy and paste this url into your browser window if the files does not automatically download.)
So let's begin...
1. For this exercise I'm going to be creating a table of contents (or TOC) for George Orwell's Animal Farm. As you can see from the screen-shot below, I've created a number of Paragraph Styles for the book. After we've created the TOC you can try out applying them to the text if you're so inclined.

2. In order to create a TOC in InDesign you must first ensure that certain Paragraph Styles have been applied to appropriate portions of text in the document. In other words, if you apply the Paragraph Style entitled 04 Chapter Header to every incidence of the word 'chapter' in the text, you can then tell InDesign to look for occurrences of that Paragraph Style and make a note of the page on which it appears.
You could do this manually, of course. You could trawl through the document and apply the Paragraph Style 04 Chapter Header to the beginning of every chapter of the book. I'm a lazy person by nature, however, and I'm going to let InDesign do this for me.
To do so, go to Edit> Find/Change... and ask InDesign to look for the word 'chapter' and replace it with the word 'chapter'. Confused? I don't blame you. As you know, this action will obviously make no difference to the document whatsoever. However, if you click the More Options button in the Find/Change... dialogue box, you can then access the Change Format Settings and select 04 Chapter Header from the Paragraph Styles pop-up menu.
So what we're actually doing is telling InDesign to look for the word 'chapter', replace this with the word 'chapter', and at the same time change the Paragraph Style to 04 Chapter Heading. I hope this is making sense to you.
3. So now every incidence of the word 'chapter' has been put into the Paragraph Style 04 Chapter Header. But what, I hear you say, if the word 'Chapter' happens to occur somewhere in the actual text? Don't worry about that just now. We'll get the opportunity later on to ensure that there are no glaring errors.
Of more immediate concern is the fact that our Find/Change... has ended up putting our chapter headings bang in the middle of the text in apparently random places as shown in the screen-shot below. What do we do about this?
My aim is to actually have all chapters beginning on a right-sided page. Once again, if I were not quite so lazy, I could scroll through the document and do this manually, using the 'enter' key instead of the 'return' key to force the chapter headings up to the next linked text box. However, once again I'll let InDesign do this for me.
In the Paragraph Styles palette double-click on the style 04 Chapter Header. In the resultant dialogue box select Keep Options, then choose On Next Odd Page from the Start Paragraph pop-up menu. Problem solved. All Chapter headings now start on a right-sided page. InDesign will even insert extra pages to automatically facilitate this. What an excellent program InDesign really is. I'm a fan.

4. Almost there. We've applied the appropriate Paragraph Style to every incidence of the word 'chapter' and we've got all our chapters beginning on a right-sided page. Now we go to Layout> Table Of Contents...
It's worth your while now trying a little cause and effect. The fields in the TOC dialogue box are fairly self-explanatory, I think. As a starting point you might like to use the settings that I've selected below. Remember, all we're basically doing it telling InDesign to look for the Paragraph Style 04 Chapter Header and make a note of the page numbers on which this occurs.
Please make sure that Create PDF Bookmarks is checked. This is going to come in handy very soon...
5. Click OK when you're happy with your settings and a loaded text icon will appear at your cursor position. Navigate over to Page 1 and click inside the text box on that page. Hey presto! A table of contents.
But it gets better...
Go to Window> Interactive> Bookmarks and you'll find a ready-made set of PDF bookmarks that link to every chapter heading in the document. Double-click on any of these and you get taken to that position in the document. You can now apply the appropriate Paragraph Styles to finish the book.
In the good old days when I worked in publishing, I've seen lazy subs take a whole day trying to finish formatting a document. Thanks to your PDF bookmarks you can do this in a couple of seconds. The Bookmarks palette is also the place to check for any errors in the document. If the word 'chapter' does happen to appear in the book's narrative you can now apply the correct Paragraph Style and go back to Layout> Table Of Contents... to update your TOC.

Hope you enjoyed that. Please post feedback. I get a little lonely sometimes.
Monday, 18 June 2007
InDesign: Create A Table Of Contents
Subscribe to:
Post Comments (Atom)
19 comments:
I would like you to know that I appreciate this helpful tutorial enormously and it will save me a bundle of time! I'm just completing my Ph.D. dissertation that I naively started (and nearly completed) in Word - but it's too long. Word is having nervous breakdowns all over. I tried making a master document and made each chapter a subdocument - more problems than it's worth - so I decided to switch to InDesign. It's going much better - but it is still a fair amount of work; howeve, despite the learning curve at a crucial and nervewracking time, I can at least see my whole document without sudden blank pages as I was getting in Word. So I made a book and am placing each chapter from Word into a new document in InDesign, then saving them as book chapters. The only thing I wasn't certain about was the Table of Contents and the Table of Figures, but you just saved me on that one! Thank you! I have a fair number fo graphics in my dissertation, and that's what was killing Word. In order to remove all the weird settings (inconsistent) in Word I removed all the graphics to Bridge and am re-inserting them. The reason this is worth it is that once I'm done, I can save the whole thing as an e-book to share; I can create a .pdf file to ensure that the printing out of the dissertation will be consistent and beautiful; and I can copy the .pdf files to a cd so I can give them away to those concerned and, regardless of their operating system, they can view it or print it. Thank you so much for your help!
PC
Dear Pakki
Thanks so much for your very kind comments. I've been doing this blog for over a month now and sometimes I feel as if nobody at all is listening.
I'm so glad you found the tutorial useful.
Cheers,
I'm listening! This one too saved my life. But its a story for another day :) Busy:(
Hi Tem
Glad I could help.
Hi there, hope you're still monitoring this discussion.
I have a large InDesign book (300+ pages in 32 files, in a book). Things like numbering, chapters, etc. seem to be working.
When I try to generate a TOC (and I do have the Include Book Documents box selected), I get a title, two blank paragraphs of my first level TOC heading, and NOTHING ELSE. Why?
I've designated paragraph styles consistently throughout the book. InDesign appears to be trawling through the book, doing something, but the generated result is blank.
I even made it very simple (chapter titles only), still nothing.
Any ideas?
Hi Tina
Would you like to send me the files to have a look at?
If so email them to admin@europatraining.co.uk.
Zip them if you can.
Thanks for posting this GREAT tutorial. I am another InDesign fanatic. Even though I have not received a formal training in InDesign, I love it and I use it a lot. When I learned Layout at school we learned QuarkXpress (which I like too), but InDesign is just the way to go when the rest of your workflow is in Adobe. Long story short, I did not know how to use the Table of Contents functions until now. I will have to learn little more about Paragraph Styles now, but hopefully, the Adobe InDesign Help will HELP this time. Thanks again!
Hi Willy,
Thanks a lot for your very nice comment.
Hi Willy,
Thanks a lot for your very nice comment.
Thanks for this very useful tutorial!!! I have a couple of craft books published by others, and am working on learning Indesign to do some self published. My first attempt is selling well, but there is no table of contents due to learning curve. I've been a Word user, not a graphics or publishing sw user for the most part, and while I knew Indesign must have some way to do a TOC, I didn't know how to accomplish this.
One question: How did you setup the paragraph styles???
Ruth
Hey thanks for the great tutorial!
Hi,
I'm having the same issue with empty TOCs (CS3) as Tina. Can anyone suggest a way to make it work?
Thanks,
Stu
thank you for the information. very useful as i have had limited training in Indesign and found the instructions very easy to follow. thanks once again!
OMG! That was AWESOME! My Dad's 500+ book just got so much easier. Thanks soooooooo much!
Thanks a great deal. This tutorial was a great help.
Regards,
Jonathan
This post would be exactly what i need to solve my problem (create a TOC automatically). Unfortunately, the whole teaching thing is based on a file that isn't available anymore, so i'll have to keep searching...
I'm writing this because some other people may stuck with the same problem.
THANKS A LOT!
I've been looking for something as easy to understand as your excellent tutorial for a long time.
You've done a great job!!
Hi,
I produce a travel/tourism magazine in the South of Spain and, due to ad sales, the pages can sometimes be swapped around a LOT.
Our 'manual' contents page has often been wrong because of these changes.
Your tutorial will mean a lot less time playing around with the contents page and a lot fewer embarrassed faces post printing.
THANK YOU!!!!!
Awesome awesome awesome! I probably could have figured this out myself if I had a manual, a sherpa and 6 months!!! Thanks much.
Question: I did go through all the steps and even applied styles to the TOC elements but can't seem to figure out how to right justify the page numbers with automatic rule periods (line leading from TOC titles across the page to the corresponding page number to keep visual alignment)
Thanks again!
Post a Comment