Hi all, My copy of LyX 1.6.3 errors out on indexing because when LyX exports to LaTeX, it outputs normal range type indexing entries (the ones ending in a pipe symbol and a parenthese) with something like this:
\index{mysection|(@mysection\textbar(} It should have looked like this: \index{mysection|(} The extra stuff caused errors when the makeindex program was run on the .idx file. Now here's where it gets complicated. I run LyX 1.6.3. So does Vincent van Ravesteijn, but Vincent's LyX doesn't insert the bad text. I've attached a tiny file, called index_bug_simp.lyx, that exhibits this problem on my system. Because I have to send out eBooks tonight, I couldn't solve my LyX problem, but instead wrote a script to convert the TeX file output by LyX into a TeX file that makeindex can deal with. Here's my kludge, fixidx.sh: ========================== #!/bin/bash texfilename=$1 tempfilename=$1.temppp rm -f $tempfilename mv $texfilename $tempfilename cat $tempfilename | sed -e "s/|(@[^{]*textbar{}(/|(/g" | \ sed -e "s/|)@[^{]*textbar{})/|)/g" > $texfilename ========================== The preceding is one of the most fragile and messy kludges I've ever written, and before too long I'd like to fix the root cause rather than kludging the symptom. Soooooooo.... If anybody has trouble with indexing, please see if you have the extra text in the output of lyx --export latex, and if so try my kludge. When we get a few more systems exhibiting my problem, we can find commonalities to figure out the root cause. Thanks SteveT Steve Litt Recession Relief Package http://www.recession-relief.US Twitter: http://www.twitter.com/stevelitt
index_bug_simp.lyx
Description: application/lyx