I recently split my thesis in several files each containing one chapter which is included with \include in the main Latex-file.
I call pdflatex with -output-directory=output to keep the source directory clean.
The problem is that bibtex does not find the axuliary files for the included subfiles. I call it with bibtex ./output/%.aux and it finds the main.aux but not any of the sub-aux.files such as chapter1.aux, chapter2.aux, etc.
The problem seems to be that the path to the output folder is not included in the main.aux. When I change the path there manually for example from \@input{1_intro.aux} to \@input{output/1_intro.aux} everything compiles fine.
Is there any way to make pdflatex write the proper paths into the main.aux?
I am using TexStudio on a Linux machine. Thanks a lot!
-output-directory. – Ulrike Fischer Apr 28 '17 at 09:53-output-directoryseemed to be the prefered solution for that. – heuamoebe Apr 28 '17 at 09:57