Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

LaTeX \cite giving a [?]

Tags:

latex

bibtex

tex

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?

like image 578
anon Avatar asked Feb 28 '23 14:02

anon


1 Answers

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
like image 130
Boldewyn Avatar answered Mar 08 '23 16:03

Boldewyn