Rich Shepard wrote:

>    As I develop the index for my book I see some index references that I
>    want
> to change. Is there a way quicker than searching for each term from the
> beginning of the document and checking the contents of the gray "idx" box
> to find the ones I want?

There's a reason that the LyX file format is plain text, you know...

>From the console:
$ grep -n '^\\begin_inset LatexCommand \\index' yourfile.lyx

Or even:
$ sed -n '/^\\begin_inset LatexCommand \\index/{
=; s/[^{]*{\([^}]*\)}/\1/p
}' yourfile.lyx

which should print out just the index itself, preceded by the line on which
it is found in the lyx file.

-- 
Angus

Reply via email to