Generating index when compiling document

Udicoudco udifoglle at gmail.com
Thu Dec 1 21:13:49 UTC 2022


On Thu, Dec 1, 2022 at 10:16 PM Rich Shepard <rshepard at appl-ecosys.com> wrote:
>
> On Thu, 1 Dec 2022, Rich Shepard wrote:
>
> > Your memory is correct. I did that yesterday and I have the little
> > white-filled box with 'Index' placed after the bibliography. But, when the
> > file is compiled with pdflatex there's no index at the end. That's the
> > part I'm missiing.
>
> And, yes, I added a few items using the Add Index icon on the tool bar. So,
> there's content to be displayed.
>
> Rich
> --


I've tried to compile a few minimal documents to see the differences
between the index tools.  I've noticed that unlike makeindex and
texindy, xindy does not produce a .ind file that should be processed
by latex and create an index list, but only an .idx file, which
usually gets converted to .ind file.

On the first page of Xindy manual it is stated that

"xindy is the formatter-indepedent command of xindy, the flexible
indexing system. It takes a raw index as
input, and produces a merged, sorted and tagged index. Merging,
sorting, and tagging is controlled by xindy
style files.

Files with the raw index are passed as arguments. If no arguments are
passed, the raw index will be read
from standard input.

xindy is completely described in its manual that you will find on its
Web Site, http://www.xindy.org/. A
good introductionary description appears in the indexing chapter of
the LaTeX Companion (2nd ed.)

If you want to produce an index for LaTeX documents, the command
texindy (1) is probably more of inter-
est for you. It is a wrapper for xindy that turns on many LaTeX
conventions by default."

So it seems you should use texindy and not xindy directly. I also
suggest that  after you switch from xindy to texindy (or makeindex) in
the preferences menu, open the temporary directory where lyx compiles
all the files (to do so, create a latex error on purpose by writing
\undefined in ERT for example, press on view complete log, and then
open containing directory),  and delete all the files there (or
atleast files with .idx and .ind extensions).

Regards,
Udi

> lyx-users mailing list
> lyx-users at lists.lyx.org
> http://lists.lyx.org/mailman/listinfo/lyx-users


More information about the lyx-users mailing list