Macos – BibTeX will not compile


I am trying to compile a bibliography that is externally linked but I get back an error saying

I couldn't open file name firstbibtex.aux

Here is the referencing code:

    author = "George D. Greenwade",
    title = "The {C}omprehensive {T}ex {A}rchive {N}etwork ( {CTAN} )",
    year = "1993",
    journal = "TUGBoat",
    volume = "14",
    number = "3",
    pages = "342--351"

    author = "Michel Goossens and Frank Mittleback and Alexander Smarin",
    title = "The Latex Companion",
    year = "1993",
    publisher = "Addison-Wesley",
    address = "Reading, Massachusetts"

Here is the tex file:


    hello world!\cite{greenwade93} and then someone said good night world! \cite{goossens93}


This is based on this tutorial.

The names of the files are firstindex.bib and untitled.tex(note: the .tex is not fliename)

They have been complied using the pdftex and TEX and DVI via TexShop on mac. They have also been complied using the following on the command line

latex firstindex 
bibtex firstindex
latex firstindex
latex firstindex

Best Answer

The names of the files are firstindex.bib and untitled.tex

Then that's where your problem is. The name of the bibliography file. firstbibtex.bib is only used internally and since it is referenced from your .tex file already, you don't need to specify it anymore.

If your file is called untitled.tex, you need to typeset it with:

latex untitled.tex

This will create the auxfile needed for BibTeX, called untitled.aux. It tells BibTeX where to look for the references (there should be something like \bibdata{firstbibtex} in it). Then you can call:

bibtex untitled.aux

Then, typeset the document again:

latex untitled.tex
latex untitled.tex

And you're done.

Related Question