when using Rmarkdown to build a pdf with citations included, it removes the hyperlinks of the citations by default.
Looking at the latex file produced, I can see \\u
By default pandoc will do the rendering of the citations. I see two alternatives.
\citet{sharpe}
in the Rmd instead of @sharpe
. Downside: you can only render the Rmd into pdf.--natbib
argument. Downside: You need an extra bibtex
step when rendering into pdf.Update: You can also provide the option link-citations: true
in your YAML (since pandoc v1.16
) and keep the pandoc syntax for citations.
Example of YAML for link citations in Rmd using PDF
---
title: "Introduction to data mining – Assignment"
author: "Your Name"
date: "Date"
output:
pdf_document: default
bibliography: <references>.bib
csl: <your_csl_file>.csl
link-citations: yes
linkcolor: blue
---
In text quote.
Here is my quote @AuthorYear