diff --git a/DESCRIPTION b/DESCRIPTION index e531348c1..56d110583 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -36,7 +36,8 @@ Authors@R: c( person("John", "Muschelli", role = c("aut", "cph"), email = "muschellij2@gmail.com", comment = c(ORCID = "0000-0001-6469-1750")), person("Zhian N.", "Kamvar", role = c("aut", "cph"), email = "zkamvar@gmail.com", comment = c(ORCID = "0000-0003-1458-7108")), person("Noam", "Ross", role = c("aut", "cph"), email = "noam.ross@gmail.com", comment = c(ORCID = "0000-0002-2136-0000")), - person("Robrecht", "Cannoodt", role = c("aut", "cph"), email = "rcannood@gmail.com", comment = c(ORCID = "0000-0003-3641-729X", github = "rcannood")) + person("Robrecht", "Cannoodt", role = c("aut", "cph"), email = "rcannood@gmail.com", comment = c(ORCID = "0000-0003-3641-729X", github = "rcannood")), + person("Duncan", "Luguern", role = c("aut"), email = "duncan.luguern@gmail.com") ) Description: A suite of custom R Markdown formats and templates for authoring journal articles and conference submissions. diff --git a/NEWS.md b/NEWS.md index f6a373c0c..35656bdf3 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,7 +1,7 @@ rticles 0.14 --------------------------------------------------------------------- - +- Added the `citation_sorting` YAML option to change the biblatex's sorting option in `ieee_article()` output (thanks, @DunLug, #265). rticles 0.13 --------------------------------------------------------------------- diff --git a/inst/rmarkdown/templates/ieee_article/resources/template.tex b/inst/rmarkdown/templates/ieee_article/resources/template.tex index 5b2bf4a64..a9d977f66 100644 --- a/inst/rmarkdown/templates/ieee_article/resources/template.tex +++ b/inst/rmarkdown/templates/ieee_article/resources/template.tex @@ -335,7 +335,7 @@ \bibliographystyle{$if(biblio-style)$$biblio-style$$else$plainnat$endif$} $endif$ $if(biblatex)$ -\usepackage[backend=bibtex,citestyle=ieee,style=numeric]{biblatex} +\usepackage[backend=bibtex,citestyle=ieee,style=numeric$if(citation_sorting)$,sorting=$citation_sorting$$endif$]{biblatex} $if(bibliography)$ $for(bibliography)$ \addbibresource{$bibliography$} diff --git a/inst/rmarkdown/templates/ieee_article/skeleton/skeleton.Rmd b/inst/rmarkdown/templates/ieee_article/skeleton/skeleton.Rmd index 42b546f55..985977587 100644 --- a/inst/rmarkdown/templates/ieee_article/skeleton/skeleton.Rmd +++ b/inst/rmarkdown/templates/ieee_article/skeleton/skeleton.Rmd @@ -41,6 +41,7 @@ abstract: | bibliography: mybibfile.bib output: rticles::ieee_article +#citation_sorting: none ## used as sorting option of the biblatex package (if selected) --- Introduction