0

I've configured Texmaker to create the auxiliary files in the \build subfolder. Everything is working fine, except for the index... while compiling the .tex file, the console says:

Process started    
Input index file FILE.idx not found. Usage: makeindex [-ilqrcg] [-s sty] [-o ind] [-t log] [-p num] [idx0 idx1 ...]    
system returned with code 1

And of course the index is not being generated in the output .PDF file. I've also added the \build prefix to the "Makeindex" field in the configuration panel of Texmaker (as suggested by Texmaker itself), as you can see in the image below, but it's still not working.

Texmaker configuration

Is there any solution that does not require to manually move the .IDX file from the \build folder to the main folder in order to properly read the index?

Thank you in advance.

11
  • 1
    I never use a build folder. There is always some tool that don't find its input files. Life is much easier if you leave the files in the current folder. Commented Feb 4, 2023 at 22:32
  • I used a build folder because I need to keep the main folder clean, and because the output .PDF file si larger than 100 MB and it is not possible to upload it to Github (I'm working on a project in collaboration with other people), so I have to manually delete the PDF each time I have to do a commit. Life would be much easier if everything stayed in the build folder...
    – Trial4life
    Commented Feb 4, 2023 at 22:41
  • 1
    I know that you are doing it "to keep the folder clean". Every week someone ask a question about non-working build folders. But for git there are .gitignore files, or you can use l3build to move everything to a build folder and compile there. That's how the latex documentation in the latex github is build. see e.g. tex.stackexchange.com/a/673007/2388 for the previous question ... Commented Feb 4, 2023 at 22:57
  • Just an oddity between screenshot and question text. In the screenshot it says build/%.idx (linux pathway), yet in the text \build (windows pathway) is used. Do you compile in a Linux OS or in a Microsoft OS? They use slash respectively backslash to denote directory pathways.
    – alchemist
    Commented Feb 5, 2023 at 7:07
  • 1
    Just installed TeXMaker 5.1.3 and did a small test. In the configuration windows it doesn't matter whether you use a slash or backslash to denote a directory path. TeXMaker adapts that to the OS its installed on. Following your question line, I could use the \build folder on my Windows 11 / MikTeX configuration compiling PDFLatex > Makeindex > PDFLatex. The PDF contained the index as required and all files except the .tex were contained in the \buikd folder.
    – alchemist
    Commented Feb 5, 2023 at 7:54

0

You must log in to answer this question.

Browse other questions tagged .