Johann Henning
Johann Henning

Reputation: 33

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.

Upvotes: 2

Views: 8650

Answers (2)

Horacio Mateos
Horacio Mateos

Reputation: 1

My setup:

  • Windows 10
  • TexMaker 5.15.2
  • Using "build" directory to put al the auxiliary files
  • Using biber

as shown in the image, you need to add at the end of the path to biber "build/%.bcf" In my case, the whole line is:

"C:/Program Files/MiKTeX/miktex/bin/x64/biber.exe" build/%.bcf

Upvotes: -1

pbit24
pbit24

Reputation: 448

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 "%".

Upvotes: 5

Related Questions