Adobe FrameMaker: Including chapter numbers in a table of contents
by Barb Binder, Adobe Certified Instructor on FrameMaker
Updated: May 23, 2020
From a recent Rocky Mountain Training FrameMaker student:
Hope you and your classes are going well. I have a quick question that I was hoping you could help me with: I am making a table of contents (TOC) for my book, but when I create the TOC, everything looks fine, except I lose the Chapter #’s. For example, it will just have the chapter title like “How to cook an egg” vs. what I’m looking for: “Chapter 1 How to cook an egg.” This is only in the TOC, the chapter titles are just fine in the individual files. Any help would be appreciated 🙂
This is an easy one to remedy. Remember that the generated files (i.e., TOC or index) store their structure information on the reference pages. One quick addition to the TOC reference page and you will be good to go. Here are the steps:
- Open the table of contents file. In this example, the three chapter titles are missing their chapter numbers.
- View > Reference pages.
- Navigate to the TOC reference page.
- Locate the paragraph that controls the chapter titles. In this example, I called my titles ChapterTitle in the source documents, so the tag I’m looking for is ChapterTitleTOC.
TIP Click each building block until you find the one tagged TitleTOC or ChapterTitleTOC, which represents the chapter titles from the source documents. The tag name will appear in the lower left corner of the status bar.
- Add the words Chapter <$Chapnum>: and a space in front of the appropriate <$paratext> building block
- View > Body pages.
- File > Save.
- Update your book.
When you update your book, FrameMaker reads the new instructions on the reference page, and adds the word Chapter, the chapter number and the punctuation/spacing in front of the original chapter titles.
More posts on using generated files in FrameMaker
Adobe FrameMaker: What to know about working with generated files
Adobe FrameMaker: Removing bold from page numbers in a table of contents