Loading Remote Bibliography with Biber

May 22, 2022

I have tens of LaTeX projects, and I’ve always found it annoying that I have to duplicate bibliographic entries in case I use another machine where specifying absolute path to a master BIB file wouldn’t work. I’ve always wanted to have a remote BIB file that could be automatically retrieved when compiling a LaTeX project. I didn’t realize Biber had this capability out of the box!

So now I simply have the following in my TeX preamble:

\usepackage[backend=biber]{biblatex}
% URL of plain text version of my master BIB file on GitHub (replace "github" with "raw.githubusercontent").
\addbibresource[location=remote]{https://raw.githubusercontent.com/joksas/latex-bibliography/master/phd.bib}

After which, I do

pdflatex main
biber main
pdflatex main
pdflatex main