I have a bigger template which includes biblatex
\RequirePackage[backend=biber,
style=ieee,
citestyle=numeric-comp,
sortcites,
url=true,
doi=false,
defernumbers
]{biblatex}[2012/08/17]
I use TeXstudio where I set the Default Bibliography Tool to biber. Furthermore, I add the bibliography file via the command \addbibresource{bibliography.bib}. The bib-file is in the same folder as the tex-file. Sadly, the bibliography isn't recognised. I get a warning No file main.bbl. but that's it. I also can't see, that a biber and BibLaTex runs at all.
When I add the bibliography via \bibliography{bibliography} everything works fine. Do you have any hints for me what I'm doing wrong?
Content of the bibliography.bib file (just one dummy entry):
@article{dummy1,
title = {dummytitle},
pages = {},
author = {Doe, John},
langid = {english},
}
\printbibliographyinstead of\bibliography{bibliography}– Robert Seifert Feb 13 '21 at 14:02\printbibliographyjust prints the bibliography. I'm struggling with importing the bib data as is (hence, the .bib file). – Steradiant Feb 13 '21 at 14:06\citeanything? The commandbibliographyis not correct for biblatex using the biber backend,\printbibliographyis. Have a look here. If that does not help we will need a minimal executable example to reproduce your problem. PS: Have you tried to run biber manually (texstudio -> tools -> bibliography)? – Robert Seifert Feb 13 '21 at 14:12\bibliographyand\addbibresourceare defined using the same underlying helper macros, so I would be very surprised if one worked and the other didn't on the LaTeX side. I can, however, imagine your editor only being able to deal with one of the two when it comes to say,.bibfile detection, auto-completion and auto-Biber/BibTeX-run features. But you would have to share with us exactly what you tried, what happened and how it did not work for you. (How exactly do you compile your document? What do your editor's compile settings look like?) – moewe Feb 13 '21 at 14:33\bibliographyis correct if you usebiblatex. It is just deprecated and\addbibresourceis recommended instead. Note that this holds independent of the backend (Biber or BibTeX) you use as long as we are talking aboutbiblatex. – moewe Feb 13 '21 at 14:39defernumbersactive it is expected that you need at least two LaTeX runs after the Biber run for the numbers to appear properly. Usually this shouldn't be much of an issue since you probably don't change your citations/bibliography in every run and the temporary files stick around with the relevant details. Whether or not Biber is run automatically and auto-completion of\citeand friends are features of your editor, not LaTeX. Especially if yourbiblatexdeclarations are hidden in separate files your editor might not be able to pick them up properly. – moewe Feb 13 '21 at 16:09\bibliographyhence, it automatically executes two runs and shows the auto-completion (even though the settings and declarations are hidden in separate files). – Steradiant Feb 14 '21 at 14:50\citecommand: https://tex.stackexchange.com/a/262629/166503 – Steradiant Feb 14 '21 at 15:23defernumbersis often useful if you have a numeric style and a split bibliography consisting of several or filtered\printbibliographycalls. The option then tries to make the numbering in the bibliographies continuous. If you only have a single\printbibliography(which is not filtered) there usually is no point in usingdefernumbers. I'm guessing\bibliographyworks fine because your editor's auto detect feature always accepts\bibliography(as it is supported both withbiblatexand BibTeX), but\addbibresourceonly works if your editor can tell you usebiblatex. ... – moewe Feb 15 '21 at 21:22biblatexin an external file not parsed by your editor for hints on your packages or loading the package in a way that confuses the parser might cause weird behaviour in your editor, while the TeX run works perfectly fine. – moewe Feb 15 '21 at 21:24