Библиотека сайта rus-linux.net
D.4. Encoding Indexes
The generation of indexes depends on the markups inserted in the text.
Such markups will be processed afterwards by an external
tool and will generate the index. An example of such a
tool is the collateindex.pl
script
(see Section B.6.2). Details about the
process used to generate these indexes are shown in Section B.6.2.
The indexes have nesting levels. The markup of an index is done by the code Example D-3.
Example D-3. Code for the generation of an index
|
It is possible to refer to chapters, sections, and other
parts of the document using the attribute
zone
.
Example D-4. Use of the attribute zone
|
The Example D-4 has the code used to
generate the entry of this edition on the index. In fact, since
the attribute zone
is used,
the index statement could be located anywhere in the document or
even in a separate file.
However, to facilitate maintenance the entries for the index were all placed after the text to which it refers.
Example D-5. Usage of values startofrange
and endofrange
on the attributeclass
|