When I run pdflatex with an -aux-directory flag it makes it so natbib can't find the citations.
pdflatex command with -aux-directory:
pdflatex.exe -synctex=1 -interaction=nonstopmode %.tex -aux-directory=auxillary
and without:
pdflatex.exe -synctex=1 -interaction=nonstopmode %.tex
When I run it with -aux-directory, no bbl file is generated, the references page is missing, and the log shows a long sequence of errors like the following:
Package natbib Warning: Citation `Altman2006' on page 1 undefined on input line
When I run it without -aux-directory, then everything is fine.
Has anyone else experienced this problem?
MWE:
PhD_Thesis.tex
\documentclass[11pt,twoside,a4paper]{article}
\usepackage[round,authoryear]{natbib}
\begin{document}
Bibtex test: \citet{Card1999}
\bibliographystyle{apalike}
\bibliography{PhD_Bibliography}
\end{document}
PhD_Bibliography.bib
@INCOLLECTION{Card1999,
author = {David Card},
title = {The Causal Effects of Education on Earnings},
booktitle = {Handbook of Labour Economics},
year = {1999},
editor = {O. Ashenfelter and David Card},
volume = {3},
pages = {1801-1863},
publisher = {Elsevier Science B.V},
chapter = {30}
}
\documentclass{...}and ending with\end{document}. – Jan 01 '15 at 18:30https://danielgillis.wordpress.com/other/latex
Feel free to downvote it if you think it's not helpful as-is.
– roboreb Jan 01 '15 at 18:44natbibpackage and try a test citation, does the same problem happen? – darthbith Jan 01 '15 at 18:50@<username>(like @roboreb), otherwise they won't notice your reply. – Pier Paolo Jan 01 '15 at 19:14