|See the FrameMaker resource page for additional study materials.||Got comments or questions about FrameMaker? Send them to the class in the FrameMaker workshop area of the Print Documentation Chatroom|
The following FrameMaker tutorial shows you how to generate a table of contents, customize the formatting of the contents page, and update the table of contents after changes. If you see any errors or think we should have included other tasks, let us know! Subsequent lessons will focus on templates, tables, tags, graphics, cross-references, book building, variable text, and the like. These tutorials only get you started; if you have more in-depth needs, see the Adobe FrameMaker User Guide or Adobe FrameMaker Classroom in a Book. (This tutorial is provided for advanced documentation students on a free, as-is basis, without guarantee of accuracy.)
This tutorial is based on FrameMaker version 5.5 for Windows. You may see some minor differences if you are using a different version.
Note: For the sake of brevity, we will use an abbreviated style for menu commands throughout this lesson. For example, "Choose File > New" means "Choose New from the File menu".
First, open the sample file and save it to your local directory:
- Download the file: example.fm.
- Start FrameMaker.
- Open example.fm.
Note: If you get a message about unavailable fonts, click OK.
- From the View menu, turn on Borders, Text Symbols, and Rulers.
- Save the file to your local directory.
Tables of contents are based on the logical hierarchy of headings in a document. However, the text in our document is still all body text. Therefore, we will need to apply some paragraph tags to create headings. We will use the paragraph tags included in this document.
- Open the Paragraph Catalog by clicking on the in the top right corner of the document window.
- Apply the paragraph tag Title to the first paragraph. (Click anywhere in the paragraph and select Title from the paragraph catalog.)
- On the first page, find the paragraph, "General Guidelines for Headings" and make it Heading1.
- Skip down a paragraph and find the paragraph "Guideline 1". Make this paragraph Heading2. Do the same for "Guideline 2".
- Skip to the next page, find the paragraph, "Headings: Specific Format and Style", and make it Heading1.
- Find the paragraphs, "First-Level Headings", "Second-Level Headings", and "Third-Level Headings" and make them all Heading2.
- Finally, find the paragraph, "Designing Your Own Headings" and make it Heading1.
Now generate a table of contents:
- Choose File > Generate/Book.
- In the Generate/Book dialog box, select Table of Contents from the List option and click Generate. The Set Up Table of Contents dialog box displays a list of the paragraphs tags which will be included in the table of contents. You can include any tags you like, but you'll typically use just the first two or three heading levels.
- Make sure Heading1 and Heading 2 are in the Include list and click Generate. FrameMaker generates your table of contents in a new file called headingsTOC.fm. (The name of the original file plus the suffix "TOC".)
The table of contents still needs plenty of formatting, but we'll get to that in the next section.
- Save the source document and the TOC.
Our new table of contents contains all the information we want it to, but it's not very usable in the current format. Now we will give it some formatting to make it more readable. The formatting of a TOC includes the:
Place the insertion point in one of the paragraphs in the TOC. Notice that the paragraph tags have names based on their names in the source document. This will help us when we change the formatting.
To change the paragraph formats in the TOC:
- Open the Paragraph Designer. (Ctrl+M)
- Place the insertion point in the first paragraph. This paragraph is called Heading1TOC and contains the text "General Guidelines for Headings 1".
- In the Paragraph Designer, on the Default Font page, change the Size: to 14 pt and click Update All. All paragraphs tagged Heading1TOC change to 14 pt.
- On the Basic page, change the Space Above ¶: to 17.0 pt and click Update All.
- Now, place the insertion point in the second paragraph. This paragraph is called Heading2TOC and contains the text "Guideline 1 1".
- On the Basic page, change the First and Left Indents to 0.5" and click Update All.
- Save the document.
Now that the text and indents are correct, let's right-align the page numbers and include dot leaders. Creating tabs is a two-part process. First, add a tab stop to the paragraph. Then, press the Tab key to move the page number to the desired tab stop.
To add tabs and tab leaders:
These changes we made affect the paragraph tags and are now part of this document file. Now, whenever we update the table of contents, it will keep its appearance. The tab symbols that we typed between the text and the page number, however, are not part of the paragraph tag. If we want FrameMaker to automatically insert our tab symbols after a TOC update, we need to modify the reference pages.
- Place the insertion point in the first paragraph.
- To insert a right tab and leader:
- On the Basic page, click Edit.
- Enter 6.5" for New Position.
- Select Right for Alignment.
- Select a tab leader (Whichever one you like).
- Click Continue and then Update All.
- Repeat this procedure to add a right tab to the tag Heading2TOC.
- Make sure the tab symbols are visible. (View > Text Symbols should have a check mark beside it.)
- Place the insertion point in the first paragraph between the word "Headings" and the page number "1" and press the Tab key. The page number should now be right-aligned with a dot leader going from the text to the page number.
- Insert a tab between the text and page number for each remaining paragraph.
While we can make changes to the paragraph tags on the body pages, we must go to the reference pages to make changes to the automatically generated text in the TOC. To modify the reference pages:
- Choose View > Reference Pages. There are pages for "Reference", "HTML", "Headings" and "TOC".
- Page down until you get to the TOC Reference Page. It is typically the last page. (Look for "TOC (7 of 7)" in the status bar at the bottom center of the document window.)
- There should be two or three lines of text and codes that look something like this:
- Place the insertion point in the second paragraph between the <$paratext> and the <$pagenum> building blocks. This paragraph should be Heading2TOC.
- Delete the space and press the Tab key.
- Repeat the preceding two steps for Heading1TOC. Now, when we update the TOC, it will be formatted correctly.
- Choose View > Body Pages to return to the body pages.
- Save your document.
Finally, insert a title for the table of contents:
- Place the insertion point anywhere in the first paragraph.
- Press the Home key, or place the insertion point at the very beginning of the first line.
- Type the word "Contents" and press Enter.
- Go back to the first paragraph.
- Apply the paragraph tag Title to this paragraph.
- Save your document.
Now, change the source document slightly and update the table of contents:
- Go to the source document (headings.fm).
- In the first paragraph, place the insertion point immediately before the word "Headings", and type The Importance of.
- Choose File > generate/Book.
- Use the same procedure as before: Make sure Heading1 and Heading2 are still in the Include Paragraphs Tagged: column, and click Generate. FrameMaker updates your table of contents to reflect the change.
In this tutorial, you learned how to generate a table of contents, customize the formatting of the contents page, and update the table of contents after changes. This will pave the way for future lessons, such as Indexing and Book-Building.
If you've completed this tutorial and are taking an online course in print documentation, go to the FrameMaker workshop area of the Print Documentation Chatroom and let the rest of the class know how you did on this tutorial.
Information and programs provided by email@example.com.