Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Full citation in RMarkdown?

Tags:

r-markdown

Is there any way to insert a fully formatted citation in RMarkdown in-text. For example, something like this: You enter the citation key

@watson1953

and it renders (as a latex PDF) as

Watson, J. D., & Crick, F. H. C. (1953). Molecular structure of nucleic acids: A structure for deoxyribose nucleic acid. Nature, 171(737-738), 3-12.

But it does it in exact location of the citation key. The bibliography at the end of the document should also be suppressed.

Is there any way to do this? I couldn't find anything either here or through searching google.

like image 523
overflowingstacks Avatar asked Mar 04 '17 22:03

overflowingstacks


1 Answers

Use visual markdown editing mode in RStudio 1.4.

Once you’ve inserted a citation, place the cursor over it to see a preview of it along with a link to the source if one is available:

citation

like image 75
Cyrus Yip Avatar answered Oct 07 '22 16:10

Cyrus Yip