Search code examples
latextexbibtex

LaTeX \cite giving a [?]


in blah.tex , I have a

\cite{blah}

I have a 'blah' entry in blah.bib

I run my file with :

latex blah.tex && blah.tex && dvipdf blah.dvi

The blah.pdf results in [?]

How do I fix this?


Solution

  • You are missing a second latex:

    latex blah.tex && latex blah.tex && dvipdf blah.dvi
    ------------------^
    

    If you use BibTex (which you obviously do), you'll probably have to issue the command a third time (two times after applying bibtex blah):

    latex blah.tex && \ # that's for preparing for bibtex
    bibtex blah && \
    latex blah.tex && \ # that's for resolving the crossrefs
    latex blah.tex && \ # and that for putting them in the right place
    dvipdf blah.dvi