Open lfaller opened 8 years ago
I recommend using pandoc mode and the csl stylesheet of your choice to format the bibliography list. The html mode might need some debugging, sorry about that.
Ok sounds good, thanks!!
I tried modifying the source for bibliography() as shown below, and this seems to be working now. Not sure I've considered every application, but maybe this will help...
bibliography <- function(style=NULL, ...)
{
bibs <- get_bib()
NoCite(bibs)
if(is.null(style)){
BibOptions(...)
refs <- sapply(sort(bibs), csl_formatting)
cat(refs, sep="\n")
} else {
PrintBibliography(bibs, .opts=list(style=style,...))
}
invisible(bibs)
}
Great, thanks for this update!
Sure! I put in a pull request to update this in the repository... In the meantime I just have a local clone I installed separately. Feel free to use my fork in the meantime :).
Dear Dr Boettiger,
First of all, thanks for providing this package, it's really quite useful for me!
I've been using the
citep
function in my text and it works well, however, when trying to use thebibliography
command, I can only get the plain no-argument version to run (bibliography()
).I tried using
bibliography("html")
but that throws error messages:I also tried using
bibliography(style = 'nature', sorting = 'ynt')
, which generated this message:I'd appreciate any advice you might have in fixing these issues!
Best, ~Lina
PS: this is the output of sessionInfo in case it is useful.