I'm creating a document with rmarkdown (pandoc), which includes some bibliography in a .bib
file. What I'd like to do is add a link to the title of the references, so that each of them links to a page of the form http://sample.com/citation-key.html
, like this:
Author. (2017). Sample Title. Journal, 1(1), 1–2.
I've tried modifying the .csl
file by adding prefixes and suffixes to the title, but everything I put in there is escaped, whether I use markdown or HTML syntax. Unfortunately, I can't change the .bib
file. The relevant part of the .csl
file is this:
<text variable="title"/>
Sample files are:
literature.Rmd
:--- output: html_document bibliography: literature.bib csl: literature.csl --- @author2017word says this doesn't work. ## References
literature.bib
@article{author2017word, author = {Author}, journal = {Journal}, number = {1}, pages = {1--2}, title = {{Sample Title}}, volume = {1}, year = {2017} }
literature.csl
: I'm using the APA style from here (line 231).
<a href="...">...</a>
to each of thetitle
fields in my.bib
file, but wanted to see if I could get CSL to do this for me. @adam.smith's answer makes me sad but also spares me a lot of headache trying in vain to customize my CSL file. – Dottiedottle