Generate citations for knitr markdown and html files