Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I want to set group headings, in form of a corresponding letter, for an index in lyx. I have one main lyx file, containing links (with include) to other lyx files, placed in a subfolder.

I tried following, but it doesn't work.

First I created a file called test.ist in the same directory as my main lyx file, containing folling:

quote '>'
headings_flag 1
heading_prefix "\\textbf\{\\huge "
heading_suffix "\}"

In my lyx main file I opend document settings, changed the processor under Indexes to "makeindex" and entered in option field "-g -s test.ist" (without quotes)

The lines corresponding to index in my log file look like this

(C:\...\miktex\tex\latex\base\makeidx.sty

Package: makeidx 2000/03/29 v1.0m Standard LaTeX package
)
\@indexfile=\write3

Writing index file test.idx

Also the -g option doesn't show any effect.

Do you have a clue what to do and may give me a hint, please? Thank you.

share|improve this question
add comment

1 Answer

Specify the absolute path to the index style file, or put the index style file in a directory that is known to "makeindex".

For example, for the style file test.ist of directory /home/user123, change -g -s test.ist to -g -s "/home/user123/test.ist". The quotation marks are necessary if your directory contains spaces etc.

The problem is that LyX runs commands in a temporary directory, e.g. /tmp/lyx_tmpdir.XYZ/lyx_tmpbuf1. Hence, "makeindex" does not find the index style file "test.ist" there.

Hint: Start LyX from a console and you will see the output of the commands that LyX runs (e.g. "makeindex").

share|improve this answer
    
thank you, but that doesn't seem to work either :( I tried that recommondation with the console, but there was no output. So I start texwork and run makeindex there Command: C:/Users/[...]/miktex/bin/miktex-makeindex.exe Arguments: -s "C:\Users[...]\test.ist" test.idx That didn't work also. Output was: Expected -s <stylefile> . Do you have any further ideas, how to proceed? –  user1787284 Feb 13 '13 at 22:23
    
Maybe write a TeX document "test.tex" containing just the necessary packages ("makeidx", "babel"), "\makeindex", and as body "a\index{a} \printindex{}". Put "test.tex" together with "test.ist" in the same folder. First run latex on it in that folder, then run makeindex -s test.ist test.tex. Any error? Actually, finish with another latex run... Or post the whole error message on your question... –  e-birk Feb 13 '13 at 22:57
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.