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...
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 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)
- In Texmaker go to Options -> Texmaker Configuration -> Commands (this is the first option on the left side)
- Look for the text field right to "Bib(la)tex"
- At the moment there should be something like this: bibtex %.aux
- Replace it by: bibtex "build/%".aux
- Click on "Fast Translation" on the left side
- Use the option "PdfLaTex + Bib(la)tex + PdfLaTex (x2)+ show PDF"
- 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 "%".