.index command (Output processor)

The .index command inserts a phrase and the current page number into the index. The .index command may be embedded in text, in which case the end of the index text must be indicated by the .xindex command.

Syntax

.index ’phrase’
.index: ’main.heading’ ’phrase’ {’phrase’...}

Synonym(s)

.ix

Parameter(s)

phrase Subheading or phrase inserted into the index. A subheading is specified by appending a colon to the .index command.
main.heading Phrase following the colon is inserted as the main heading into the index. All subsequent phrases are inserted as subheadings into the index. If the main heading or phrase consists of multiple words, the words must be enclosed in quotation marks.
Note: The index can be saved in an item with the .save index command, and can be printed with the .print index command.

Example(s)

.index ’Schedule’
.xindex

Produces the index entry:

Schedule . . . 13

.index: ’Schedule’ ’production’
.xindex

Produces the index entry:

Schedule
production . . . 13