[Tex/LaTex] BiBTeX: I couldn’t open file name ‘theBib.aux’

bibtextexshop

My article paper.tex compiles fine, but myBib.bib doesn't.

$ pdflatex paper.tex
$ bibtex myBib
I couldn't open file name `myBib.aux'

I happen to be using TeXShop, but the command line is unambiguous.

Thanks in advance.

Best Answer

In addition to Ian Thompson's comment, if you are using TeXShop then you don't even have to bother with the command line, as TeXShop provides you with a graphical interface. Just switch to BibTeX in the pop-up menu after a first LaTeX compilation, then press typeset (this is equivalent to calling bibtex paperin the command line) exactly as for a LaTeX compilation, then switch back to LaTeX and press Typeset (equivalent to command line pdflatex paper.tex; two compilations are needed).