views:

580

answers:

2

Hi

I am writing my thesis in Latex, and I have the references in an own thesis.bib file which look as follows

@Article{xxx,
  author =       "D.A. Reinhard",
  title =        "Case Study",
  year =         "1985",
}

and I reference them in my main document as ~\cite{xxx}

When I compile then the main document with: pdflatex main.tex than it shows me question marks instead of the proper references to the bibliography. Do I also need to compile the bib source on its own? If yes, can somebody please tell me the command for Linux

Many thanks!

+1  A: 

You have to run 'bibtex':

latex paper.tex
bibtex paper
latex paper.tex
latex paper.tex
dvipdf paper.dvi
Amit
+7  A: 

You need to compile the bibtex file.

Suppose you have article.txt and article.bib. You need to run:

  • latex article.tex (this will generate a document with question marks in place of unknown references)
  • bibtex article.tex (this will parse all the .bib files that were included in the article and generate metainformation regarding references)
  • latex article.tex (this will generate document with all the references in the correct places)
  • latex article.tex (just in case if adding references broke page numbering somewhere)
Tadeusz A. Kadłubowski
Also, consider using latex mk (http://www.phys.psu.edu/~collins/software/latexmk-jcc/), a perl program that automatically runs whatever is needed (latex, bibtex, makeindex, etc.) in the correct order to produce an updated final document whenever you change something.
rcollyer
I strongly second that recommendation of latexmk. I couldn't live without it :)
Damien Pollet