I'm compiling a Plain TeX project on Overleaf with the line
$latex = 'tex %O %S';
in the latexmkrc
file. This makes most things work swimmingly, except BibTeX.
In a file called main.tex
I have
\input btxmac
The \TeX{}book~\cite{knuth:tex} is good.
\medskip
\leftline{\bf References}
\bibliography{mybib}
\bibliographystyle{plain}
\bye
and in a file called mybib.bib
I have
@BOOK{knuth:tex,
author = "Donald E. Knuth",
title = "The {\TeX}book",
publisher = "Addison-Wesley",
year = "1984",
}
(These are examples from Patashnik.)
The problem is that I cannot get it to produce the correct output. I get
whereas locally, with the exact same files, running
tex main
bibtex main
tex main
tex main
Is there something I can add to my latexmkrc
file to get the same behaviour on Overleaf? Thanks in advance! The Overleaf project is here if you would like to tinker (it contains just the minimal example and it should be editable).