On Monday 16 November 2009 12:25:17 Anthony Campbell wrote:
> I've made 4 books previously and the index has always appeared
> correctly. I did the same with an earlier version of the present book
> and again the index appeared. But now although I have numerous words
> marked for indexing, when I insert "Index" via the menu at the end of
> the book nothing is printed.
>
> I think I must have missed out something obvious but what? I'm using the
> same preamble as usual; nothing has changed. It is Book class. Any
> suggestions please?
>
> Anthony

There could be a hundred explanations. To narrow it down I'd compile at the 
command line instead of in the LyX environment. Something like this 
shellscript, where $1 is the name of the LyX file, but without the .lyx 
extension:

#############################################
#!/bin/bash
StyleFile=mydoc.ist
LyxCmd=lyx

### REMOVE ALL INTERMEDIATE FILES
rm -f mydoc.aux
rm -f mydoc.dvi
rm -f mydoc.ps
rm -f mydoc.pdf
rm -f mydoc.idx
rm -f mydoc.ilg
rm -f mydoc.ind
rm -f mydoc.log
rm -f mydoc.tex
rm -f mydoc.toc

### EXPORT TO LATEX AND COMPILE
$LyxCmd --export latex mydoc.lyx
latex mydoc.tex

### RUN makeindex TO CONSTRUCT INDEX INTERMEDIATE FILES
if test -f $StyleFile; then
        makeindex -s $StyleFile mydoc.idx
else
        makeindex mydoc.idx
fi

### AT THIS POINT, MANUALLY INSPECT mydoc.ilg FOR ERRORS.
### IF THERE ARE ERRORS, USE mydoc.ilg AND mydoc.ind TO
### TROUBLESHOOT THOSE ERRORS. DO NOT GO FARTHER UNTIL
### makeindex RUNS CLEANLY WITHOUT ERRORS.

### ONCE AGAIN COMPILE WITH LATEX TO INCORPORATE INDEXING FILES 
latex mydoc.tex

### CHECK TO MAKE SURE THE PRECEDING COMPILE WORKED,
### IF NOT TROUBLESHOOT

### CONVERT TO PDF. CAREFUL, FOLLOWING LINE WRAPS IN EMAIL
dvips -o mydoc.tmp.ps mydoc.dvi
ps2pdf12   -dPDFSETTINGS=/prepress -dMaxSubsetPct=100 -dSubsetFonts=true -
dEmbedAllFonts=true     mydoc.ps

### VIEW THE RESULTS
xpdf myfile.pdf
################################################

Do the preceding, and you'll be able to troubleshoot your problem, or at least 
narrow it to the point where you can get further help.

SteveT

Steve Litt
Recession Relief Package
http://www.recession-relief.US
Twitter: http://www.twitter.com/stevelitt


Reply via email to