Can anyone give me the minimal working code to add the references from a .bib file to a LaTeX article? I have tried everything but nothing seems to work. Content of a minimal .bib file I made called references.bib:

%% This BibTeX bibliography file was created using BibDesk.
%% http://bibdesk.sourceforge.net/

%% Created for Jef Pauwels at 2015-10-05 14:24:21 +0200 

%% Saved with string encoding Unicode (UTF-8) 

    Author = {Douglas C. Giancoli},
    Date-Added = {2015-10-05 12:23:12 +0000},
    Date-Modified = {2015-10-05 12:23:50 +0000},
    Publisher = {Pearson},
    Title = {Physics for Scientists & Engineers},
    Year = {2014}}

Well, you didn't mention if you use biblatex and biber or not. The following MWE works with both.

In your bib file you have one error: you should mask & in the title with an \! \& prints the letter & in your document.

Compiling MWE:

  Author    = {Douglas C. Giancoli},
  Publisher = {Pearson},
  Title     = {Physics for Scientists \& Engineers},
  Year      = {2014},
  Date-Added = {2015-10-05 12:23:12 +0000},
  Date-Modified = {2015-10-05 12:23:50 +0000},




Some \cite{Giancoli} text \autocite{Giancoli}.




enter image description here

  • 2
    Package filecontentsis used to have code and bib file in one MWE. \jobname is replaced with the name of file for the MWE, for example mweif the file is named mwe.tex.
    – Mensch
    Oct 9 '15 at 18:40

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.