diff --git a/DESCRIPTION b/DESCRIPTION index 9231a0c8..0f6ff8bb 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,7 +1,7 @@ Type: Package Package: rticles Title: Article Formats for R Markdown -Version: 0.25.1 +Version: 0.25.2 Authors@R: c( person("JJ", "Allaire", , "jj@posit.co", role = "aut"), person("Yihui", "Xie", , "xie@yihui.name", role = "aut", diff --git a/NEWS.md b/NEWS.md index 471529b8..fe537ee2 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,5 +1,7 @@ # rticles (development version) +- `elsevier_article()` Rmd skeleton is now updated to show different available bibliostyle file (i.e `*.bst` for _natbib_) with `elsearticle` document class. `biblio-style: elsarticle-harv` is set by default to correctly work with the `authoryear` classoption already set (thanks, @pepijn-devries, #545). + # rticles 0.25 ## BREAKING CHANGES diff --git a/inst/rmarkdown/templates/elsevier/skeleton/skeleton.Rmd b/inst/rmarkdown/templates/elsevier/skeleton/skeleton.Rmd index 3e1a9659..c5ff52df 100644 --- a/inst/rmarkdown/templates/elsevier/skeleton/skeleton.Rmd +++ b/inst/rmarkdown/templates/elsevier/skeleton/skeleton.Rmd @@ -45,10 +45,11 @@ keywords: - keyword2 journal: "An awesome journal" date: "`r Sys.Date()`" -classoption: preprint, 3p, authoryear -bibliography: mybibfile.bib linenumbers: false numbersections: true +bibliography: mybibfile.bib +biblio-style: elsarticle-harv # author year style for natbib - use 'elsarticle-num' or 'elsarticle-num-names' for numbered scheme +classoption: preprint, 3p, authoryear # remove authoryear is not using `elsarticle-harv` # Use a CSL with `citation_package = "default"` # csl: https://www.zotero.org/styles/elsevier-harvard output: @@ -68,7 +69,8 @@ For detailed instructions regarding the elsevier article class, see