• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 11. Index Generation > 11.4. Enhancing the index with LaTeX features

11.4. Enhancing the index with LaTeX features

This section describes LaTeX’s support for index creation. It presents possibilities to modify the index layout and to produce multiple indexes.

11.4.1. Modifying the layout

You can redefine the environment theindex, which by default is used to print the index. The layout of the theindex environment and the definition of the \item, \subitem, and \subsubitem commands are defined in the class files article, book, and report. In the book class you can find the following definitions:

Image

Although this is programmed in a fairly low-level internal language, you can probably decipher what it sets up. First it tests for two-column mode and saves the result. Then it sets some spacing parameters, resets the page style to plain, and calls \twocolumn. Finally it changes \item to execute \@idxitem, which produces a paragraph with a hanging indention of 40 points. A higher-level reimplementation (using ifthen) might perhaps look as follows:


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint