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
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.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With