1. David Lovell

Many thanks Tom for this excellent public service announcement! I’ve just figured I need to move from Rmarkdown to Sweave to make some well-formatted Supplementary Materials. Your post has helped immensely.

• Many thanks for the feedback! Tom.

2. Simon Kiss

Hi this looks really great, but is there *any* way to hack this to make it run Biber? I’ve got a style file that only uses biber

• tom

Hi Simon,
Thanks for your question. This is indeed a problem. You’ll either have to do it manually (run biber and pdflatex in the terminal) or use one of the options listed here.

Tom

3. maja

Hi! Thanks for this, really helpful! I’m having trouble though trying to get it to work with natbib. If I understood you correctly I should be able to simply do

\usepackage{natbib}

\usepackage[backend=bibtex, sorting=none]{biblatex}

but this is giving me errors? Any help would be greatly appreciated!

• tom

Hi Maja,

You’ll have to change a couple of more lines, because BibTeX uses a different set of macros to generate the bibliography.

% replace these lines
\bibliography{references}
\printbibliography

% by these (where the bibliography should be printed)
\bibliographystyle{plainnat}
\bibliography{references}

Also, I couldn’t get RStudio to automatically generate the bibliography, but had to go to the terminal and type: bibtex xyz, pdflatex xyz, pdflatex xzy (with xyz being the tex filename).

HTH, Tom

• maja

Thanks Tom! Not sure what happened, I was having problems yesterday with the second bit like you, but now it seems to work i.e. directly from RStudio (tjhat is using filecontents to create the file)!?
Anyway, sees to be working fine, thanks for your quick reply and great blog!

• tom

Thanks for the update! Best regards, Tom