Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Compiling LaTex bib source

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!

like image 645
Klaus Avatar asked Mar 17 '10 11:03

Klaus


People also ask

How do I compile bib in overleaf?

If you already have a bibliography file that you need to use in a Overleaf project, you can upload it. Click the Upload icon located on top of the left panel. A dialog box will appear, you can either drag and drop the . bib file(s), or choose select from your computer to upload file(s) from your device.

How do I compile a bib file in TeXstudio?

You can do this in TeXstudio, as well. If you select Options> Configure TeXstudio..., and select Build from the lefthand menu, you'll see a screen (below) that explains the default commands that are run for the various menu buttons and/or keyboard shortcuts.

How do you cite references in LaTeX?

Basic LaTeX comes with a few . bst style files; others can be downloaded from the web • To insert a citation in the text in the specified output style - insert the \cite command e.g. command e.g. \bibliography{references} where your reference details are stored in the file references.


1 Answers

You need to compile the bibtex file.

Suppose you have article.tex 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 (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)
like image 138
Tadeusz A. Kadłubowski Avatar answered Sep 28 '22 13:09

Tadeusz A. Kadłubowski