Customizing the index can been be made even more comfortable than Herbert
describes:
make a script 'lyx' in your ~/bin directory:
====
#!/bin/bash
export PATH=~/lyxbin:$PATH
/usr/bin/lyx -width 900 -height 700 $*
====
make a script 'makeindex' in the ~/lyxbin directory:
====
#!/bin/bash
# wrapper script for makeindex (to be called from lyx)
# copy the indexstyle (document_base_name.mst) to the directory $INDEXSTYLE.
# if this file does not exist, $ISTDEFAULT is used instead.
# if this also does not exist, no style file is used.
# The .idx file can be filtered through a program named $FILTER.
INDEXSTYLE=~/indexstyles
ISTDEFAULT=default.ist
FILTER=cat
MAKEINDEX=/usr/bin/makeindex
# LyX (1.1.5fix1) calls makeindex with "makeindex -c -q idxfile"
IDXFILE=$3
BASE=`basename $IDXFILE .idx`
INDFILE=$BASE.ind
MSTFILE=$BASE.mst
ILGFILE=$BASE.ilg
[ -f $INDEXSTYLE/$ISTDEFAULT ] && STYLE="-s $ISTDEFAULT"
[ -f $INDEXSTYLE/$MSTFILE ] && STYLE="-s $MSTFILE"
export INDEXSTYLE
$FILTER $IDXFILE | $MAKEINDEX -c -q $STYLE -o $INDFILE -t $ILGFILE
====
Now you can customize everything in the new 'makeindex' script.
The minimum is to create a file ~/indexstyles/default.ist, which changes the
index layout for _all_ documents.
--
Thomas Henlich