Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to cite references in R Markdown from Endnote library (.enl)?

Tags:

markdown

r

Any ideas how to cite references in R Markdown from Endnote library (.enl)? This webpage says it's possible but I can't get it to work.

If I export the .enl (available here, I zipped the .enl and data folder) into .xml (available here), it works:

---
title: "test"
author: guys
output: pdf_document
bibliography: Library_short.xml
---  

something something dark side... [@Marshall1989]

# References

I can also make it work if I convert the library into .bib (available here):

---
title: "test"
author: guys
output: pdf_document
bibliography: Library_short.bib
---

something something dark side... [@RN1]

# References

But it's not convenient, because every time I add a ref in Endnote I would have to export the .enl library into xml or bib. Thanks

like image 963
Tony D Avatar asked Jul 19 '17 05:07

Tony D


People also ask

How do I reference in R markdown?

The usual way to include citations in an R Markdown document is to put references in a plain text file with the extension . bib, in BibTex format. Then reference the path to this file in index. Rmd's YAML header with bibliography: example.

How do I add a citation in R studio?

You may insert citations using the Insert -> Citation command, after placing your cursor in the body of your document where you'd like to insert the citation.


1 Answers

One method that I found, which may or may not be convenient is to simply copy and paste the reference from Endnote onto the R markup where the paranthetical citation would happen, such as {Stevenson, 2014 #566}. When it is compiled as a word document, you can simply click on update citations and bibliography in Word. This works for one-off reports, but I'd find it inconvenient if you are trying to make a number of reports.

like image 81
Stephen Cieply Avatar answered Sep 28 '22 00:09

Stephen Cieply