I compile a document with this command:
latexmk -outdir=obj these.tex
In these.tex
, I specify \bibliography{../Bibliography}
. But, when latexmk
calls bibtex
, the .aux
file is one folder deeper and, hence, the compiler doesn't find the file.
Indeed, if in my .tex
file I use \bibliography{../../Bibliography}
then everything works fine for bibtex
, but latexmk
fails to find the file. Using -auxdir=obj
doesn't change anything.
What can I do ?
edit: it seems important to precise that latexmk is called via a makefile.
kpsewhich --var-value TEXMFHOME
gives me~/texmf
, which means I'd put my bibliography (or a symlink even) in~/texmf/bibtex/bib
; thenlatex
,latexmk
, etc. will all find the file regardless of all the other jiggering I might want to do with other files...