0

This question already has an answer here:

I've been writing my thesis for a month now, and haven't gotten any further than fighting with bibliography-related issues. I've boiled down all the problems I'm having into something very simple with BibTex.

It seems I can't get BibTex to work at all. To test, I've done a very basic LaTeX document, a very basic bibliography file. Please find attached screenshots of them.

I'm using TeXworks (what else is there for Mac?). In the screenshots you can see that the PDF I get is unable to connect my citations from the .tex file to the .bib file. Why is this?

.bib .tex Compiled document

marked as duplicate by Sverre, egreg, Heiko Oberdiek, Svend Tveskæg, moewe Apr 13 '14 at 16:17

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • Are there any (error) messages from BiBTeX? Perhaps a .log-file is useful here, your setup here should work as far as I can see. Also plain text is preferred for a minimal working example, as we now have to type out your example instead of copy-paste it. – hugovdberg Apr 13 '14 at 15:49
  • 1
    You need to compile your document more than once. Compile in this order: pdfLaTeX, BibTeX, pdfLaTeX, pdfLaTeX. See tex.stackexchange.com/questions/147515/… – Sverre Apr 13 '14 at 15:49
  • While the linked answer shows TeXworks, it's equally applicable to TeXShop. – egreg Apr 13 '14 at 16:12
  • There of course also is the go-to Question mark instead of citation number. – moewe Apr 13 '14 at 16:18
  • Thanks guys. @Sverre, when you say "Compile in this order: pdfLaTeX, BibTeX, pdfLaTeX, pdfLaTeX" - what do you mean? All I have in TeXworks is the compile button (green 'play' button as seen in screenshot above), with the possibility to choose pdfLaTeX or something else. [at]hugovdberg, thanks for the tip - I'll use plaintext next time! – abrotherus Apr 13 '14 at 20:59