acs_article.R 1.1 KB

12345678910111213141516171819202122232425262728293031
  1. #' American Chemical Society (ACS) Journal format.
  2. #'
  3. #' Format for creating an American Chemical Society (ACS) Journal articles.
  4. #' Adapted from
  5. #' \href{http://pubs.acs.org/page/4authors/submission/tex.html}{http://pubs.acs.org/page/4authors/submission/tex.html}.
  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 = "acs_article", package = "rticles")
  16. #' }
  17. #'
  18. #' @export
  19. acs_article <- function(...,
  20. keep_tex = TRUE,
  21. md_extensions = c("-autolink_bare_uris"),
  22. fig_caption = TRUE){
  23. pdf_document_format(...,
  24. keep_tex = keep_tex,
  25. md_extensions = md_extensions,
  26. format = "acs_article",
  27. template = "template.tex",
  28. csl = "american-chemical-society.csl",
  29. fig_caption = fig_caption)
  30. }