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?
Thanks!
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?
Thanks!
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
Latex does not look in your .bib file - it looks in your .bbl file. Have you run bibtex on your .bib file to generate your .bbl file? Is your 'blah' entry in your .bbl file? If not, run bibtex again.
You could also adopt latexmk
and not have to think about all this process anymore :)
Just do
latexmk blah
and it will take care of compiling everything the correct number of times. It's bundled with any good TeX distribution, and you can get the manual with texdoc latexmk
.