I can't get the bibliography printed in the final pdf after I compile the main.tex file with pdfLaTeX in Kile. I'm using Mageia OS with a KDE desktop environment. This is the error I get when I try to compile the main.tex with bibtex:
[BibTeX]main.aux => main.bbl (bibtex)
[BibTeX]finished with exit code 2
I pressed the bibtex button on mybibliography.bib: that didn't work. Next, I compiled (I tried) main.tex with pdfLaTeX and got 0 errors, and a number of warnings:
LaTeX Warning: Citation 'sharbati:2009' on page 3 undefined on input line 2.
LaTeX Warning: Empty bibliography on input line 51.
LaTeX Warning: There were undefined references.
Package biblatex Warning: Please (re)run Biber on the file:(biblatex)main(biblatex)and rerun LaTeX afterwards.
Best Answer
Your error message indicates that you are using
biblatex
, which supports many different backends:bibtex
,bibtex8
,bibtexu
,biber
. It now defaults tobiber
, since it was designed specifically forbiblatex
and provides much more functionality than anybibtex
-based backends. If you want to use a different backend, saybibtex
, you need to informbiblatex
by adding the appropriate option (among any others you also wish to use):There are also implications for what files need to be processed based on the backend. With
bibtex
, you use the.aux
file to create the bibliography; the command sequence is:(Note that the file extension does not need to be said explicitly, but these are the specific files that
latex
andbibtex
are using.)With
biber
it is slightly different:(Note again that the extensions are unnecessary. Also, other packages might need a third
latex
run, butbiber
doesn't unless you do something like writing a\cite
command in an entry in your.bib
file. It also doesn't hurt to remind yourself that you are usingbiber
by specifyingbackend=biber
in your loading ofbiblatex
.)Now, in order to get
Kile
to know you are usingbiber
instead ofbibtex
, you probably need to change some of the default settings. I don't useKile
and no longer have it installed, but according to the documentation, you can access these settings in 'Settings
->Configure Kile
... ->Tools+Build
in theGeneral
tab in the LaTeX and PDFLaTeX tools`