.save index command (Output processor)

The .save index command saves the index to a defined item-ID in the same file where the Output processor document resides.


.save index item-ID




The .save index command is placed in the text item itself and must precede the .index commands. Only the indexed data that has been preceded by the .save index command is saved in the specified file.

The saved index is formatted in one column. The item can then be formatted and edited to create a custom index format.


.save index indexbody
.index: ’topic one’ ’subtopic one’ ’subtopic two’ .xix
.index ’topic two’ .xix

Results in index body:

topic one
subtopic one, 1
subtopic two, 1
topic two, 1