For each article, I get a .bib file, then I have to copy it to the main bib file I'm using with bibtex. Is there tool, even outside of latex programming, to merge all .bib files to a single one and avoid duplication of references in the main bib file?
It may require to use another programming language to do it. I'm asking if there something already done. Otherwise I will code it in Python.
My code is like that:
\documentclass[12pt]{report}
\usepackage[backend=bibtex]{biblatex}
\addbibresource{main.bib}
\begin{document}
\cite{Dick2009}
\end{document}
.tex? For this to be done solely in (La)TeX, you'll have to show the setup... – Werner Jun 21 '16 at 18:25\cite{Dick2009}, you probably use\input{article1}or\include{article1}, right? – Werner Jun 21 '16 at 18:32\bibitem{key}{..}infilea.biband\bibitem{key}{..}infileb.bib, how would you manage this duplicatekey? Discard it infileb.bib? Rename it tofileb:keyinfileb.bib? – Werner Jun 21 '16 at 18:38\addbibresource{/foldera/filea} \addbibresource{/folderb/fileb}. But that doesn't answer the question about how to handle duplicates. – Werner Jun 21 '16 at 18:42\addbibresource. Additionally, one could update\bibitemto modify duplicates... – Werner Jun 21 '16 at 18:46\addbibresource, by design, must be used for each file that is being loaded. This is becausebiblatexcan handle other types of bibliography files besides the traditional.bibfile of BibTeX. In order to deal with duplicate entries, look atbibtoolor thetool modeof theBiberengine (which was developed for use withbiblatex). – jon Jun 21 '16 at 18:51JabRefhas functionsAppend to database,Import into current databaseandImport into new database. – Bernard Jun 21 '16 at 19:18