Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding citations via a .bib? #1

Open
maelle opened this issue Jan 23, 2017 · 4 comments
Open

Adding citations via a .bib? #1

maelle opened this issue Jan 23, 2017 · 4 comments

Comments

@maelle
Copy link

maelle commented Jan 23, 2017

Nice repo!

I'm wondering whether it'd make sense to add articles via a .bib or DOI with https://github.com/cboettig/knitcitations instead of writing them by hand, not sure how to do this exactly but I was just thinking it might be easier to copy-paste DOI than the whole citations and to have a .bib file that could be used with different bibliography styles? Not sure how to cite citations without having the citations appear anywhere but rather only the list of references at the end.

Soon ORCID will allow to export citations to Bibtex if I understand this correctly.

@ryanpeek
Copy link
Owner

Thanks @maelle ...I obviously haven't checked very regularly (unfortunately)! Sorry to just be responding now. I totally agree, I was looking into this a bit more recently. @svmiller's blog post mentions using RefManageR, but I know there a few other bib packages that might work for this sort of thing. I think it does depend on how many you want to include, and if it makes sense. I'll check out the ORCID export, that would be great.

PS, love your blog! 👍

@maelle
Copy link
Author

maelle commented Jul 18, 2017

Thanks for looking into this and thanks for the compliment about my blog (which I've neglected a bit in the last weeks 🙈 )!

@andrewcstewart
Copy link

andrewcstewart commented Dec 6, 2017

I use the following pattern (see bottom couple lines in example below) quite often in my reports and was wondering if it would work with this template. Sure enough it does!

---
output: 
  pdf_document:
    latex_engine: pdflatex
    template: rap-latex-cv.tex
geometry: margin=1in

title: "CV"
author: Ryan A. Peek
orcid: "orcid.org/0000-0002-9577-6885"
jobtitle: "PhD Candidate, Ecology, UC Davis"
fontawesome: yes
email: rapeek@ucdavis.edu
github: ryanpeek
#phone: "+1 555 5555"
web: ryanpeek.github.io
updated: yes

keywords: RMarkdown, academic CV, template

fontfamily: mathpazo
fontfamilyoptions: sc, osf
fontsize: 11pt
linkcolor: blue
urlcolor: blue

bibliography: references.bib
nocite: | 
  @article1, @article2, @article3, @article4, @article5
---

@ryanpeek
Copy link
Owner

ryanpeek commented Dec 7, 2017

True! It works for me as well, but unfortunately the citations end up at the end of the document. I haven't figured out how to do this so ideally they would be "inline", so that whenever you cite a bib key if would cite the full citation on that line or location. Thanks for sending a comment!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants