# Configure kile and biblatex

How do people configure kile to work with biblatex? I have two bibliographies

\begin{refsection}
...
\end{refsection}

\begin{refsection}
...
\end{refsection}


and to get this to compile I need to run at least

pdflatex file

bibtex file1-blx

bibtex file2-blx

pdflatex file


Can this be made automatic in kile?

(I am on ubuntu.)

EDIT: Herbert gives a method using biber which works. However it is a pain to get the latest biber and biblatex in ubuntu as I mention in the comments. However, his method also suggests that a similar custom build option for kile could be made to work for biblatex+bibtex too which would enable you to keep the ubuntu version of texlive.

-
Consider to switch from BibTeX to biber -- with biber, subdivided bibliographies should be processed in a single pass. – lockstep Jun 9 '11 at 16:18
Is it obvious how to do that in kile? The normal pdflatex build option in kile just runs "pdflatex -interaction=nonstopmode %source" and there is a tick box on the same page for "Automatically run additional tools" but I don't know how to configure what that does. – Raphael Jun 9 '11 at 16:28
Sorry -- I don't use kile. Maybe this link is helpful. – lockstep Jun 9 '11 at 16:35
New Kile and new texlive/biblatex both uses logreq. Kile will recompile as necessary automatically. No extra tools necessary. – Mikael Öhman Jun 10 '11 at 17:19
@Raphael The installation of the latest TeX Live version is not too complicated. Please follow this short tutorial and you certainly will be successful as I have been. – JJD Sep 2 '12 at 1:28

• Go to Settings->Configure Kile
• Choose on the left Build
• Choose New and insert the name biber
• Now click on this new item and insert on the right into the field for the command /usr/local/texlive/2010/bin/x86_64-linux/biber (this example shows my path)
• Into the parameter field insert '%S'
• Now enable the Quick Build item on the left and add biber in the field on the right.

Close the windows and everything should work. At the first time when running biber it takes a lot of time because it has to unpack all included files into a temporary directory. In your document do not forget to set

\usepackage[backend=biber,...]{biblatex}


With the latest version of biblatex it should be the default.

-
If I have to move to biber, how do you use it from the command line? I set \usepackage[backend=biber, arxiv=pdf, firstinits=true]{biblatex} but pdflatex file gives me Package biblatex Warning: Please (re)run Biber on the file(s): (biblatex) file2-blx.aux . But biber file2-blx gives me an error FATAL - Cannot find control file 'file2-blx.bcf'! - did you pass the "backend=biber" option to BibLaTeX? – Raphael Jun 9 '11 at 18:06
First delete old auxiliary files. It is safe to delete all files except the .tex one. Then run pdflatex file, then run biber file and again twice pdflatex, that is all. – Herbert Jun 9 '11 at 19:33
Being on ubuntu I have now removed all installed texlive packages, installed texlive from the official website, removed kile ubuntu packages, compiled kile from source and installed. biber now works :) Kile also appears to but I notice Quickbuild is making a ps and then converting it to pdf. I would prefer it to use pdflatex if possible. – Raphael Jun 10 '11 at 9:11
Thanks. Got it to work in the end. The secret seems to be to use '%S' with a capital S for the biber tool config. – Raphael Jun 10 '11 at 12:43
I found a slightly better but not good way: you can make biber one "configuration" for the BibTeX command. This should make kile treat biber like the regular bibtex. Unfortunately it doesn't work. My guess is that kile doesn't recognize the "Package biblatex Warning: Please (re)run Biber on the file" line because it doesn't say "please (re)run bibtex on the file". – Christian Aug 5 '12 at 16:21