Wednesday 6 June 2007

Index in LaTeX

If you want to add an index to a LaTeX document (say, a thesis), the simplest option to mark a word (e.g. convection is to use \index{convection}. More advanced uses include:

  • \index{dimensions!rule!width} - this is for subitems
  • somewhere in your text you put \index{domain decomposition|(}, then you write a lot of stuff on this topic and you end with \index{domain decomposition|)} - this is for a page range
  • \index{delta@$\delta$} - this tells LaTeX that it should treat the letter as the word "delta" when compiling the index
  • \index{topic|see{some other topic}} - for a cross-reference

No comments: