KileAuxiliary Files in Sub-directory

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

Auxiliary Files in Sub-directory

Post by Sjmacewan »

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:

Code: Select all

-output-directory=tmp -interaction=nonstopmode '%source'
This part works fine. To be clear the directory structure is like so:

Code: Select all

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.

Code: Select all

[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.

Code: Select all

--include-directory="./tmp" "./tmp/%S"
Any and all help would be greatly appreciated.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics
Post Reply