Skip to content

Commit

Permalink
Fix equal contribution in Springer template and add ORCID ID (#568)
Browse files Browse the repository at this point in the history
Co-authored-by: Christophe Dervieux <christophe.dervieux@gmail.com>
  • Loading branch information
nielsbock and cderv committed May 27, 2024
1 parent cb58a59 commit 794cf53
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Type: Package
Package: rticles
Title: Article Formats for R Markdown
Version: 0.27.1
Version: 0.27.2
Authors@R: c(
person("JJ", "Allaire", , "jj@posit.co", role = "aut"),
person("Yihui", "Xie", , "xie@yihui.name", role = "aut",
Expand Down
2 changes: 2 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# rticles (development version)

- Fix `springer_article()` skeleton: It now uses `equal_contribution` in author field (thanks, @nielsbock, #568).

# rticles 0.27

- `joss_article()` now correctly works as `base_format` for `bookdown::pdf_book()` (thanks, @mlysy, #564).
Expand Down
5 changes: 3 additions & 2 deletions inst/rmarkdown/templates/springer/resources/template.tex
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
\usepackage{algorithmicx}%
\usepackage{algpseudocode}%
\usepackage{listings}%
\usepackage{orcidlink}%
%%%%

%%%%%=============================================================================%%%%
Expand Down Expand Up @@ -195,8 +196,8 @@
%%=============================================================%%

$for(authors)$
\author$if(authors.corresponding)$*$endif$[$for(authors.affiliation)$$authors.affiliation$$sep$,$endfor$]{$if(authors.prefix)$\pfx{$authors.prefix$} $endif$$if(authors.firstname)$\fnm{$authors.firstname$} $endif$$if(authors.particle)$\spfx{$authors.particle$} $endif$$if(authors.lastname)$\sur{$authors.lastname$} $endif$$if(authors.suffix)$\sfx{$authors.suffix$} $endif$$if(authors.naturename)$\tanm{$authors.naturename$} $endif$$if(authors.degrees)$\dgr{$authors.degrees$}$endif$}$if(authors.email)$\email{$authors.email$}$endif$
$if(authors.equal_contribution)$\equalcont{authors.equal_contribution}$endif$
\author$if(authors.corresponding)$*$endif$[$for(authors.affiliation)$$authors.affiliation$$sep$,$endfor$]{$if(authors.prefix)$\pfx{$authors.prefix$} $endif$$if(authors.firstname)$\fnm{$authors.firstname$} $endif$$if(authors.particle)$\spfx{$authors.particle$} $endif$$if(authors.lastname)$\sur{$authors.lastname$} $endif$$if(authors.suffix)$\sfx{$authors.suffix$} $endif$$if(authors.naturename)$\tanm{$authors.naturename$} $endif$$if(authors.degrees)$\dgr{$authors.degrees$}$endif$$if(authors.orcid)$\orcidlink{$authors.orcid$}$endif$}$if(authors.email)$\email{$authors.email$}$endif$
$if(authors.equal_contribution)$\equalcont{$authors.equal_contribution$}$endif$
$endfor$


Expand Down
5 changes: 3 additions & 2 deletions inst/rmarkdown/templates/springer/skeleton/skeleton.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,16 @@ authors:
suffix: III
naturename: Poet Laureate
degrees: MSc, PhD
orcid: 0000-0000-0000-0000
email: abc@def
affiliation: [1,2]
corresponding: TRUE
equalcont: These authors contributed equally to this work.
equal_contribution: These authors contributed equally to this work.

- firstname: Second
lastname: Author
affiliation: 2
equalcont: These authors contributed equally to this work.
equal_contribution: These authors contributed equally to this work.


affiliations:
Expand Down

0 comments on commit 794cf53

Please sign in to comment.