Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

BibTeX works, but I want footnote citations, so I need biblatex. However, I'm having problems getting it to work. My MWE is testbib.tex:

\documentclass{article} 
\usepackage{biblatex} 
\addbibresource{sources.bib}
\begin{document} 
Hello \cite{KandR}. How are you?
\printbibliography 
\end{document} 

and sources.bib:

    @BOOK
  {KandR,
   AUTHOR  = "Kernighan, Brian W. and Ritchie, Dennis M.",
   TITLE   = "{The C Programming Language Second Edition}",
   PUBLISHER = "Prentice-Hall, Inc.",
   YEAR = "1988"
  }

When I latex testbib.tex, I get several Warnings (but no errors):

  1. No "backend" specified, using Biber backend.
  2. Citation 'KandR' undefined
  3. Empty bibliography
  4. There were undefined references
  5. Please (re)run Biber on the file:(biblatex) testbib(biblatex)

I then run BibTeX on testbix.aux file and get three error messages:

  1. I found no \citation commands
  2. I found no \bibdata command
  3. I found no \bibstyle command

and then "Process exited normally".

I return to my original file, latex in twice, and get the same Warnings. The output is the text plus [KandR ], without any bibliography.

I am using Texmaker 3.3.3, MiKTeX 2.9 64-bit and Windows 7 64-bit. Can anyone please help me to get this working? I have an idea or two: should I really Bibtex the .aux file, or Biblatex it? Also, I do not have a file resembling biblatex in my \miktex\bin\x64 folder, although I do have a bunch of .tpm biblatex files in \tpm\packages. Lastly, I haven't yet found where I can use the command line in TeXmaker (I am doing the existing commands through Tools). So if you need me to enter a command other than latex or bibtex (maybe biber), please tell me where the command line is.

share|improve this question
2  
Since version 2, biblatex uses Biber instead of BibTeX as default backend. So, replace running bibtex testbib.aux with biber testbib (without .aux). (This assumes you have an up-to-date TeX distribution which includes Biber.) –  lockstep Nov 17 '12 at 19:36
    
...or, if you don't want to switch to biber, use [backend=bibtex] –  Count Zero Nov 17 '12 at 19:39
add comment

1 Answer

The following MWE (including your bib file, a few minor changes to yours) should run on your system without errors and only one correct warning: overwriting file \jobname.bib (that tells you that file \jobname.bib has been rewritten. \jobname is changend to the name of your texfile. for example test. You have to run: pdflatex test.tex, bibtex test, pdflatex test.tex, pdflatex test.tex).

%http://tex.stackexchange.com/questions/83128/bibtex-works-but-not-biblatex
\RequirePackage{filecontents}
\begin{filecontents*}{\jobname.bib}
@BOOK{KandR,
  AUTHOR    = {Kernighan, Brian W. and Ritchie, Dennis M.},
  TITLE     = {{The C Programming Language Second Edition}},
  PUBLISHER = {Prentice-Hall, Inc.},
  YEAR      = {1988},
}
\end{filecontents*}

\documentclass{article} 
\usepackage[%
  backend=bibtex   % use BibTeX
% backend=biber    % Use biber
]{biblatex} 
\addbibresource{\jobname.bib}
\begin{document} 
Hello \cite{KandR}. How are you?
\printbibliography 
\end{document} 
share|improve this answer
    
Thanks, your solution works but can you please explain why the MWE at the top of the page by Dominik did not work. I have the same exact MWE but just added backend=bibtex. But it gives errors while yours chugs along! Changing backend=biber also does no good. Sorry I am a noob and have not yet looked at biblatex document. Is it the way the bib file is written - which is different than yours? –  user28433 Apr 4 '13 at 3:39
    
@Rajn You are luxky that I saw your question. It is better to ask a new follow question. Without knowing the errors you get I can't help you. I prettyprinted the bibfile because I know that there sometimes are problems if you use " instead of {...}. But both bib files run on my system with bibtex. –  Kurt Apr 4 '13 at 13:54
    
@Rajn The run both with biber too. Please ask a Follow-up question and tell us the error messages you get. –  Kurt Apr 4 '13 at 23:40
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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