When you launch BibTeX with eg
bibtex document, the program will not look to
document.tex but search for
document.aux and read in it:
- the list of
.bststyle to use
- your ``\cite```s.
.aux files is mandatory.
Beside this it produces the expected
document.bbland only one additional "intermediate" file: the BibTeX log file
off topic for
Texpad, but could be useful for other people:
MiKTeX pdftex has an option
--aux-directory (used with e;g.
--aux-directory=.\build), where the intermediate files, including the
.aux file are stored in the
build folder, which is more generic.
However, the regular BibTeX run is no longer possible : one has to use a batch (or shell) script to either copy the
.aux file to the working directory or copy the
.bib files to the
build directory. Here is the
bibtex-build batch file I use under Windows (to be converted by somebody else to Apple script for Mac OS X users)
copy *.bib build
for %%f in (*.aux) do (
echo error level is %ERRORLEVEL%
if %ERRORLEVEL% EQU 0 (
) ELSE (
The loop over
*.aux could seem superfluous, but is needed if one use the
multibib package or similar one which produces several
.aux for a single document.