ltxindex is a LaTeX package to typeset indices with GNU's Texindex.
ltxindex is a LaTeX package to typeset indices with GNU's Texindex.

WARNING!!! This code is fairly experimental.

ltxindex.sty provides a simple package to produce indices with texindex instead of makeindex.
In my experience, texindex is fairly simpler to use. If you don't need anything fancy, this package may be just for you!

This package only implements the standard indices used by texinfo, and only defines the concept index (cp) by default. You can't define custom indices, and you must set up fn, ky, pg,
tp, and vr indices on your own.


Call this package in the preamble: usepackage{ltxindex}

The package implements the following commands,

cpindex{< concept >} indexes < concept >, without typesetting it in the main text.

cpsubindex{< concept >}{< subconcept >} indexes < subconcept > under < concept >, without typesetting it in the main text.

indexcp{< concept >} typesets < concept > and puts it in the < cp > index.

subindex{< subconcept >}{< concept >} typesets < subconcept > in the main document and puts it under < concept > in the < cp > index.

You may set up fnindex, kyindex, pgindex, tpindex, and vrindex with the command newindex{??}, where ?? is either fn, ky, pg, tp, or vr. This way, you enable commands ??index{< word >}, which allows you to index < word > in the appropriate index. Texinfo shortcuts cindex, findex, kindex, pindex, tindex, and vindex, are also available.

synindex{foo}{bar} makes index foo feed into index bar.

syncodeindex{foo}{bar} is similar, but puts all entries made for index foo inside bold.

As in Texinfo, all these commands produce auxiliary files < filename >.??

Once you're done with the main body of your document, you ask LaTeX to typeset the index with the command printindex{??}, wherever you like. Make sure you precede it with some informative heading, like section*{Concept Index}.

Run LaTeX on filename to produce the .aux and .?? files Run texindex on every < filename >.?? unsorted index file you created for your document. (< filename >.cp index, by default). texindex will create a sorted index file for every index file (.cps, by default).

ReRun LaTeX to incorporate the indices.
ReRun texindex on every index file (to secure right cross-references).
ReRun LaTeX to put everything in order.

You may avoid all this work in drafting and proofreading:

this package prints "(Index is empty)" or "(Index is nonexistent)" strings in the appropriate places if the indices are unsorted or undefined.

last updated on:
September 27th, 2006, 13:58 GMT
developed by:
Jose-Luis Rivera
license type:
GPL (GNU General Public License) 
ROOT \ Documentation
Download Button

In a hurry? Add it to your Download Basket!

user rating 20



Rate it!

Add your review!