Next: , Up: Indexes   [Contents][Index]

25.2.1 Produce the index manually

Documents that are small and static can have a manually produced index. This will make a separate page labeled ‘Index’, in twocolumn format.

\item acorn squash, 1
\subitem maple baked, 2
\item bacon, 3
\subitem maple baked, 4

Note that the author must enter the page numbers, which is tedious and which will result in wrong numbers if the document changes. This is why in most cases automated methods such as makeindex are best. See Indexes.

However we cover the commands for completeness, and because the automated methods are based on these commands. There are three levels of entries. As the example shows, a main entry uses \item, subentries use \subitem, and the lowest level uses \subsubitem. Blank lines between entries have no effect. The example above includes \indexspace to produce vertical space in the output that some index styles use before the first entry starting with a new letter.

Unofficial LaTeX2e reference manual