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_dependenciesare 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.texto.pdf. To keep these files, you may setoptions(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_formatfor additional details.- pandoc_args
Additional command line options to pass to pandoc
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 = FALSEas no R code should be shownfig.path = ""as all directory paths need to be removed from figure namesout.extra = ""to force figure labels with knitr
Examples
if (FALSE) { # \dontrun{
library("rmarkdown")
draft("MyArticle.Rmd", template = "ams", package = "rticles")
render("MyArticle/MyArticle.Rmd")
} # }
