Skip to content

Commit

Permalink
Support also acknowledgments in YAML as the origin OUP template
Browse files Browse the repository at this point in the history
Still support acknowledgements for backward compatibility.

closes #563
  • Loading branch information
cderv committed Mar 8, 2024
1 parent 03417b6 commit d224040
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 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.26.2
Version: 0.26.3
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)

- `oup_article()` now supports also `acknowledgments` in addition to `acknowledgements` as the original OUP LaTeX template (thanks, @dmkaplan2000, #563).

- Update resources for `copernicus_article()` to version 7.7 from 3 January 2024.

- Update `tf_article()` template to latest bundle update from `InteractCADLaTeX` v1.04 - May 2023.
Expand Down
5 changes: 4 additions & 1 deletion inst/rmarkdown/templates/oup_v1/resources/template.tex
Original file line number Diff line number Diff line change
Expand Up @@ -419,8 +419,11 @@ \section{Author contributions statement}
\section{Acknowledgments}
$acknowledgments$
$endif$
$elseif(acknowledgements)$
\section{Acknowledgments}
$acknowledgements$
$endif$
$if(natbib)$
$if(bibliography)$
$if(biblio-title)$
Expand Down
2 changes: 1 addition & 1 deletion inst/rmarkdown/templates/oup_v1/skeleton/skeleton.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ competing_interests: |
There are no competing interest.
author_contributions: |
AA did all the work. The others are just freeloaders.
acknowledgements: |
acknowledgments: |
This is an acknowledgement.
It consists of two paragraphs.
Expand Down

0 comments on commit d224040

Please sign in to comment.