From 56eef4f3bb6a14f27c588dc6576a753f00759b17 Mon Sep 17 00:00:00 2001 From: Duncan Luguern Date: Sat, 14 Dec 2019 15:44:12 +0100 Subject: [PATCH 1/6] Add citation_sorting option to change the bibliography ordering with biblatex --- inst/rmarkdown/templates/ieee_article/resources/template.tex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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$} From e282a3a40a923f41f3c7dcf9ca44dd6f5d8da90d Mon Sep 17 00:00:00 2001 From: Duncan Luguern Date: Sat, 14 Dec 2019 15:55:09 +0100 Subject: [PATCH 2/6] Update DESCRIPTION and NEWS.md --- DESCRIPTION | 3 ++- NEWS.md | 4 ++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/DESCRIPTION b/DESCRIPTION index 6c09e63d2..3dbcfaafe 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", comment = c(github="DunLug")) ) 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 e11a57941..c6c0418cf 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,3 +1,7 @@ +rticles 0.14 +--------------------------------------------------------------------- +- Added citation_sorting option to change the biblatex's sorting option + rticles 0.13 --------------------------------------------------------------------- From ef96cc4f2fe374e454e056311a4c63e3a49c4ffd Mon Sep 17 00:00:00 2001 From: Yihui Xie Date: Thu, 19 Dec 2019 09:33:07 -0600 Subject: [PATCH 3/6] only ORCID is supported in the comment --- DESCRIPTION | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DESCRIPTION b/DESCRIPTION index 3dbcfaafe..6269cafb8 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -37,7 +37,7 @@ Authors@R: c( 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("Duncan", "Luguern", role = c("aut"), email = "duncan.luguern@gmail.com", comment = c(github="DunLug")) + 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. From 690473deb03fd2f1676358a3500f2f05cc1a8ad0 Mon Sep 17 00:00:00 2001 From: Yihui Xie Date: Thu, 19 Dec 2019 09:35:31 -0600 Subject: [PATCH 4/6] tweak and move news to v0.13 --- NEWS.md | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/NEWS.md b/NEWS.md index c6c0418cf..7c69a5e12 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,7 +1,3 @@ -rticles 0.14 ---------------------------------------------------------------------- -- Added citation_sorting option to change the biblatex's sorting option - rticles 0.13 --------------------------------------------------------------------- @@ -13,6 +9,8 @@ rticles 0.13 - Add support for bibliography styles on the Springer template (thanks, @swhaat, #262). +- Added the `citation_sorting` YAML option to change the biblatex's sorting option in `ieee_article()` output (thanks, @DunLug, #265). + rticles 0.12 --------------------------------------------------------------------- From 04cd92f2f3d049ac50f203c899098ea4a7260a0a Mon Sep 17 00:00:00 2001 From: Yihui Xie Date: Thu, 19 Dec 2019 10:16:51 -0600 Subject: [PATCH 5/6] move news to v0.14 again since I'll release v0.13 soon --- NEWS.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/NEWS.md b/NEWS.md index 7c69a5e12..35656bdf3 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,3 +1,8 @@ +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 --------------------------------------------------------------------- @@ -9,8 +14,6 @@ rticles 0.13 - Add support for bibliography styles on the Springer template (thanks, @swhaat, #262). -- Added the `citation_sorting` YAML option to change the biblatex's sorting option in `ieee_article()` output (thanks, @DunLug, #265). - rticles 0.12 --------------------------------------------------------------------- From ae50bc0c3878f77f3ef1e584010b62987137ae27 Mon Sep 17 00:00:00 2001 From: Duncan Luguern Date: Fri, 20 Dec 2019 00:27:22 +0100 Subject: [PATCH 6/6] Add citation_sorting example and explanation --- inst/rmarkdown/templates/ieee_article/skeleton/skeleton.Rmd | 1 + 1 file changed, 1 insertion(+) 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