LaTeX forum ⇒ MakeIndex, Nomenclature, Glossaries and Acronymshow do I make a good looking index?

Information and discussion about MakeIndex - the tool to generate subject indices for LaTeX documents.
rdg_nz
Posts: 2
Joined: Sun Apr 05, 2009 12:45 pm

how do I make a good looking index?

Postby rdg_nz » Sun Apr 05, 2009 12:56 pm

I am trying to understand makeindex and am trying to get a nice looking index, with reverse hyperlinks and letter headings (like you can see in a lot of latex documentation, for example the scrindex package documentation). Everything works ok but at the moment I can get only a very basic index in two columns which does not wrap long lines correctly. Do I need to specify some particular .ist file somehow?

I am using the scrbook class and scrindex package followed by \makeindex command. I am using rubber (excellent tool, btw) to compile the document. Index style can be specified by a rubber directive but nothing I try seems to change anything. Any help would be much appreciated.

Link:
BBcode:
HTML:
Hide post links
Show post links

phi
Posts: 577
Joined: Tue Oct 21, 2008 8:10 pm

Postby phi » Mon Apr 06, 2009 12:17 am

There are many different ways to customize indexes.
  • You get hyperlinks by loading the hyperref package.
  • The index package provides some enhancements.
  • MakeIndex style files (.ist) are written in a format that is quite trivial (see the makeindex manual for a description). The ltxdoc class that is used for many package manuals uses the style file gind.ist, which can serve as an example for the letter group headings.
  • Xindy is a replacement for MakeIndex that is much more comprehensive (and thus harder to program).

Link:
BBcode:
HTML:
Hide post links
Show post links

rdg_nz
Posts: 2
Joined: Sun Apr 05, 2009 12:45 pm

Postby rdg_nz » Mon Apr 06, 2009 12:42 pm

Thanks a lot for the helpful and quick reply.

Switching to gind style is a start, I now get letter headings. However there is no gap at all in between the index text and the page numbers, they don't group properley or line wrap and I don't get hyperlinks (despite using the hyperref package).

It would be nice to see a really good guide to making and customising indexes in latex sometime.

Link:
BBcode:
HTML:
Hide post links
Show post links

phi
Posts: 577
Joined: Tue Oct 21, 2008 8:10 pm

Postby phi » Mon Apr 06, 2009 7:30 pm

Could you post an example? All my indexes have line breaks and hyperlinks by default, so there must be a problem somewhere.

Link:
BBcode:
HTML:
Hide post links
Show post links


Return to “MakeIndex, Nomenclature, Glossaries and Acronyms”

Who is online

Users browsing this forum: No registered users and 1 guest