Steve Litt wrote:
On Sunday 17 June 2007 14:26, Frederick Noronha [फ्रेडरिक नोरोन्या] wrote:
Hi all, I created an index, and then reworked my book. To my surprise I
found the index hadn't been updated. Did I do something wrong? How do I get
all the index entries to reflect the latest corrections? Thanks in advance,
FN
Here's my sure fire way to update the index. Note that I run latex several
times to make sure the index gets updated. The actual index updating is done
by makeindex, which I believe comes with my LaTeX distribution (tetex).
Here's the script I use:
Guys, do we do this within LyX? If not, should we?
Angus
rm -f $1.aux
rm -f $1.dvi
rm -f $1.ps
rm -f $1.pdf
rm -f $1.idx
rm -f $1.ilg
rm -f $1.ind
rm -f $1.log
rm -f $1.tex
rm -f $1.toc
lyx --export latex $1.lyx
latex $1.tex
makeindex $1.idx
ilglines=`wc -l $1.ilg | cut -d " " -f 1`
if test "$ilglines" = "6"; then
latex $1.tex
latex $1.tex
# Two commands below DO NOT ensure embedded fonts.
# dvips -o $1.ps $1.dvi
# ps2pdf $1.ps
# Two commands below ensure all fonts embedded!
dvips -t letter -Pdownload35 -o $1.ps $1.dvi
ps2pdf -dEmbedAllFonts=true $1.ps
#nohup gv $1.pdf &
#exit 0
else
echo ERROR: Inspect $1.ilg and $1.ind!
gvim $1.ilg $1.ind
echo ERROR: Inspect $1.ilg and $1.ind!
exit 1
fi
SteveT
Steve Litt
Author: Universal Troubleshooting Process books and courseware
http://www.troubleshooters.com/