Know what is a generate file in FrameMaker, types of lists that you can generate from FrameMaker.
A generated file is a file FrameMaker creates by extracting paragraphs or marker text from a single source document or from several documents in a book. Each time a generated file is updated, all paragraphs and marker text is updated with the current text from the source documents. This way, FrameMaker keeps generated files, such as tables of contents and indexes current and accurate.
You can generate several types of lists and indexes in addition to a table of contents and standard index. For example, you can generate lists and indexes that contain text from paragraphs or from markers that you inserted in text. The result may be a table of contents based on heading paragraphs, a list of illustrations based on figure titles, or an index based on special author markers. Most lists and indexes fall into three categories: lists of paragraphs (or elements in structured documents), lists of markers, and indexes of markers. A fourth category, lists, and indexes of references, is used less often.
Learn about Table of contents and various lists in FrameMaker.
In this topic:
In Adobe FrameMaker, tables of contents (TOCs), lists of figures, and other such lists are generated from the text of specified paragraphs in a set of documents. An index is generated from markers you insert in documents.
A table of contents or other generated list is based on the content of its source. The source can be either a single document or a group of documents in a book. In most cases, you must prepare the source documents to get the results you want.
Lists of paragraphs contain the text of specified paragraphs (those with the tags you specify), with one entry per paragraph (or elements in structured documents). You can generate the following lists of paragraphs (or elements in structured documents):
Tables of contents, which contain headings of specified levels, listed in the order in which they occur in the source documents
Lists of figures, tables, or paragraphs (or elements), which contain figure captions, table titles, or the text of other specified paragraphs, listed in the order they occur in the source documents
Alphabetical lists of paragraphs (or elements), which contain the same information as the other lists but present them in alphabetical order
Lists of markers contain entries corresponding to the markers inserted on body pages in the source document. The markers are manually inserted on body pages in the source document (normally as marker elements in structured documents), and the marker text appears in the generated list. For example, you could create a list of reviewers’ comments on a draft by generating a list of markers of type Comment. In a standard list of markers, entries appear in the order that they occur in the source document or book. You can also generate alphabetical lists of markers.
Indexes of markers include standard indexes, author and subject indexes, and indexes of other types of markers. The markers are manually inserted on body pages in the source document, and the marker text appears in the index. You can use syntax (building blocks) in the marker text to specify index levels and special page numbering, sorting, and formatting. Entries are sorted alphabetically, and entries with the same text are merged into a single entry with several page references.
Lists and indexes of references help you track special categories of information. You can generate lists and indexes of condition tags, external cross-references, unresolved cross-references, fonts, text insets, unresolved text insets, and imported graphics.
See how to generate a table of contents or a list of book and TOC for a single document. Know how to generate various other lists in structured documents and add a title or other static text in FrameMaker.
Before you generate a table of contents or other paragraph list, do the following to avoid problems in generated lists:
Make sure that tags and elements are applied correctly and consistently. For example, use Heading1 for all first-level headings only.
Make each item you want to include in the list a single paragraph. For example, you won’t get the desired results if a heading is two lines, with each line in a separate paragraph.
Validate structured documents to make sure that they do not have structure errors.
Open the book window and select the file below where you want the generated file to appear.
Do one of the following:
Choose
.Choose
, and then choose a type of list from the menuThe items you see in the dialog box depend on the type of list you’re generating.
Enter a suffix or keep the default one. The suffix indicates the type of generated file. For example, TOC is the usual suffix for a table of contents.
In the set up dialog box, Add File drop-down list, specify whether the generated list will appear before or after the current document.
Move items to the Include scroll list. To move an item between scroll lists, select the item and click an arrow, or double-click the item. To move all items from one scroll list to the other, Shift‑click an arrow.
To have each entry in the generated list be linked to its source, select Create Hypertext Links. These links let you jump to the source of an entry by clicking the entry.
Click OK and then click Update. FrameMaker generates the list. You can view the generated list by double-clicking its name in the book window.
Save the generated list in the same folder as the source document or book. If you want to rename the generated file, use the book window to do so—FrameMaker will rename it on the disk and update all references.
The first time you generate a list (if you don’t use a template), the list uses the page layout (master pages) of the first non-generated document in the book, and all entries look the same.
If the list already exists in the source document’s folder when you save it, save it in the same folder and don’t change the filename. That way, the list’s formatting is used when you generate the list again. Otherwise, formatting changes won’t be retained when you update the list.
Save any open files in the book. Open files are updated only in your computer’s memory and not on the disk. If a file isn’t open, the changes are made on the disk.
Open the document wherein you want to insert the TOC or list.
In the document window, do one of the following:
Choose
.Choose
, and then choose a type of list from the menuWhen prompted, specify whether you want to create the generated file as a standalone document or add it to a book.
If you choose Yes to create a standalone document, FrameMaker will create a generated list in the original document’s folder.
If you choose No, FrameMaker adds the generated file to an open book, or creates a new book if necessary.
The set up dialog box for the TOC or the chosen list is displayed. Specify the following details in the dialog box:
Depending on your selection in Step 3, do one of the following:
If you are creating a standalone list (when the choice is Yes in Step 3), click OK. FrameMaker generates and displays the list.
If you are adding the list to a book (when the choice is No in Step 3), click OK, and then click Update. If a new book is created, choose , and then save the book.
Save the generated list in the same folder as the source document or book.
The first time you generate a list (if you don’t use a template), the list uses the page layout (master pages) of the source document or of the first non-generated document in the book, and all entries look the same. For information on changing the format of a list—changes that won’t be lost when you regenerate the list.
Save the list in the same folder as the source document or book.
Although the steps for generating TOCs and lists in structured documents are the same as for unstructured documents, consider the following additional points:
A generated list is initially unstructured, but you can add structure to it. If a generated list is structured, you’ll lose the structure every time you regenerate it. Do not add structure to a list until it is in its final version.
The items in the scroll lists vary depending on the type of list you’re gathering. For example, the element and paragraph tags in the source document appear for a table of contents. (Paragraph tags appear after element tags and are preceded by a paragraph symbol (¶).) For a list of references, the available reference types appear.
Some element tags may have context labels that provide information about the element’s location in the structure. For example, if Section elements can be nested within other Section elements, context labels might identify whether the elements are first-, second-, or third-level sections.
If an element uses context labels, a <no label> entry also appears in the scroll list for occurrences not described by the labels. In the example above, Section (<no label>) represents Section elements that are at a fourth level or lower in the document.
If an element has more than one paragraph, only text from the first paragraph will appear in the generated list. For example, the first paragraph within a Section element—usually its Head—will appear.
The first time you generate a list (if you don’t use a template), it uses the page layout (master pages) of the first non-generated document in the book, and all entries look the same. The list also has element definitions from the source document.
If you want to add a title or other unchanging text in your list or index, add it after you generate the list or index the first time.
You can also add static text to a template and then use the template to format a list or index.
Type the title before the first entry on a body page.
Use the Paragraph Catalog to give the text a special paragraph format for static text; or create a new paragraph format for the title.
If you create a new paragraph tag, make sure it does not end with the suffix assigned when you created the generated file, such as IX for a standard index or TOC for a table of contents. When you generate the index again, FrameMaker replaces only the paragraphs that have tags ending with the suffix.
Know what a mini TOC is in FrameMaker. Learn how to create, update or delete a mini TOC in FrameMaker.
In this topic:
FrameMaker allows you to add a miniature table of contents (mini TOC) at a document level. This feature is currently supported for unstructured documents only. A mini TOC improves the readability and eases the navigation in a long document. The mini TOC feature eliminates the old manual technique of adding cross-references of each heading in your document to mimic a mini TOC. With this feature you can automatically create, sort, and insert a mini TOC at a specified location in your document.
You can change the formatting and style of a mini TOC in the same way as you would do for a regular TOC. For more information about formatting the mini TOC, see Update mini TOC. Once a mini TOC is included in a document, you can publish it in all supported output formats.
If you are working in a right-to-left (RTL) document, then the direction of the mini TOC is based on the direction of the document (
). This implies that even if all the content in a document is based in a left-to-right (LTR) language, but the direction of the document is RTL, the direction of the mini TOC will also be RTL.Open the document in which you want to insert a mini TOC.
Click where you want to insert the mini TOC.
Choose
.Move paragraph tags to the Include scroll list. To move an item between scroll lists, select the item and click an arrow, or double-click the item. To move all items from one scroll list to the other, Shift-click an arrow.
To have each entry in the generated list be linked to its source, select Create Hypertext Links. These links let you jump to the source of an entry by clicking the entry.
Click Set.
A new mini TOC is created and placed in your document. Once you save the document, FrameMaker creates new paragraph tags with suffix MTOC for all paragraph tags that were used to make up the mini TOC. Also, a new reference page (MTOC) is added in the document.
If you update a heading or change the formatting of the mini TOC from the reference page, the change is not reflected until you save or print the document, or manually update the mini TOC.
Make changes to the headings in your document.
Right-click on the mini TOC and select Update Mini TOC from the context menu.
Click OK on the alert message.
If you want to update mini TOCs in all documents within a book, you can do so with a single click.
Open the book window and select the book file.
Select the Mini TOC option.
Click Update.
With this single book update operation, mini TOCs present in all document within the book are updated.
You can also update the look and feel of the mini TOC by changing the paragraph formats used to generate the mini TOC. You can simply open the paragraph tag (with MTOC suffix) in the paragraph designer, make the required changes, and update the paragraph tag definition. You can also use the reference page (MTOC) to make the required changes.
If you do not want the page numbers in the mini TOC, then you can use any one of the following two approaches:
Remove page numbers from all output formats
Open the reference
page and remove all occurrences of <$pagenum>
variable
from the MTOC page. Once you have removed the variable, save the
document and update the mini TOC. The page numbers would not be
shown in the source document as well as in any published output.
Remove page numbers from output formats supported by Publish pod
Create a new character format and apply it on all
occurrences of <$pagenum>
variable in the MTOC
page. Open the Publish Settings (in ),
open the Style Mapping tab, and select the
character format from the list. Enable the Exclude From Output option for
the character format that you have applied on the <$pagenum>
variable.
The page numbers would be visible in the source document, but they
will not be published in any output format supported by the Publish
pod.
For more information about the various output formats supported by Publish pod, see Multichannel publishing.
To delete a mini TOC, right-click on the mini TOC and select Delete Mini TOC from the context menu.
Alternatively, choose
to delete the mini TOC.See how to embed TOC’s in a document by using cross-reference or as a text inset in FrameMaker.
In this topic:
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 format that formats text the way you want the
table of contents entries to look. Typically, this format 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 format 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.
Learn how to update and edit TOCs and lists in FrameMaker, see how to add or remove paragraph tags from a TOC, find and update list entries in FrameMaker.
In this topic:
You update entries in a list by editing their corresponding paragraphs or markers in the source document and then regenerating the list. If you edit entries by typing directly in the list, your changes will disappear when you regenerate it.
For example, if you fix a typing error directly in a table of contents, that error will reemerge the next time you generate because it still exists in the source paragraph. To permanently fix an error, you must correct it by changing the paragraph or marker text in the source document and then regenerating the list.
To update a TOC or list that is part of a book:
Make changes to the source documents as needed.
In the book window, choose
.Move the lists you want to update to the Generate scroll list, make sure Generate Table Of Contents, Lists, and Indexes is selected.
Click Update.
Select the generated file (such as the table of contents) in the book window.
Choose Set Up List of type.
orMove items between the list boxes as desired.
Click Set.
Click Update.
To update a TOC or list that is a stand-alone document:
Make changes to the source document as needed.
In the source document, choose Yes.
. When prompted to create a standalone document, chooseMove items between the list boxes as desired.
Click Set.
When you need to revise an entry, you trace the entry back to the corresponding paragraph or element in the source document.
If you did not select Create Hypertext Links when you generated the list or index, select it now and regenerate the list.
In the generated list, Alt-Control-click an entry in a list.
FrameMaker opens the source document to the page that contains the corresponding paragraph and selects it. If the element is a marker, the marker text appears in the Marker pod.
To find and select a paragraph by using Find/Change:
If you’re revising a marker element in a structured document, choose
so you can see the marker text.In the source document (not in the generated list), choose
.Choose Paragraph Tag (unstructured documents) or Element (structured documents) from the Find pop-up menu. Enter the tag or element you want to find, and then click Find.
To edit and delete list entries:
In an unstructured document, edit or delete the paragraph text.
In a structured document, select the element, and do either of the following:
Change the text in the Marker pod, and click Edit Marker.
Press Delete.