Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I'm writing a book using memoir with a lot of technical words. I want to have an index at the end, which, for each word or term I choose, will refer the reader to the relevant pages. Is there any efficient way to build this index as I write?

share|improve this question

2 Answers 2

up vote 9 down vote accepted

I would suggest using the memoir documentation source as a start to see how a LaTeX document, which uses the memoir document class, creates an index. Although this may not always be done "efficiently", since it depends on the writer's choice of technique, it's a start none the less.

In many cases, automated index entry generation through a macro is preferred. For example, creating

\newcommand{\addtoindex}[1]{#1\index{#1}}

and then using

\addtoindex{word}

rather than constantly typing

... and then there was a word\index{word} at ...

However, this limits one to using a one-dimensional index. Multi-dimensional index usage (for example, using \index{word!sentence!paragraph}, say) requires more work to define an appropriate macro. For example, using optional parameters based on the depth.

The main motivation should be consistency, and ease of adaptation, if things require some future modification.

share|improve this answer

You can make an index. See for a description of making an index (see comment of Zooba) and for an example for an index for wiki LaTeX.

share|improve this answer
2  
The link is actually: en.wikibooks.org/wiki/LaTeX/Indexing (I can't edit the answer because I only want to add 3 characters. Also lack of rep here, but without padding I can't even suggest an edit.) –  Zooba Feb 20 '12 at 20:42

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.