I have created a document called "myfile.tex" with the following code.
\documentclass{article}
\begin{document}
As we can see in \cite{goossens93}...
\bibliographystyle{plain}
\bibliography{testbib}
\end{document}
This compiles fine in PDFLatex however when I try to run bibtex to create the references I get the following error.
I couldn't open file name `myfile.bib.aux'
Does anyone have any idea what Im doing wrong?
Edit to respond to comments:
I am running bibtex on myfile. There is no myfile.bib the bib file is called testbib
Best Answer
Store the following complete MWE as file
mb-bibtex.tex
. Then compile:pdflatex mb-bibtex.tex
. It creates a filemb-bibtex.bib
(packagefilecontents
). Compile two more times and you will get a result as expected ...Your error was to name a
.tex
file (containing TeX code) as.bib
file.