op.index
Inserts phrase and current page number in text.
Syntax
.index 'phrase' .ix 'phrase' .index: 'main heading' 'phrase' {'phrase'...} .ix: 'main heading' 'phrase' {'phrase'...}
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.
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
See Also
User Comments
What do you think?
Share your experience or ask a question by using the form below.
Login to leave your comments.
