I'm using latexmk for a long time now but since the last update to latexmk 4.70a (from 4.69a) one of my presentations doesn't compile anymore. There seems to be some problem with running bibtex.
This is a short extract from the faulty log:
bibtex: Not writing to /workspaces/Ngas_Inrec_Presentation/Main.blg (openout_any = p). I couldn't open file name `/workspaces/Ngas_Inrec_Presentation/Main.blg'
I created a small reproducible example:
Main.tex
\documentclass{article}
\usepackage[round]{natbib}
\bibliographystyle{abbrvnat}
\begin{document}
\cite{geng2017relationship}
\bibliography{lib}{}
\end{document}
lib.bib
@article{geng2017relationship,
title={The relationship between regional natural gas markets and crude oil markets from a multi-scale nonlinear Granger causality perspective},
author={Geng, Jiang-Bo and Ji, Qiang and Fan, Ying},
journal={Energy Economics},
volume={67},
pages={98--110},
year={2017},
publisher={Elsevier}
}
The full logs (working and not working), as well as the 2 files above, are available in this github gist.
Does anyone have an idea? Thanks so much in advance.
Edit / Further Information.
After playing around with executing commands manually I found out the following: latexmk 4.70a executes
bibtex "/workspaces/Ngas_Inrec_Presentation/Main.aux"
Which does not work.
latexmk 4.69a used
bibtex "Main"
Which does work. So there seems to be a problem with specifying the full path. I also tried:
bibtex "Main.aux"
To check if the file extension causes problems. It does not, it's working fine. The access rights also seem to be right since editing Main.aux with:
nano "/workspaces/Ngas_Inrec_Presentation/Main.aux"
is also working fine.
bibtex
ave you tried to see if bibtex runs if you run bibtex by hand (or through your editor). If it still fails, then it is not comming from latexmk.-output-directory="/workspaces/Ngas_Inrec_Presentation"
. It is not really surprising that this doesn't work under openout_any=p, it is more surprising that it worked before.