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.
.index ’phrase’ .index: ’main.heading’ ’phrase’ {’phrase’...}
.ix
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. |
.index ’Schedule’ .xindex
Produces the index entry:
Schedule . . . 13
.index: ’Schedule’ ’production’ .xindex
Produces the index entry:
Schedule production . . . 13