[Tex/LaTex] bibliography error: couldn’t open file .aux

bibliographieserrors

I am having issues with my bibliography.

I've created a file called 'MyLibrary.bib', which has all of the data for my references. I created this by exporting from Zotero. It seems to have exported without issues.

I have cited in my main document, called 'Lit Review.tex' and it gave me an error saying that there were undefined references. At the end of my Lit Review.tex, I have put the commands:

\bibliographystyle{plain}

\bibliography{MyLibrary}

I ran BibTex (F11), and it said that it couldn't open file name 'MyLibrary.aux'. and exited the process with error(s).

Any suggestions about what to do next? Much appreciated in advance!

Best Answer

bibtex compiles aux-files and not bib-files!

This means: If your main file is called LitReview.tex and your bib-file is called MyLibrary.bib) then the call to bibtex should do

 bibtex LitReview.aux 

or

 bibtex LitReview

It should not (!) be

 bibtex MyLibrary.bib

or

 bibtex MyLibrary

Side remark: I removed the space from the name of your main file to avoid to have to quote it.

Related Question