Skip to content

Commit da49ab9

Browse files
dmi3knocderv
andauthored
Add ISBA template (Bayesian Analysis) (#461)
Co-authored-by: Christophe Dervieux <cderv@rstudio.com>
1 parent bd44740 commit da49ab9

File tree

15 files changed

+6853
-44
lines changed

15 files changed

+6853
-44
lines changed

DESCRIPTION

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Package: rticles
22
Type: Package
33
Title: Article Formats for R Markdown
4-
Version: 0.22.1
4+
Version: 0.22.2
55
Authors@R: c(
66
person("JJ", "Allaire", role = "aut", email = "jj@rstudio.com"),
77
person("Yihui", "Xie", role = c("aut"), email = "xie@yihui.name", comment = c(ORCID = "0000-0003-0645-5666")),
@@ -51,7 +51,8 @@ Authors@R: c(
5151
person("Alvaro", "Uzaheta", role = c("ctb"), email = "alvaro.uzaheta@gess.ethz.ch", comment = c(github = "auzaheta")),
5252
person("JooYoung", "Seo", role=c("ctb"), email="jseo1005@illinois.edu", comment = c(ORCID = "0000-0002-4064-6012")),
5353
person("Callum", "Arnold", role = c("ctb"), email = "cal.rk.arnold@gmail.com", comment = c(github = "arnold-c")),
54-
person("Rob", "Hyndman", role = c("aut"), email = "Rob.Hyndman@monash.edu", comment = c(ORCID = "0000-0002-2140-5352"))
54+
person("Rob", "Hyndman", role = c("aut"), email = "Rob.Hyndman@monash.edu", comment = c(ORCID = "0000-0002-2140-5352")),
55+
person("Dmytro", "Perepolkin", role = c("ctb"), email = "dperepolkin@gmail.com", comment = c(ORCID = "0000-0001-8558-6183", github = "dmi3kno"))
5556
)
5657
Description: A suite of custom R Markdown formats and templates for
5758
authoring journal articles and conference submissions.

NAMESPACE

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ export(glossa_article)
2121
export(ieee_article)
2222
export(ims_article)
2323
export(informs_article)
24+
export(isba_article)
2425
export(jasa_article)
2526
export(jedm_article)
2627
export(joss_article)

NEWS.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
## NEW FEATURES
44

55
- New `informs_article()` template for submissions to INFORMS journals (thanks, @robjhyndman, #460).
6+
7+
- New `isba_article()` template for submissions to Bayesian Analysis journal (thanks, @dmi3kno, #461).
8+
69
- Update Copernicus Publications template to version 6.6 from 2022-01-18 (@RLumSK, #463, #464)
710

811
# rticles 0.22

R/article.R

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -472,3 +472,41 @@ wellcomeor_article <- function(..., number_sections = FALSE, keep_tex = TRUE, ci
472472
"wellcomeor", keep_tex = keep_tex, number_sections = number_sections, citation_package = citation_package, ...
473473
)
474474
}
475+
476+
#' @section `isba_article`: Format for creating submissions to Bayesian analysis.
477+
#' Based on the official Bayesian analysis [class](https://www.e-publications.org/isba/support/).
478+
#' Template shows how to use this format as a base format for `bookdown::pdf_book`, but it can very well be used on its own (with limitations that figure referencing will not work).
479+
#' Note that the template sets `md_extensions` to exclude `-autolink_bare_uris` because otherwise author emails produce error
480+
#'
481+
#' Possible arguments for the YAML header are:
482+
#' * `title` title of the manuscript. Shorter version of the title can be provided as `runtitle`.
483+
#' * `classoption` should equal `ba` or `ba,preprint` for supplementary article.``
484+
#' * `author` list of authors, containing `firstname`, `lastname`, `email`, `url`, `affiliationref` (as code) and `footnoterefs` (as list of codes)
485+
#' * `affiliations` list containing `ref` (code for defining `author` affiliations), institution `name` and `address` itself
486+
#' * `footnotes` a list of two-element entries: `ref` and `text`
487+
#' * `abstract` abstract, limited to 250 words
488+
#' * `MSC2020primary`, `MSC2020primary` lists of codes from [MCS2020 database](https://mathscinet.ams.org/mathscinet/msc/msc2020.html)
489+
#' * `keywords` a list of keywords
490+
#' * `supplements` a list of entries with two elements `title` and `description`
491+
#' * `doi` DOI of the article
492+
#' * `arxiv` Arxiv id
493+
#' * `acknowledgements` acknowledgement text, limited to 250 words
494+
#' * `bibliography` BibTeX `.bib` file
495+
#' * `longtable` set to `true` to include the `longtable` package, used by default from `pandoc` to convert markdown to LaTeX code
496+
#' * `header-includes`: custom additions to the header, before the `\begin{document}` statement
497+
#' * `include-after`: for including additional LaTeX code before the `\end{document}` statement
498+
#' @export
499+
#' @rdname article
500+
isba_article <- function(..., keep_tex = TRUE, highlight = NULL, citation_package = "natbib") {
501+
if (citation_package != "natbib") {
502+
stop("ISBA template only supports `natbib` for citation processing.")
503+
}
504+
# from https://github.com/rstudio/rmarkdown/issues/372
505+
#md_extensions <- c("+ascii_identifiers", "+tex_math_single_backslash", "-autolink_bare_uris")
506+
if (!rmarkdown::pandoc_available("2.10")) {
507+
stop("`isba_article()` requires a minimum of pandoc 2.10.")
508+
}
509+
pdf_document_format(
510+
"isba", keep_tex = keep_tex, highlight = highlight, citation_package = citation_package, ...
511+
)
512+
}

README.Rmd

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ Currently included templates and their contributors are the following:
6262
| [IEEE Transaction](http://www.ieee.org/publications_standards/publications/authors/author_templates.html) | [\@Emaasit](https://github.com/Emaasit), [\@espinielli](https://github.com/espinielli), [\@nathanweeks](https://github.com/nathanweeks), [\@DunLug](https://github.com/DunLug) | [\#97](https://github.com/rstudio/rticles/pull/97), [\#169](https://github.com/rstudio/rticles/pull/169), [\#227](https://github.com/rstudio/rticles/pull/227), [\#263](https://github.com/rstudio/rticles/pull/263), [\#264](https://github.com/rstudio/rticles/pull/264), [\#265](https://github.com/rstudio/rticles/pull/265) | `ieee_article()` |
6363
| [IMS: Institute of Mathematical Statistics](https://imstat.org/) [AoAS: Annals of Applied Statistics](https://imstat.org/journals-and-publications/annals-of-applied-statistics/) | [\@auzaheta](https://github.com/auzaheta)| [\#372](https://github.com/rstudio/rticles/pull/372) | `ims_article()`|
6464
| [INFORMS: Institute for Operations Research and the Management Sciences](https://informs.org/) | [\@robjhyndman](https://github.com/robjhyndman)| [\#460](https://github.com/rstudio/rticles/pull/460) | `informs_article()`|
65+
| [ISBA: International Society for Bayesian Analysis](https://bayesian.org/) | [\@dmi3nko](https://github.com/dmi3kno)| [\#461](https://github.com/rstudio/rticles/pull/461) | `informs_article()`|
6566
| [JASA: Journal of the Acoustical Society of America](https://asa.scitation.org/journal/jas) | [\@stefanocoretta](https://github.com/stefanocoretta)| [\#364](https://github.com/rstudio/rticles/pull/364) | `jasa_article()` |
6667
| [Journal of Educational Data Mining](https://jedm.educationaldatamining.org/index.php/JEDM/about/submissions) journal submissions | [\@jooyoungseo](https://github.com/jooyoungseo) | [#251](https://github.com/rstudio/rticles/pull/251) | `jedm_article()` |
6768
| [JOSS: Journal of Open Source Software](https://joss.theoj.org/) [JOSE: Journal of Open Source Education](https://jose.theoj.org/)| [\@noamross](https://github.com/noamross)| [\#229](https://github.com/rstudio/rticles/pull/229) | `joss_article()` |

0 commit comments

Comments
 (0)