| Barry MacDonnell's
Toolbox for WordPerfect
Macros, tips, and
templates for Corel® WordPerfect® for Windows®
| Page updated Mar 13, 2017|
Main tips page | Browse tip
How to create a
Related pages -
• To create a List see here.
• To create an Index or a Glossary see here.
• To create a Table of Authorities see Corel's support database article #3524 here and also this post at WordPerfect Universe (which references CiteLink and FullAuthority). [Update: See Corel's Perfect Authority for sale at http://www.corel.com (also included in the Legal Edition). There is a tutorial on using Perfect Authority here.]
"History records that the Table of Contents was invented by Quintus Valerius Soranus before 82 bce."
[- The Book Designer, Parts of a Book]
|The Table of Contents feature in WordPerfect
• How to create a Table of Contents (Overview and Method)
• Some tips for the Table of Contents feature
• How to "mark" a custom text style for automatic inclusion
of its text in a Table of Contents
How to create a Table of Contents (TOC)
☼ WordPerfect needs to know what to include in a TOC.
Before you can have
WordPerfect automatically create a Table of Contents (TOC), the words
or phrases you want to be included in the TOC must be marked with
special format codes. Then WordPerfect can find them and arrange them
in a TOC.
☼ Some things can be automatically included in a TOC.
WordPerfect's five standard paragraph Heading
styles -- i.e., Heading 1 through
Heading 5, accessed via a drop list on the Text property bar (or
via the Format, Styles
menu) -- will automatically include their text as individual entries in the TOC.
For example, using the Heading 2
paragraph style on a selected word or short phrase (then pressing Enter) will cause that word or phrase to be
formatted and automatically included in the TOC as a "level 2" (i.e., indented) entry when the TOC is
defined and generated, as explained in the Method section below.
This is very handy and it's a major reason to use these "factory shipped" styles (or customized versions of them) when you need to introduce sections of a document (e.g., Chapters, Sections, Appendices, etc.) with text headings.
The standard Heading styles can also be edited very easily to change their
formatting to customize them:
Once such a style have been applied in a document, double-click the [Style] code in Reveal Codes. The Styles
Editor that appears has a menu and toolbar which you can use to add
or change format codes to the Contents pane in the Styles Editor.
[Note: Be sure not to delete any [Mrk Txt T.O.C.] codes from the Contents pane. This code is responsible for including the text as an entry in the final TOC.]
made this way will be stored in the current document (only) and apply to all
instances of the text in the document to which that style was
For more on this topic (saving your changes, etc.), see the Tips section on the Styles page.
☼ Some things need to be manually marked before they can be included in a TOC.
If you have items that you want included in a TOC, and they were not formatted with one of the five standard Heading styles -
(a) you can go through the document and mark each item manually with a simple select-and-click procedure, as explained in Step 1 below;
- or -
(b) you can optionally use your own customized text style (see below) and simply apply that style to any text you want included in a TOC;
- or -
(c) you can do both. Then simply follow the Steps 2 and 3 below to define and generate the TOC.
The following 3 steps are quick and easy to do --
in fact, they are easier to do than to describe. Many of the extra
annotations, tips, etc., are primarily for reference and to help you
fix TOC format issues.
(a) Select the text you want included as an item in the TOC. Use your mouse or keyboard, as you prefer.
Notes and tips
¤ Generally it is better not to include any format codes or styles from the document's text areas that lie within the boundaries of a manual selection, unless you actually want them to appear in the TOC entry. You can check Reveal Codes while you make a selection.
¤ Sometimes it is more accurate to use the keyboard (e.g., Shift+arrow keys) when selecting text embedded in several format codes. (Such codes can be removed from the TOC entries later; see the tip below for more about such extraneous formatting. But it will save time and effort if you omit them from the selection in the first place.)
¤ Remember: The Heading 1 through Heading 5 styles are already marked for inclusion in the TOC, so don't mark them again (Step 1b) since the internal marking will take precedence anyway. (This caveat also applies to any custom styles and outline styles you created and marked using the methods below.)
(b) Mark the text. Click on Tools, Reference, Table of Contents. The Reference Tools dialog appears:
Click on the [Mark 1] button to mark it as a top-level TOC entry (e.g., all your Heading 1's), the [Mark 2] button to mark it as a second-level TOC entry (e.g., all your Heading 2's), and so forth. This dialog will remain on screen until dismissed:
Tip: You can use small macros to automate marking the text.
See Footnote 1 below.
(c) Repeat (a) amd (b) as needed.
Tip: It you need to mark more items later, just repeat Step 1. Then repeat Step 2 (if a TOC does not yet exist) and/or Step 3 (if a TOC exists so as to regenerate it and display the changes).
Step 2: Define the TOC -- i.e., tell WordPerfect where to place the TOC, and how many levels to use. (A level defines how many tab stops to indent the entry.)
(a) Place your cursor where you want the TOC to appear in the document.
¤ Typical layout: You could create a blank page at or near the top of the document (Ctrl+Enter will insert a hard page break) with a title (e.g., "Table of Contents"); then insert a couple of hard returns (with the Enter key) to provide a separation between the title and the TOC. Place your cursor where the TOC entries should begin.
If you wish to apply formatting to the title (e.g., center justification), then -
Either method should help prevent a conflict with the TOC's formatting (which is controlled by its own internal style).
(a) as long as there is at least one hard return ([HRt]) following the title, select (double-click) just the title text and apply the formatting to the selection; this will "bracket" the text with its own formatting codes (note that other formatting besides centering, such as bold text or large relative size, can be applied the same way);
- or for centering -
(b) use Format, Line, Center to add a "hard center on margin" code, which will center the line without affecting any new or existing text below the selection.
¤ Custom layout: You can create a multi-column table and place your cursor inside a cell; this will give you other formatting options later (cell borders and fills, additional text, etc.). [See also some related post-TOC-generation tips below.]
(b) Click on Tools, Reference, Table of Contents (tab) and then click the [Define] button (see image in Step 1b above).
The Define Table of Contents dialog appears:
Note: If you cannot see a [Define] button near the bottom right side of the Reference Tools dialog, see Footnote 2 below.
(c) Choose the number of levels that you want in the TOC:
At the top of the Define Table of Contents dialog, type a number in the "Number of levels (1-5" field or click on a spinner arrow in that field to set the number.
If you used the Heading 1 and Heading 2 styles in the document, you could set the number to 2.
Typically, you might set more than one level (the maximum is 5 levels). Setting extra levels, even if you don't need them, is harmless -- although it means that you probably will see a lot of "stepped" entries in the TOC if you use all 5 Heading styles and/or you manually mark items using more than one or two TOC levels (in Step 1(b)).
Note that you can always change the settings in this dialog later, as explained in Step 2(d) below.
¤ You can set the Position of the page numbering (i.e., the numbering format on the TOC page) relative to the text entries for each level using the fields adjacent to each Level's style. [The default is to use dot leaders with flush-right page numbers, but you can use other numbering positions -- or no numbering at all, in which case the TOC's text entries will be hyperlinked to the relevant pages.]
¤ The [Styles] button lets you change the TOC's text format for each level in the TOC area (not in the body text area) to some other pre-existing custom paragraph style (see the Advanced Topic#1 tip below).
¤ Use the custom [Page Numbering] button to change the numbering format for any of the levels.
A tip from WordPerfect X6's Help:
If you are using secondary, chapter, volume, and total page numbers, you can put them together in the table of contents, for example, “Chapter 3, Page 98.”
You can type text and punctuation between the page number codes, for example, [Page #] of [Tot Pages #].
¤ The checkbox at the bottom, "Display last level in wrapped format," will wrap any long entries in the last level used.
(d) Click OK.
In Reveal Codes, WordPerfect will insert a [Def Mark] code at the cursor location -- that is, where the TOC will be generated -- and a temporary text marker ("<<Table of Contents will generate here>>") bracketed by a pair of [Gen Txt] codes, like this:
[Def Mark][Gen Txt]<<Table of Contents will generate here>>[Gen Txt]
Tip: You can double-click the [Def Mark] code to bring up the Define Table of Contents dialog if you need to change things in the TOC definition.
Step 3: Generate the TOC.
(a) Click the Generate button at the bottom of the Reference Tools dialog. (See above). [This function is also on the Tools, Reference menu.]
In the Generate dialog that appears, you are given two choices: Save Subdocuments, and Build hyperlinks.
The first option is useful if you are working in a Master document which has one or more subdocuments (for more on this topic see here).
The second option is useful if you have (or need to have) hypertext links in the document -- such as those also applied to the TOC page numbers.
(b) Click your choice of options. Most often you can just click OK to accept the default settings (i.e., both options enabled).
(c) Click Close on the next dialog to return to the main document.
The TOC should now display all entries that were marked in the document in Step 1.
(Strongly recommended:) See the Tips section below for more on re-generating the TOC, editing and formatting the TOC, generating multiple TOCs in the same document, etc.
Tips for the Table of Contents feature
• If you add or remove marked text (or the marking codes), or you add or remove other material in the document that might cause changes in pagination, be sure to generate the document again.
You can do this with either -
- the Tools, Reference menu ("Generate" choice), or
- the Generate button at the bottom of the Tools, Reference dialog, or
- a shortcut key (in Windows keyboards it's Ctrl+F9. In the DOS 6.1 keyboard it's Alt+Shft+F5)
• See the cautionary tip (below) about using the "Auto generate" checkbox option. [There are four reasons why you might NOT want to use it.]
• See the next tips (and cautions) about editing and formatting the TOC itself.
☼ Custom TOC layouts - Editing and formatting the Table of Contents.
Tips on formatting the TOC before you create it:
☼ You can, for example, create a multi-column table first, and then place your cursor inside a cell in Step 2 above; this will give you other formatting options later (cell borders and fills, additional text, etc.).
☼ A TOC does not need to be on a separate page. You can put it on a page with other text or even inside a graphic box, which can be re-sized and/or dragged into another location. [Some newsletters put the box inside (or overlapping) a column on page 1.] Just create the box: Insert, Graphics/Pictures, Text Box; then drag it to a new position if desired; then click inside it to position the cursor in the box; then define the TOC (Step 2) and generate it (Step 3). The box itself can be further formatted by clicking outside it then right-clicking directly on it to get a list of options.
Tips on formatting the TOC after you create it (Steps 1-3 above):
[You might want to back up your document before making changes to a TOC's existing format.]
☼ A generated TOC (i.e., the entries and page numbers) can be edited and formatted just like any other block of text.
TOC material is just ordinary paragraph-style formatted text between the special [Def Mark][Gen Txt] ... [Gen Txt] codes you can see in Reveal Codes (see Step 2(d) above).
For example, you can -
• add Tabs to certain entries; or
• select the entire TOC and set new paragraph spacing with Format, Paragraph, Format, Spacing between paragraphs; or
• remove any unwanted format attributes, line breaks, etc.
Each time you regenerate a Table of Contents (or List), WordPerfect replaces the existing entries -- i.e., everything between the paired [Gen Txt] codes.
Therefore, it might be best to refrain from adding or changing formatting to the text area inside (i.e., between) these paired TOC (or List) codes until the final draft of the document. [However, see Footnote 3 for more information -- and an example of how to format a TOC into two columns that survives multiple regenerations of the TOC during editing.]
Keeping this in mind, here are some more tips.
☼ Use WordPerfect table formatting on the TOC.
You could also select the TOC and click Table, Create (be sure to use Paragraphs as the Text Delimiter). WordPerfect will create a table using each TOC entry as a separate row. You can then insert other coulms or rows (right-click in the table and choose Insert) for other purposes, remove borders, etc.
[For several tips on using WordPerfect tables in a document see here.]
☼ Use WordPerfect table formatting to alphabetically sort a second TOC.
You can copy a newly TOC (be sure to include the [DefMark][GenTxt]...[GenTxt] codes that "bracket" the TOC) to another location -- typically on a new page just after the first TOC.
Then, when you generate the document again, both of the TOCs will be generated -- and you can then convert the second one into a table (as described in the above tip). The table can be sorted alphabetically (Tools, Sort, "First cell in a table row") by TOC entry. Obviously, this is best done on the final draft of the document, for the reasons discussed in the important note above.
After sorting the table:
You can remove the table's cell structure (i.e., lines and borders) with a choice on the Table Property Bar: Convert > "Separate text with paragraphs...".
Note that this can also be done from a dialog that pops up when you manually delete the [Tbl Def] code in Reveal Codes for that table.
Either way, this should restore the TOC to its normal formatting.
Be sure to verify the page numbers in each TOC in the final draft. (You can't be too careful.)
☼ Tables can be converted back to normal document text.
☼ You can create multiple versions of a Table of Contents at different locations in the same document, each one relevant just to the adjacent section of the document. (This trick is based on a tip described in a post on WordPerfect Universe.)
 If a TOC has not yet been defined, define it in the document as explained in Step 2 above. [You do not have to generate it at this time (see Step 3) to display all TOC entries, but no harm is done if you do.]
 Open Reveal Codes and look for these two TOC codes:
[Def Mark][Gen Txt].
[Note that the [Gen Txt] code is the first part of a paired code; the second part will appear at the end of the TOC entries after the TOC is generated (see Step 3 above), thereby "bracketing" all the TOC entries.]
 Carefully select the [Def Mark][Gen Txt] codes (using Shift+Arrow is often easier to select codes) and copy them to the Windows clipboard with <Ctrl+c>.
 Navigate to the next place you want a TOC to appear, optionally create a new blank page for that TOC with<Ctrl+Enter>, and paste the codes there with <Ctrl+v>. Repeat pasting these codes into different document locations, as desired.
 Generate the document as explained in Step 3 above to create the various TOCs ... then:
 Edit each TOC's entries to remove unwanted entries from that particular TOC to retain just those that are relevant to that section of the document. [Note that for longer TOCs this can cause changes in subsequent pagination, so you may have to add blank pages (with <Ctrl+Enter>) after the edited TOCs to retain the original "downstream" pagination.]
This completes the process ... except to note that if you re-generate the document (see Step 3 above) to refresh TOCs, an index, various lists, etc., you will need to do the TOC-editing step again. This is because using the Generate button removes all material between the paired [Gen Txt] codes (as explained above). Therefore all edits and changes in formatting to the TOC entries are best done on the final version of the document.
Solution: Extraneous format codes can be deleted later in the generated TOC entry, but such post-TOC editing is subject to the TOC regeneration issue described in the "Editing..." tip above.
(a) use Reveal Codes and make precise body text area selections to exclude any adjacent format codes when manually marking up the items for the TOC;
(b) forego applying formatting attributes (bold, italics, etc.) directly to the text in your document's "headings" and simply apply a standard Heading style to the text (or apply a specially "marked" custom style; see the column on the right). These special styles can internally contain the desired formatting codes for the body text to which the style is applied, along with the necessary special TOC marking codes. When the TOC is generated using such special styles, the formatting is omitted from these TOC entries, leaving just the text in the TOC entries -- normally, the desirable result. (Formatting can be applied to the TOC later, as explained in the "Editing..." tip above.
☼ If you have lots of "non-style" (i.e., plain text) items to mark, you can record your TOC-marking steps to create a macro to mark them more quickly (once they have been selected) for a particular TOC level. Select an item, then use Tools, Macro, Record and click Tools, Reference, Table of Contents, then click [Mark 1] for a top-level entry, [Mark 2] for a second-level entry, etc. Stop recording with the stop button ( ) on the macro toolbar.
☼ Hypertext: When WordPerfect generates a TOC, it creates hyperlinks around the page numbers in the TOC. [This assumes you have enabled the Build hyperlinks option when generating the TOC (Step 3 above).]
¤ Hyperlinks become "active" when you enable Tools, Settings, Environment, Activate Hyperlinks. This setting is stored with the document when it is saved.
¤ See also "Why some hyperlinks can fail to work while inside WordPerfect documents (.WPD, .WPT)".
To make just the TOC headings -- the text entries in the TOC -- into hyperlinks, rather than using hyperlinked page numbers: When you define the TOC (Tools, Reference, Table of Contents, Define) choose "No Numbering" for the Numbering Format for each level of the TOC. All TOC entries will become hyperlinked.
☼ Auto Generate option. Note that the "Auto generate" option at the bottom of the Reference Tools dialog is enabled by default when you first install the program. [This image shows it disabled -- the author's preference:]
However, some users have found that if it is left enabled one or more irritations or problems can occur, such as:
(1) a reminder message will pop up each time the document is saved or printed and has not been re-generated; and/or
(2) the cursor can unexpectantly move to the bottom of the screen; and/or
(3) selected text might not be printed (WP11 and later versions); and/or
(4) printing can sometimes be slowed.
The remedy is the same: Disable the option -- but remember to manually re-generate the document (Tools, Reference, Generate) whenever changes are made to it that might affect any reference tools you have used.
How to "mark" a custom text style for automatic inclusion of its text in a Table of Contents
The information above describes how to manually mark ordinary text so that the text will appear in a Table of Contents (TOC), and also describes the several standard heading styles (Heading 1 ... Heading 5) included with WordPerfect. The five Heading styles automatically mark the text to which they are applied in such a way that the text will be automatically included as an entry in a TOC.
But what about using
custom styles? How can they be
set up to automatically include their text in a Table of Contents?
[Note: For Lists, another Reference tool, and Outlines, which basically are specially numbered styles, see the notes under Step 4 below.]
For those who use styles to format a document's section headings and/or page headings, this is a common question, since these items probably should be included in a TOC, and most people would want them to be included automatically once the style is applied to a heading's text.
For example, one WordPerfect user who was hunting for an answer to this question double-clicked on various standard Heading [Style] codes in Reveal Codes to view their contents and saw a unique code inside each one -- which turns out to be a special code that is used to include, or "mark," these Heading styles for inclusion in a TOC. This prompted the following exchange:
Q: "I notice that inside the Heading 1 through Heading 5 styles the appropriate [Mrk Txt T.O.C.] code is included. How can I create a new style and include this code? The 'Help' suggests that it is possible but the 'How to' doesn't address it."
A: "It's a little tricky, but simple. Here's how:"Step 1.
Either create a new Paragraph heading style or new Character style with Format, Styles, Create; or edit an existing Paragraph or Character style with Format, Styles, <stylename>, Edit.
WordPerfect contains five styles, TableofCont1 ... TableofCont5, that are used to format the generated TOC text area. These are different from the custom heading styles used in the body text area that are being described here, so you should ignore them in Format, Styles. [For more about these special styles and how they can be modified, see the tip below.]
At the bottom of the Styles Editor dialog window that opens be sure to tick (i.e., enable) the two check boxes, "Reveal codes" and "Show 'off codes'".
The first box lets you edit the Contents area by making format codes visible, and is typically enabled by default.
Enabling the second box lets you perform Step 3.
If you are creating a new style, the Contents field will be empty. You should enter the format codes in the Contents field that will be applied to any text when you apply the style to it.
For example: If you want to create a new Character style that will apply bold, small caps formatting to selected body text, and then mark that text for inclusion in your Table of Contents, click on the Styles Editor's Format, Font menu and check (enable) the "Bold" and "Small caps" options, then click OK to return to the Styles Editor and its Contents field. You should see the new codes for [Bold] and [Sm Cap]. [For more information on styles, see here.]
In the Contents field of the Styles Editor, select just the single, long code labeled [Codes to the left are ON, codes to the right are OFF].
An easy way to do this is to put the cursor just in front of this code, hold down the <Shift> key, and press the <Right Arrow> key once.
For most typical heading styles, don't select any formatting (or numbering) codes unless you also want their formatting to be applied to those heading items in the Table of Contents, too.
While this long [Codes to the left...] code is selected (a [Select> code appears just to the left of it) click Tools, Reference, Table of Contents from the Styles Editor menu.
The Reference Tools dialog (or, in earlier versions, a Table of Contents bar) should appear.
On that dialog (or bar) choose one of the TOC levels (e.g., [Mark 2] for a second level TOC entry) and click its button.
Click on [Close] to go back to the Styles Editor.
You should now see a pair of [Mrk Txt T.O.C.] codes appear, bracketing the [Codes to the left...] code, something like this:
[Mrk Txt T.O.C.>[Codes to the left...]<Mrk Txt T.O.C.]
¤ For WordPerfect Outlines: You can use the above method to mark an Outline's levels, too, since they also contain embedded Paragraph styles. (Outlines can be created with Insert, Outline... or even more quickly with the automatic numbering method described here.) In this case you probably want to include the outline item's number in the TOC, so include the [Para Num] code inside the paired TOC codes, using the <Shift+RightArrow> method above.
Shorter blocks of text used for an Outline level (e.g., a section heading) that are marked for inclusion in the TOC might be preferable to several long paragraphs, since all paragraphs of text in that level will show up in the TOC as a single TOC entry. (They are all marked for inclusion using the method above.)
You can easily work around this issue of too-large TOC entries by simply stopping the outline immediately after a short phrase or sentence (i.e., used as the section heading), then indenting the following paragraphs of normal text to match the Outline's indentation, then starting the Outline again for the next numbered item. [See the Outlines page or the automatic numbering page for methods of quickly starting, stopping, or toggling outlines as you type.]
The short phrase or sentence will then show up by itself in the TOC, since the following paragraphs in that Outline level were essentially excluded from that level's style.
¤ For WordPerfect Lists: Each item is (or already should be) marked for inclusion in the List (not in the TOC) and when the List is generated the list item "points" to the page where the item is located -- just like a TOC. Thus you probably would not want every item in the List to appear in a TOC. However, to include a single reference in the TOC to the entire List, use a text phrase to introduce the List (e.g., "List of Figures") and then either apply a standard Heading style to that phrase or apply a custom style to it that was previously internally marked as describe above.
Close the Reference Tools dialog (or, in earlier versions, the TOC bar) if it is open.
Then click OK to dismiss the Styles Editor.
When you are ready to create the TOC see the method above.
• Want to reuse the new style? While editing the same document that contains the new paragraph Heading style that is now marked for the TOC, save (i.e., copy) the style to your default template so that it can be used in any new (blank) document based on the default template: Click Format, Styles, <select the style from the list>, Options, Copy, Default template, OK.
• Want to create a hyperlink back to the Table of Contents, so that users can click on the custom style's text to return to the TOC? Here's how to create such a "reverse link":
First: Be sure to create a bookmark at the top of the Table of Contents area. This is where WordPerfect will return to when the user clicks the custom style. Click on Tools, Bookmark, Create, and give the bookmark a name such as TOC. Be sure the bookmark is created outside (i.e., above or to the left of) the [DefMark][GenTxt]...[GenTxt] codes, so that it will not be accidentally deleted if you decide to regenerate the Table of Contents.
Then: Follow the steps above -- but instead of using Tools, Reference, Table of Contents in Step 4, use Tools, Hyperlink, and then click in the Bookmark drop list to select the bookmark name (e.g., TOC).
Tip: You can remove underlines from hyperlinks in the current document from the main WordPerfect menu: Click Format, Styles, and select Hypertext in the 'Available styles' list. (Note: If no Hypertext style is present in the document, the style name will not appear.) Then click Edit and delete the [Und] code in the Contents pane; then click OK. Note that this changes all hyperlink styles in the current document, even those that are used in cross references, and including the page numbers in the Table of Contents. (It's an all-or-nothing situation.)
Tips for styles marked for the TOC
☼ Remember: You do not need to create a style in order to mark some text for inclusion in a TOC.
As noted in Step 1 in "How to create a Table of Contents," just manually select the text and click Tools, Reference, Tables of Contents, and then click the [Mark] button of choice.
However, creating your own custom styles with the TOC-marking codes inside them (as described above) will let you apply other formatting to the text items at the same time you mark those items for inclusion in the TOC. This is the same thing the standard factory-shipped Heading styles do.
You will also be able to quickly change the TOC level of particular custom styles by simply editing any instance of the style (see Steps above) to replace the TOC marks with new ones.
You can also use a macro such as ReplStyl to replace one such style with another. For more on styles, see here.
☼ Editing the Table of Contents:
Once the TOC is generated (Step 3 above), you can edit it -- it is ordinary text between the two special [Gen Txt] codes -- to remove any unwanted attributes, and remove any line breaks to "glue" the multiple-line entries into a single entry in the TOC. You can also format it differently by applying format codes to the entries. Be aware that these are superficial changes that will disappear if you re-generate the TOC: Everything between the paired [Gen Txt] codes will be deleted and replaced when you generate the TOC again. (For more permanent TOC formatting see the "Advanced topic" tip below.)
☼ Multi-level TOC:
You can create multi-level Table of Contents entries by choosing the appropriate TOC level (e.g., [Mark 2], [Mark 3], etc.) while using the method described above. You will need to create (or edit) several styles, one for each level.
If you want to reduce the spacing between a Paragraph heading style (e.g., Heading 2 or MyHeadingStyle 5) and the following body text (i.e., the next paragraph), see here.
☼ Speed up marking entries:
If you have lots of "non-style" (i.e., plain text) items to mark for inclusion in the TOC, you can record your TOC-marking steps to create a macro to mark them more quickly (once they have been selected) for a particular TOC level. Select an item, then use Tools, Macro, Record and click Tools, Reference, Table of Contents, then click [Mark 1] for a top-level entry, [Mark 2] for a second-level entry, etc. Stop recording with the Stop button on the macro toolbar.
☼ Advanced topic #1:
In contrast to the formatting contained in standard or custom document Heading styles, the formatting of the generated TOC area itself is governed by up to five predefined TOC styles: TableofCont1 ... TableofCont5.
These built-in styles apply to the TOC levels you have chosen to use in the Define Table of Contents dialog (Step 2, left column of this web page), and they apply only to the current document. However, they can be edited with Format, Styles to change their format codes for the current document's TOC.
[For a macro technique to do this, see Footnote 4. You can also create new TOC paragraph styles (to format just the generated TOC area) with Format, Styles, and then "attach" them to each TOC level with Tools, Reference, Table of Contents, Define, Styles.]
The changes become effective in the document immediately, so you can do this either before or after a TOC has been generated in that document. Re-generating the same document's TOC will not effect their new formatting since the formatting is now contained inside the TOC page's style code(s).
☼ Advanced topic #2:
As noted above, you do not need to create a style in order to mark some text for inclusion in a TOC. You can simply select the text and click Tools, Reference, Tables of Contents, and then click the [Mark] button of choice. This procedure can be automated with macros. See Footnote 1.
Footnote section ▸
[Tips: Macros such as those below can be copied into WordPerfect. See here for brief instructions.]
[Tip: Macros such as those below can be copied into WordPerfect. See here for brief instructions.]