Nisus Writer Pro User Manual

Page 264

Advertising
background image

244

Creating Tables of Contents, Outlines and Indexes

Book Tools

Automatically index your document using a word list

You may want to automatically search through your document to find all occurrences of a
particular set of terms that should be indexed. To do this Nisus Writer Pro requires a word list file.
Such a file consists of a list of terms, each associated with a particular indexing topic. This word
list file should should contain a single “table” the word in your document to index on the left
followed by a tab then the text that should represent that word in the index on the right.

Table 24

An example of a index word list table

1. Select the portion of your document you want to index using the word list file you have created

using the Create Word List (v4) macro, as explained in “Create a word list as a tool for
preparing an index
” on page 244.

2. Choose the menu command Tools > Index > Index Using Word List….

A variant of the Open dialog appears.

3. Locate your word list file, select it and click Auto Index.

The command Index Using Word List… selects each “paragraph” (that is each line in the word
list document consisting of anything from a character to a lengthy phrase ending in a Return)
then searches the document for that text and marks it for the index.
Nisus Writer Pro indexes every occurrence of every character/word/phrase in the word list and
distinguishes between Uppercase and lowercase characters in the list and indexes each
occurrence separately.
While for most texts indexing every instance of a particular word would be superfluous, this
tool would make sense for certain technical texts.

Create a word list as a tool for preparing an index

The Create Word List (v4) macro supplied with Nisus Writer Pro works on a selection of your
document and creates a new document with an alphabetical list of all the “words” in that selection.
Another useful tool is the Create Word Frequency List macro. This command works on a selection
of your document and creates a new document containing a word list sorted with the most
frequently used word at the top (with the number of its occurrences) and the least frequently used
word at the bottom.

1. Select that portion of your document from which you want to create a word list.
2. Choose Create Word List (v4) or Create Word Frequency List from the Macro menu.

If you do not have a selection Create Word List (v4) presents a prompt illustrated in Figure 275
that asks you to decide whether the macro should scan the entire document or if you want to
stop the macro and make a selection.

Figure 275

The “create word list on entire file?” Macro Prompt

Nisus Writer Pro creates a new “Untitled” file with an alphabetical list (one word per paragraph)
of all the words in the selection. While you can create a word list of your document for any
purpose, these should be saved in a location and with a name associated with the document
you wish to index.

dogs
cats
birds
iguanas
horse
mare
Colt

Pets
Pets
Pets
Pets
Horse
Horse
Horse

Advertising