[Tex/LaTex] Auto-completion for citation in Kile using Biblatex

auto-completionbiblatexkile

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.

Best Answer

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.