I'm using BibLaTeX (in TeXStudio) to generate a .bib file. Even when I explicitly run BibLaTex (Tools > Bibliography, in TeXStudio; Bibliography is set to BibLaTeX), my citations do not update unless I delete the .bib file, forcing it to create a new .bib file. Is there a way to avoid this?
The pertinent aspects of my code:
documentclass[]{article}
\usepackage[sorting=none, citestyle=numeric-comp]{biblatex}
\begin{filecontents}{cites.bib}
%generic citation, as an example
@ARTICLE{NameYear,
author = {Name},
title = {Sciencey Title Here},
journal = {Science},
year = {2016},
volume = {1},
pages = {1--5},
number = {16},
doi = {10.1002/xx.2012},
}
\end{filecontents}
\bibliography{cites}
\begin{document}
Example Text.\cite{NameYear}.
\section*{\centering{References}}
\printbibliography
\end{document}
Thanks for your help!
Edit: Added to code to make compilable.
\beginand\end{document}? Do you get any warnings or error messages when compiling? – samcarter_is_at_topanswers.xyz Dec 19 '16 at 18:08\usepackage[sorting=none, citestyle=numeric-comp]{biblatex}
\begin{filecontents}{cites.bib}
%generic citation, as an example @ARTICLE{NameYear,
author = {Name}, title = {Sciencey Title Here}, journal = {Science}, year = {2016}, volume = {1}, pages = {1--5}, number = {16}, doi = {10.1002/xx.2012}, } \end{filecontents}
\bibliography{cites} \begin{document}
Example Text.\cite{NameYear}.
\section*{\centering{References}} \printbibliography \end{document}` and this works fine.
– samcarter_is_at_topanswers.xyz Dec 19 '16 at 18:09.bibfile you mean deleting the.bblfile? Can you check what is executed when runningBibLaTeX.biblatexis a package, to generate citations you should be using eitherbiber(preferred) orbibtexwith thebackend=bibtexbeing passed to thebiblatexpackage. – Dai Bowen Dec 19 '16 at 18:11pdflatex bibtex pdflatex pdflatexin order to make updated citations appear in the PDF as per Question mark or bold citation key instead of citation number – Dai Bowen Dec 19 '16 at 18:27filecontentsin your actual document? Without having\usepackage{filecontents}, existing files will not be overwritten. – Torbjørn T. Dec 19 '16 at 18:28@TorbjørnT. I did not have
– NMJD Dec 19 '16 at 18:33\usepackage{filecontents}in my actual document! I've added it now, and this fixed the problem. Thank you!