cboettig / knitcitations

:package: Generate citations for knitr markdown and html files
http://carlboettiger.info
Other
220 stars 28 forks source link

Periods and commas missing in reference #31

Closed trinker closed 11 years ago

trinker commented 11 years ago

I assume I'm doing something wrong but I'm having an issue with knitcitations not printing periods and commas missing in references.

So this Rmd gives this htlm output. Is this a bug, an error I'm doing?

By the way I love the package. Very easy to use.

cboettig commented 11 years ago

Thanks for the bug report. Um, I'm not actually sure where you would like the commas and periods to be appearing? The "html" reference list format is handled using the built-in formatting for R's bibentry objects. e.g. in base R (no extra packages), you can do:

print(citation("knitcitations"), "html")
trinker commented 11 years ago

For instance in this link: http://www.carlboettiger.info/2012/05/30/knitcitations.html

You have a reference:

Abrams PA, Ruokolainen L, Shuter BJ and Mccann KS

I would expect:

Abrams, P. A., Ruokolainen, L., Shuter, B. J. and Mccann, K. S.

cboettig commented 11 years ago

Ah, thanks for clarifying. That example is slightly outdated actually. See how this citation renders in the current version by checking out the README: https://github.com/cboettig/knitcitations/

The lack of periods and spaces is a function of the citation style, though I no longer use that style by default. Currently there isn't a more fine-grained control over how authors names are printed, but that is something I should consider.

On Fri, Mar 22, 2013 at 8:19 PM, Tyler Rinker notifications@github.comwrote:

For instance in this link: http://www.carlboettiger.info/2012/05/30/knitcitations.html

You have a reference:

Abrams PA, Ruokolainen L, Shuter BJ and Mccann KS

I would actually expect:

Abrams, P. A., Ruokolainen, L., Shuter, B. J. and Mccann, K. S.

— Reply to this email directly or view it on GitHubhttps://github.com/cboettig/knitcitations/issues/31#issuecomment-15330931 .

Carl Boettiger UC Santa Cruz http://www.carlboettiger.info/