## LaTeX forum ⇒ Kile ⇒ Auxiliary Files in Sub-directory

Information and discussion about Kile, an integrated LaTeX environment for Linux KDE
Sjmacewan
Posts: 1
Joined: Mon Aug 12, 2013 8:29 pm

### Auxiliary Files in Sub-directory

Hello everyone,

In an effort to keep my directories clean I have created a sub-directory of the directory where my .tex files live called "tmp". I enable the writing of the output files to this directory by using the following option in the LaTeX command from the Build panel of Kile's Configure menu:

`-output-directory=tmp -interaction=nonstopmode '%source'`

This part works fine. To be clear the directory structure is like so:
`document   -file.tex   -morefiles.tex   -file.bib   -tmp/     --file.aux     --file.dvi     --morefiles.aux     --.....`

I then proceed to create a bibliography files in the main directory (the same one where the .tex files are) "file.bib" and add it to my primary .tex file file.tex by
`\bibliography{file.bib}`. When I try to compile now I am met with the following error.

`[Bibtex: The file /full/path/file.aux does not exist.]`

The problem here is that it is looking for the aux file in the main directory and not the sub-directory where they are put.

I have tried using the following option for BibTeX with no change in this result.

`--include-directory="./tmp" "./tmp/%S"`

Any and all help would be greatly appreciated.

Tags: