Home | Tips | Library | Other Authors | Other WP Sites | Writer's Links | Contact | Site Map | Donate

Barry MacDonnell's
Toolbox for WordPerfect

Macros, tips, and templates for Corel® WordPerfect® for Windows®
© Copyright 1996-2018 by Barry MacDonnell. All Rights Reserved.

Page updated Jul 30, 2017

IndxHead - "Mark paragraph Heading styles for indexing"

Download INDXHEAD.ZIP (v1.0; 11/07/03; 18,536 bytes)

Compatible with WordPerfect 9 and later versions

WordPerfect 11 users: See important information about using macros in the first release of WP11 (11.0.0.233) at the top of this page.

Downloading, Documentation, Modifications, and Support


Related pages -

• 
Indexing documents with WordPerfect (manual and concordance methods)

•  Index Tools - Tutorials, macros, and tips to help you index a document

IndxHEad (v1.01)

This macro marks the first 64 text characters in standard and custom paragraph styles in the document for indexing.

Typically, these are section headings formatted with such styles as Heading 1, Heading 2, MyHeading, etc.

It is useful if you have marked (or will mark) words in a document manually for indexing, and want to ensure that paragraph style headings (i.e., short text headings formatted with a paragraph style) are also included in the index. The macro adds an [Index] code to the beginning of most paragraph styles (see exceptions in Notes and Limitations, below).

Notes and limitations

¤  Due to limitations in the WordPerfect program, only the first 64 characters will be marked in each paragraph heading found. You may need to edit the index to remove partial "trailing" words from some longer entries.

¤  Items found in Outlines will be skipped. (These are not generally considered to be 'headings' even though they are paragraph styles.)

¤  Text/graphic boxes are also skipped, along with anything inside a 'substructure' (footnote, endnote, header, footer, comment, etc.).

¤  Caution: Items in a Table of Contents will be processed (which is generally not desirable) unless the cursor is placed below the TOC before playing the macro, and the 'Start at current cursor location' option is chosen. (A warning is always given that a TOC is present.)

¤  If an [Index] code is already present in a paragraph style, the macro will pause and present processing options (add a new code, skip the current item, or quit). Generally, no harm is done if more than one [Index] code exists in a paragraph style if they mark the same text characters. If they do not, each differently marked item (for that particular heading) will show as a separate line item entry in the index.

¤  If an Index has already been generated in the document, a warning will be given to allow exiting the macro and deleting the Index, which can be regenerated later after the macro plays. Otherwise, Index entries will be marked with [Index] codes if they contain custom paragraph styles (i.e., styles other than the standard Index1 and Index2 styles). This can create duplicate Index entries.
   An alternative is to click the Generate button on the Index property bar again after the Index is generated. This seems to clear out any unwanted [Index] codes in the Index itself.

¤  Document ("open") styles and Character styles are not processed, nor are simple text "headings" that are not formatted as a paragraph style.