B.6.2. Inserting indexes automatically

Although DocBook has markups for the composition of
them, indexes are not generated automatically. The
collateindex.pl command allows indexes
to be generated from the source DocBook for inclusion into the
finished/transformed document.

Process the document with
jade using the style to
HTML with
the option -V html-index.

bash$jade-t sgml \
-d html/docbook.dsl -V html-index document.sgml

Generate the index.sgml file with
collateindex.pl.

bash$ perlcollateindex.pl \
-o index.sgml HTML.index

For the above example to work, it is necessary to define
an external entity by calling the
file index.sgml.

See also Section D.4 for information
on how to
insert necessary information on the text.

Odd behavior generating indexes for print versions

Remember that if you're trying to get Tables of
Contents or Indexes on PS or PDF output you'll need to
run jadetex
or pdfjadetex
at least three times. This is required by TeX but not by DocBook or
related applications.