# Auto-completion for citation in Kile using Biblatex

Currently in Kile you can get citation auto-completion when using BibTeX. You just add `\bibliography{file}` and Kile knows from this where the bib file is and what is in it.

However biblatex does not use this command. Instead you must use `\addbibresource{file.bib}` in the preamble. Kile dos not recognise this, even though it specifies the path to the bib file in the same way, and therefore I can't get citation autocompletion.

Is there a way to get Kile to recognise the `\addbibresource{}` command as providing the path to the bibliography?

Edited: as @Psirus says there is backwards compatibility in biblatex. `\bibliography{file}` can be used for the time being without problem.

-
From the biblatex manual: `\bibliography: The legacy command for adding bibliographic resources, supported for backwards compatibility. Like \addbibresource, this command is only available in the preamble and adds resources to the default resource list. ... This command is deprecated. Please consider using \addbibresource instead.` You could just replace `\addbibresource` with `\bibliography` for now, maybe Kile adds biblatex support before biblatex drops `\bibliography`. – Psirus Jan 18 '12 at 11:30
Indeed, `\bibliography` works. There is no need to change commands each time. Thanks! – juanmah Jan 18 '12 at 11:37
"`\bibliography` can be used for the time being..." is crucial here, the more futureproof version (regarding your document, not necessarily Kile) is zeroth answer. – Psirus Jan 18 '12 at 11:58

A simple yet workable solution is to enclose the `\bibliography` command somewhere it is never executed. Here are various methods:

``````\iffalse
\bibliography{test1.bib}
\bibliography{test2.bib}
\fi
\newcommand\NEVERRUNME{
\bibliography{test1.bib}
\bibliography{test2.bib}
}
``````

They provide what Kile reads but never parses it...
It does not do what Kile is supposed to do, however, you cheat Kile in to thinking the correct thing.

-