elsevier_article.R 972 B

12345678910111213141516171819202122232425262728
  1. #' Elsevier journal format.
  2. #'
  3. #' Format for creating submissions to Elsevier journals. Adapted from
  4. #' \href{https://www.elsevier.com/authors/author-schemas/latex-instructions}{https://www.elsevier.com/authors/author-schemas/latex-instructions}.
  5. #'
  6. #' @inheritParams rmarkdown::pdf_document
  7. #' @param ... Additional arguments to \code{rmarkdown::pdf_document}
  8. #'
  9. #' @return R Markdown output format to pass to
  10. #' \code{\link[rmarkdown:render]{render}}
  11. #'
  12. #' @examples
  13. #'
  14. #' \dontrun{
  15. #' library(rmarkdown)
  16. #' draft("MyArticle.Rmd", template = "elsevier_article", package = "rticles")
  17. #' }
  18. #'
  19. #' @export
  20. elsevier_article <- function(...,
  21. keep_tex = TRUE,
  22. md_extensions = c("-autolink_bare_uris")) {
  23. inherit_pdf_document(...,
  24. template = find_resource("elsevier_article", "template.tex"),
  25. keep_tex = keep_tex,
  26. md_extensions = md_extensions)
  27. }