Bibtex Not Finding. Aux File Within Texmaker's "Build" Subdirectory

I've configured Texmaker to send the output files to a "build" subdirectory to try and keep the folder organized. Within the main folder is my .tex and .bib files accompanied by the "build" folder. Now when I run my .tex file it typesets correctly but when I run BibTeX it can't find the .aux file. I assume this is because it lies within that "build" folder. Is there a way I can tell BibTeX to search for it in the "build" folder irrespective of what main folder I'm working in.

I'm using Texmaker 5.0.3 on a Windows machine.

1

1 Answer

I do not know if this will solve your problem on Windows, but on Linux (Ubuntu) it does: (sorry if the options are not exactly like I write them, I am translating from a different language)

  1. In Texmaker go to Options -> Texmaker Configuration -> Commands (this is the first option on the left side)
  2. Look for the text field right to "Bib(la)tex"
  3. At the moment there should be something like this: bibtex %.aux
  4. Replace it by: bibtex "build/%".aux
  5. Click on "Fast Translation" on the left side
  6. Use the option "PdfLaTex + Bib(la)tex + PdfLaTex (x2)+ show PDF"
  7. Confirm the change by clicking on OK

The "%"- symbol is a placeholder here, it will be replaced by the name of your .tex file. Maybe on Windows this is a different symbol, lets say "#". If so, just do the same thing as above but keep the Windows placeholder symbol instead of "%".

1

Your Answer

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

Sarah Jenkins

Sarah Jenkins

Senior Technology Editor & AI Specialist

Sarah Jenkins is a veteran tech journalist with over 12 years of experience covering artificial intelligence, mobile innovations, and digital ethics. Her insights have appeared in leading technology publications worldwide.

Share this article
Twitter Facebook Pinterest