[Tex/LaTex] Using BibTeX with latexmk

bibtexlatexmk

I'm using MiKTeX 2.9 under Windows XP. I have the following directory structure for my document:

  • D:\MyTeX
  • D:\MyTeX\BibTeX
  • D:\MyTeX\IPMcast

File latexmkrc contains the line:

$bibtex = 'bibtex -include-directory=D:/MyTeX';

File IPMCast\ipmc.tex contains the line:

\bibliography{BibTeX/network}

When I use the command:

latexmk -r latexmrc ipmc

my document is created minus the BibTeX references.

When I manually use the commands:

latex ipmc
bibtex -include-directory=D:/MyTeX ipmc
latex ipmc
latex ipmc

files ipmc.bbl and ipmc.blg are created and my document is properly created with references.

I have tried several variations of latexmkrc using apostrophes, quotation marks, back slashes, forward slashes, etc with no luck. The original document was created in 2007 and I believe everything worked properly then. How should I define $bibtex in latexmkrc file to get this to work?

Best Answer

I look at the man page again and found the solution. The call should be:

latexmk -bibtex -r latexmrc ipmc
Related Question