I am using TeXstudio to write a book, and I would like to include two index files. I am using the document class amsbook with package amsmidx for multiple indices. I succeed to generate two .idx files, and I know that I have to transform them to .ind files in order to compile all stuffs altogether. But I can't, I know only how to run the default .idx file to .ind file but not for these extra .idx files. I will be thankful for any help!


Here is my code





Symbol\index{sind}{symbol} and object\index{ind}{object}.


\Printindex{sind}{Symbol Index}

  • 1
    You can execute makeindex your_file.idx by hand from terminal and the ind will be generated. – Sigur Feb 20 at 11:15
  • 1
    Or maybe you can configure the makeindex option in Options menu to execute not only for %.idx but *.idx. – Sigur Feb 20 at 11:16
  • 1
    @Salomo, so * was not acceptable. The message says that you can pass the file names separated by spaces like faa.idx foo.idx and so on. So, you can at least for a while type the file names there. Do you know the names of the idx files you have, right? – Sigur Feb 20 at 11:44
  • 1
    From the ilg log file we get Extra '|' at position 4 of first argument. – Sigur Feb 20 at 12:48
  • 1
    @Salomo, so replace it by $\vert X\vert$. – Sigur Feb 20 at 12:55

You can configure TeXstudio to run makeindex on a list of files given by names or to run on all idx files.

Go to Options > Configure TeXstudio and then Commands tab. You can see the command line corresponding to makeindex.

There you pass the ?*.idx to run on all files.

enter image description here

After that you can compile your document and run makeindex as configures using the Tools > Index menu:

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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