Friday, February 10, 2017

BibSonomy + BibLaTeX: A powerful combination

Researchers often have to deal with citing someone else’s work in my publications. The probably most widely used combination for writing papers with references is pdflatex + bibtex. While those two programs work pretty well, they don’t have too many features. Furthermore, while maintaining a bibliography became a lot easier with BibSonomy, it still is a tedious task to extract the right references for each new paper by hand and save them into a bibtex file in the corresponding project. This leads to cluttered references across several publications, as any changes in one's BibSonomy collection are not retrospectively applied to the .bib-files of older publications. While there is a BibSonomy plugin for TeXlipse, it is not actively maintained today while having a few issues, such as not automatically refreshing or synchronizing the local bibliography with BibSonomy or placing the downloaded keys into a file with fixed location and name.
BibLaTeX is an extension for BibTeX, which provides some nice functionality. It is e.g. now possible to just add the following two lines to the LaTeX project header to not having to bother with ever-different keys and inconsistent bibliographies:
\usepackage[backend=biber]{biblatex}
\addbibresource[location=remote]
    {http://www.bibsonomy.org/bib/user/thoni/myown}
Later on,  the bibliography can be printed by just typing
\printbibliography
Now every time the PDF file is compiled, the list of publications in BibSonomy with the tag "myown" from the user "thoni" will be downloaded. This is especially useful when adding new papers to the BibSonomy collection while working at the "Related Work" section or similar.

While this is only a very basic example of how BibLaTeX and BibSonomy integration could work, there are many possibilities to extend this, e.g. by further restricting the \printbibliography command with tag selection or printing the bibliography several times from just one source. A more exhaustive introduction to BibLaTeX can be found at the corresponding ShareLaTeX page.

Happy tagging (and easier writing ;) )
Thomas

Popular Posts