Skip to content

Format for creating submissions to American Meteorological Society journals.

Usage

ams_article(
  ...,
  keep_tex = TRUE,
  citation_package = "natbib",
  md_extensions = c("-autolink_bare_uris", "-auto_identifiers"),
  pandoc_args = NULL
)

Arguments

...

Additional arguments to rmarkdown::pdf_document(). Note: extra_dependencies are not allowed as Copernicus does not support additional packages included via \usepackage{}.

keep_tex

Keep the intermediate tex file used in the conversion to PDF. Note that this argument does not control whether to keep the auxiliary files (e.g., .aux) generated by LaTeX when compiling .tex to .pdf. To keep these files, you may set options(tinytex.clean = FALSE).

citation_package

only natbib is supported with this template.

md_extensions

Markdown extensions to be added or removed from the default definition of R Markdown. See the rmarkdown_format for additional details.

pandoc_args

Additional command line options to pass to pandoc

Value

An R Markdown output format.

Details

This was adapted from https://www.ametsoc.org/index.cfm/ams/publications/author-information/latex-author-info/.

The template require some default knitr option to be change:

  • echo = FALSE as no R code should be shown

  • fig.path = "" as all directory paths need to be removed from figure names

  • out.extra = "" to force figure labels with knitr

Examples

if (FALSE) { # \dontrun{
library("rmarkdown")
draft("MyArticle.Rmd", template = "ams", package = "rticles")
render("MyArticle/MyArticle.Rmd")
} # }