Skip to main content
Participating Frequently
January 12, 2023
Answered

Include only some pages in table of contents

  • January 12, 2023
  • 3 replies
  • 1924 views

Hello

I'm currently working on a manual in which I need some sub-table of contents. I.e. I have a main one that shows where each main section is and then for each sub-section, I need one that only shows that sub-section.

 

Is there any way to make an automatic table of contents only include certain pages?

It is not possible to create separate paragraph styles for the different sections for this project though I am aware that would be an easy (and maybe the only) solution.

This topic has been closed for replies.
Correct answer Willi Adelberger

Work with separate INDD files in an INDB Book file.

Make for each chapter INDD a toc and a separate INDD for the whole book.

3 replies

Barb Binder
Community Expert
Community Expert
January 12, 2023

So the section names are Introduction, Setup, Wheels and Seats? And the subsections under Wheels are Wheel Type 1 Wheel Type 2 and Wheel Type 3? 

 

Main TOC

Introduction

Setup

Wheels

  Wheel Type 1

  Wheel Type 2

  Wheel Type 3

Seats

  Seat Type 1

  Seat Type 2

  Seat Type 3

 

At the beginning of the wheel section, just want the wheel types and not the seat types? If that is correct, then @Willi Adelberger's is also correct. Divide each of the sections into their own InDesign document. You'll be able to generate a table of contents for each individual section that will only pick up the wheels or the seats because they are in their own file. Then create a book and add all of the sections into the book and generate one table of contents for the entire book. You cannot exclude pages from the table of contents unless it's by using a different paragraph style. 

 

~Barb

~Barb at Rocky Mountain Training
Participating Frequently
January 12, 2023

Yes that is right, thank you for your answer 🙂

FRIdNGE
Inspiring
January 12, 2023

Just to be sure: have you understood what I wrote in my previous post?

 

(^/)

Barb Binder
Community Expert
Community Expert
January 12, 2023

Hi @Zebrakatten:

 

You can have more that one TOC in a file—you just have to save a TOC preset for each.

 

I'm trying to visualize your specific scenario. Do you have a main table of contents in the front of the document, and then a mini table of contents in front of each section/chapter?

 

~Barb

~Barb at Rocky Mountain Training
Participating Frequently
January 12, 2023

Hi Barb

Yes I've found out how to make more than one, the specific issue is to make all except the first one only include some pages.

 

Yes, I have a main TOC at the start and then mini TOCs in front of each section. 
So the main may look like ex.:
Introduction - 1
Setup - 2
Wheels - 3
Seats - 8

And a sub could be
Wheel type 1 - 3
Wheel type 2 - 4
Wheel type 3 - 6

And then I would like the "wheels" TOC not to include the headlines from "seat" or any that may appear later in the document.

James Gifford—NitroPress
Legend
January 12, 2023

The simplest, although not automatic method for this, given the other restrictions, is to edit the TOCs after generation. In each subsidiary TOC, generate/update, and then delete the entry lines you don't want in that section.

 

Not elegant, but without being able to assign different paragraph styles, the TOC function can only include or not include a style, not differentiate between the same style in different locations.

 

There might be another approach in applying Character Styles to the headings in each section — null styles that make no visible changes — and then using those to control display in each section. But I'm having trouble thinking that through, along the lines of using 'display: none' in HTML/CSS. I don't think a style can be set to not display, as such in ID... but it might be the start of a working approach.

 

Willi Adelberger
Community Expert
Willi AdelbergerCommunity ExpertCorrect answer
Community Expert
January 12, 2023

Work with separate INDD files in an INDB Book file.

Make for each chapter INDD a toc and a separate INDD for the whole book.

Participating Frequently
January 12, 2023

Thank you for your answer, I will look at using this method from now on, it seems to work well.