op.index Command/Output Processor: Commands

op.index

Command op.index Command/Output Processor: Commands
Applicable release versions: AP
Category Output Processor: Commands (183)
Description inserts a "phrase" and the current page number into the index.

"Subheadings" are specified by appending a ":" (colon) to the ".index" command. The phrase following the colon is the 'main heading' and all subsequent phrases are subheadings.

If the main heading or phrase consists of multiple words, the words must be enclosed in quotation marks.

The ".index" command may be embedded in text, in which case, the end of the index text must be indicated by the ".xindex" command.

The index can be saved in an item with the ".save index" command. The index is printed with the ".print index" command.
Syntax .index 'phrase'
.ix 'phrase'
.index: 'main heading' 'phrase' {'phrase'...}
.ix: 'main heading' 'phrase' {'phrase'...}
Options
Example
.index 'Schedule'
.xindex 

Produces an index entry such as:

Schedule   . . . 13

.index: 'Schedule' 'production'
.xindex 

Produces an index entry such as:

Schedule
production    . . . 13
Purpose
Related op.xindex
op.print.index
op.save.index
op.commands
op.ix
op.index.heading
op