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

Add Option to create pandoc-formatted inline citations #57

Closed
cboettig opened this issue May 23, 2014 · 2 comments
Closed

Add Option to create pandoc-formatted inline citations #57

cboettig opened this issue May 23, 2014 · 2 comments

Comments

@cboettig
Copy link
Owner

I'm thinking the more sensible thing might be to have knitcitations write an external bibtex file, and convert its citations into pandoc's format instead, from whence you could then use pandoc (+ the CSL stylesheet) to process and format the references that kniticitations has generated.

In this case something like:

options("citation_format", "pandoc")
citet("10.1098/rspb.2013.1372")

would create the citation such as [@Boettiger2013], and bibliography("refs.bib") would generate the output bib file to be used in pandoc. Alternatively, references could be added as a yaml (note that the yaml metadata blocks can be anywhere in the document).

@johnstantongeddes
Copy link

I like this. Since discovering rmarkdown and it's render function it seems that there's a trend towards using pandoc, which would be consistent with your proposal. This would also allow for an easy workaround in the cases where DOI fails to find the correct reference.

@cboettig
Copy link
Owner Author

Okay, this is implemented in 0.6. Give it a try, feeback welcome.

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

2 participants