Skip to content

Commit 4747502

Browse files
DunLugyihui
authored andcommitted
Sorting bibliography in ieee_article (#265)
1 parent 67bdb6c commit 4747502

File tree

4 files changed

+5
-3
lines changed

4 files changed

+5
-3
lines changed

DESCRIPTION

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ Authors@R: c(
3636
person("John", "Muschelli", role = c("aut", "cph"), email = "[email protected]", comment = c(ORCID = "0000-0001-6469-1750")),
3737
person("Zhian N.", "Kamvar", role = c("aut", "cph"), email = "[email protected]", comment = c(ORCID = "0000-0003-1458-7108")),
3838
person("Noam", "Ross", role = c("aut", "cph"), email = "[email protected]", comment = c(ORCID = "0000-0002-2136-0000")),
39-
person("Robrecht", "Cannoodt", role = c("aut", "cph"), email = "[email protected]", comment = c(ORCID = "0000-0003-3641-729X", github = "rcannood"))
39+
person("Robrecht", "Cannoodt", role = c("aut", "cph"), email = "[email protected]", comment = c(ORCID = "0000-0003-3641-729X", github = "rcannood")),
40+
person("Duncan", "Luguern", role = c("aut"), email = "[email protected]")
4041
)
4142
Description: A suite of custom R Markdown formats and templates for
4243
authoring journal articles and conference submissions.

NEWS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
rticles 0.14
22
---------------------------------------------------------------------
33

4-
4+
- Added the `citation_sorting` YAML option to change the biblatex's sorting option in `ieee_article()` output (thanks, @DunLug, #265).
55

66
rticles 0.13
77
---------------------------------------------------------------------

inst/rmarkdown/templates/ieee_article/resources/template.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@
335335
\bibliographystyle{$if(biblio-style)$$biblio-style$$else$plainnat$endif$}
336336
$endif$
337337
$if(biblatex)$
338-
\usepackage[backend=bibtex,citestyle=ieee,style=numeric]{biblatex}
338+
\usepackage[backend=bibtex,citestyle=ieee,style=numeric$if(citation_sorting)$,sorting=$citation_sorting$$endif$]{biblatex}
339339
$if(bibliography)$
340340
$for(bibliography)$
341341
\addbibresource{$bibliography$}

inst/rmarkdown/templates/ieee_article/skeleton/skeleton.Rmd

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ abstract: |
4141
4242
bibliography: mybibfile.bib
4343
output: rticles::ieee_article
44+
#citation_sorting: none ## used as sorting option of the biblatex package (if selected)
4445
---
4546

4647
Introduction

0 commit comments

Comments
 (0)