See how to embed TOC’s in a document by using cross-reference or as a text inset in Adobe FrameMaker.
If you want a small table of contents embedded at the beginning of the source document instead of in a file of its own, you can set up the table of contents with cross-references. A special cross-reference element should already be defined for structured documents.
FrameMaker does not automatically maintain this type of table of contents. If you change the order of references or delete a heading while editing the document, you’ll need to rearrange the entries or delete an entry in the table of contents yourself.
You can also generate a separate table of contents and then import the generated file by reference at the beginning of the source document. In this case, the text inset with the table of contents is automatically updated when the table of contents changes.
To embed a TOC in a document with cross-references:
Create
a cross-reference style that formats text the way you want the table
of contents entries to look. Typically, this style would contain
the <$paratext>
and <$pagenum>
building
blocks.
At the start of the document, set up a cross-reference to each paragraph you want to appear in the table of contents. Use the cross-reference style you created in the previous step.
For each item you want to appear in the table of contents, insert a cross-reference element. The document may also have paragraph elements defined for formatting. See your application developer for information.
To embed a TOC in a document as a text inset:
Generate a table of contents.
Import the table of contents into a document.
To maintain a TOC embedded in a document, do the following:
If you change the order of paragraphs or source elements while editing the document, rearrange the cross-references to be in the same order. Then update the cross-references.
If you delete a paragraph or source element, delete the cross-reference to it.