Producing an index
In longer documents such as technical books, including an index is customary. An index comprises a comprehensive list of words alongside corresponding page numbers. It is typically positioned at the document’s end, guiding readers to the occurrences of those words or phrases within the document. This compilation encompasses keywords, topics, and individuals’ names, facilitating easy navigation and reference within the document.
How to do it...
Indexing is typically carried out at the very end of the writing process. While reading through the document, the \index{keyword} command should be placed for each relevant keyword occurrence. A good place can be right before that keyword appears in the text. Don’t include a space between \index{...} and the indexed word.
We will use the makeidx package. We will now insert the indexing commands while writing. Follow these steps:
- Start with a document class. We will use the same as in the...