ams_article.R 1.1 KB

1234567891011121314151617181920212223242526272829
  1. #' American Meteorological Society (AMS) Journal format.
  2. #'
  3. #' Format for creating an American Meteorological Society (AMS) Journal articles.
  4. #' Adapted from
  5. #' \href{https://www.ametsoc.org/ams/index.cfm/publications/authors/journal-and-bams-authors/author-resources/latex-author-info/}{https://www.ametsoc.org/ams/index.cfm/publications/authors/journal-and-bams-authors/author-resources/latex-author-info/}.
  6. #'
  7. #' @inheritParams rmarkdown::pdf_document
  8. #' @param ... Arguments to \code{rmarkdown::pdf_document}
  9. #'
  10. #' @return R Markdown output format to pass to \code{\link[rmarkdown:render]{render}}
  11. #' @examples
  12. #'
  13. #' \dontrun{
  14. #' library(rmarkdown)
  15. #' draft("MyArticle.Rmd", template = "ams_article", package = "rticles")
  16. #' }
  17. #'
  18. #' @export
  19. ams_article <- function(...,
  20. keep_tex = TRUE,
  21. md_extensions = c("-autolink_bare_uris")){
  22. pdf_document_format(...,
  23. keep_tex = keep_tex,
  24. md_extensions = md_extensions,
  25. format = "ams_article",
  26. template = "template.tex",
  27. csl = "american-meteorological-society.csl")
  28. }